
- You are not logged in. | Login
January 16, 2007 9:40 am
- mellis
- Member


shell_exec() in PHP
Hi All,
I have tried with shell_exec() in PHP for listing a list of directories in side a main dir
$ouput = shell_exec("dir C:\\php /s /b /a:d");
This is not working fine.Is shell_exec will not work for windows commands?
$ouput = shell_exec("dir C:\\php /s /b ");
This is not working for listing of filenames with full path
Please help 
January 16, 2007 9:42 am
- purplebean
- Member


Re: shell_exec() in PHP
The question is why would you be trying to do it through a windows command? PHP has many file and directory functions, use them.


