开发者

unable to open program using php [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_如何学C Closed 11 years ago.

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 or popen for more control.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜