Re: `ls -l /` does not reproduce same info than when executed in bash.

From: Date: Thu, 10 Mar 2005 19:59:27 +0000
Subject: Re: `ls -l /` does not reproduce same info than when executed in bash.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-210460@lists.php.net to get a copy of this message
Rory Browne wrote:
Perhaps Jay has a point, but I don't think so. To confirm this, you can probably check some variable in phpinfo, or you can run 'whoami'. How are you running ls -ld? system? exec? Try backticks or shell_exec().
Tried popen() and backticks. I do not think that the other functions would change anything. whoami executed under php returns "apache", as we suspected. Best regards, Hans Deragon -- Consultant en informatique/Software Consultant
Deragon Informatique inc.     Open source:
http://www.deragon.biz        http://facil.qc.ca (Promotion du libre)
mailto://hans@deragon.biz     http://autopoweroff.deragon.biz (Logiciel)


« previous php.general (#210460) next »