Re: unable to run lynx from exec or passthru
| From: | Lindsay Adams | Date: | Sun, 08 Apr 2001 05:28:02 +0000 |
| Subject: | Re: unable to run lynx from exec or passthru | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47632@lists.php.net to get a copy of this message | ||
Most likely, lynx is not in the PATH of the user that the webserver is
running as, and may not have permission, if it was.
Try telneting in and finding the absolute pathname to lynx, and user that in
your exec statement and see what happens. Might also help if you redirected
stderr to a file so you could read the error that it encounters when you try
to exec lynx in a script.
On 4/7/01 10:15 PM, "Junaid MAnsoor" <jdma79@hotmail.com> wrote:
> Hi!
>
> i have php as an apache mod. i want to exec lynx from php. but when i have
> typed the following command
>
> exec("lynx http://mywebsite.com");
>
> OR
> passthru("lynx http://mywebsite.com");
>
>
>
>
> it simply does not show any output, just a blank page. I think its the prb
> of permission. Please help me how can i configure it to work for me.
>
> Junaid Mansoor
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>