Re: passthru gives error in httpd/error_log

From: Date: Sun, 23 Nov 2003 06:06:20 +0000
Subject: Re: passthru gives error in httpd/error_log
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170710@lists.php.net to get a copy of this message
On Friday 21 November 2003 08:53, Jesper Hansen wrote: > I'm trying to run a super simple command through passthru. > > Here's my test.php file: > > <html><body> > <? passthru('ls -l'); ?> > </body></html> > > > It works if run directly with "php test.php". > When this is run from the browser, there is no output, and the > following error is logged in /var/log/httpd/error_log : > sh: /ls: No such file or directory What does the php error log say? > What does this mean ? Any command I try instead of "ls -l", > gives a similar error. > > The funky thing is that it HAS worked, but now it doesn't, and > I have no idea what happened. Find out what funky thing it was that you did to make it stop working. Are you using safe mode and is "safe_mode_exec_dir" set appropriately? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz /* What is research but a blind date with knowledge? -- Will Harvey */

« previous php.general (#170710) next »