Jump to content

Shell_exec() is not working


helpwanted

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/32146-shell_exec-is-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.