You are here: Re: [PHP] `ls -l /` does not reproduce same info than when executed in bash. « PHP « IT news, forums, messages
Re: [PHP] `ls -l /` does not reproduce same info than when executed in bash.

Posted by Hans Deragon on 09/27/67 11:10

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)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация