Re: [PHP] passthru gives error in httpd/error_log

2003-11-22 Thread Jason Wong
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: > > > > > > > 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 logg

Re: Re[2]: [PHP] passthru gives error in httpd/error_log

2003-11-22 Thread Jesper Hansen
> Then there must be some kind of restriction on the server, Is it running in > chrooot enviroment. Try copying ls to a directory in the server root and try > again. > -- > regards, > Tom I've tried that too, with ls and other programs in the local directory where the script was located. And with

Re[2]: [PHP] passthru gives error in httpd/error_log

2003-11-21 Thread Tom Rogers
Hi, Saturday, November 22, 2003, 1:23:36 AM, you wrote: JH> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message JH> news:[EMAIL PROTECTED] JH> No, I've tried that along with all other obvious path stuff. JH> /Jesper Then there must be some kind of restriction on the server, Is it running in chrooo

Re: [PHP] passthru gives error in httpd/error_log

2003-11-21 Thread Jesper Hansen
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > You probably have to put the full path to ls > > > -- > regards, > Tom No, I've tried that along with all other obvious path stuff. /Jesper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] passthru gives error in httpd/error_log

2003-11-20 Thread Tom Rogers
Hi, Friday, November 21, 2003, 10:53:08 AM, you wrote: JH> I'm trying to run a super simple command through passthru. JH> Here's my test.php file: JH> JH> JH> JH> It works if run directly with "php test.php". JH> When this is run from the browser, there is no output, and the JH> following e

[PHP] passthru gives error in httpd/error_log

2003-11-20 Thread Jesper Hansen
I'm trying to run a super simple command through passthru. Here's my test.php file: 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 do