Re: [PHP] trouble using system() with lynx outputting to file From: Thomas E. Ruth (truth <email protected>)
Date: 09/30/00

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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>