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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to