Web Hosting Talk







View Full Version : shell_exec() not working


helpwanted123
12-29-2006, 12:05 AM
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

i3Marketing
01-01-2007, 09:40 PM
Are you sure you have the correct configuration on the server?

ub3r
01-01-2007, 09:52 PM
make it run this

dir C:\php /s /b