shell_exec function not working in windows.
It works perfectly fine in linux.
What could be the reason? Is there any specific setting required for it?
| SitePoint Sponsor |
shell_exec function not working in windows.
It works perfectly fine in linux.
What could be the reason? Is there any specific setting required for it?
What command are you trying to run?
Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.
anything,
eg. print_r(shell_exec('ls -la'));
well, ls -la isnt a valid windows command, for starters.
Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.
yes it doesn't work in windows!
print_r(shell_exec('dir'));
it works
Thanks!
Bookmarks