[PHP] unable to run lynx from exec or passthru

2001-04-07 Thread Junaid MAnsoor
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

Re: [PHP] unable to run lynx from exec or passthru

2001-04-07 Thread Lindsay Adams
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