Re: trouble using system() with lynx outputting to file

From: Date: Sun, 01 Oct 2000 03:40:15 +0000
Subject: Re: trouble using system() with lynx outputting to file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18187@lists.php.net to get a copy of this message
When I used lynx to access a web page via an exec call, I had to do it like this: exec("TMPDIR=/tmp /usr/bin/lynx --dump 'http://www.blah.com'"); Try it with that TMPDIR variable and see if it works. Tom Drews Junk wrote: > > Hi! > > I'm having some trouble running the following function in PHP 4.0.2: > > system("lynx -source -mime_header http://{some url goes > here} > > headerfile.txt"); > > The command runs fine via telnet, but not from within a PHP file which is > called from a webpage. PHP does not produce an error. > > Does anyone know what could be wrong? > > Thanks, > Andrew > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#18187) next »