unable to open program using php [closed]
I have tried all exec, system and all but i am not able to open notepad even. I am using XAMPP on Windows 7.
system("cmd /c notepad");
Works here (notepad is opened), but you should realize two things:
- If you're running Apache as a service, you won't have a notepad windows pop up because the service will probably be running as another user in a non-interactive fashion.
- It's normal that you get no response for a long (perhaps indefinitely) because it will wait for the program to finish. See
proc_open
orpopen
for more control.
精彩评论