unable to open program using php -


i have tried exec, system , not able open notepad even. using xampp on windows 7.

system("cmd /c notepad");

works here (notepad opened), should realize 2 things:

  • if you're running apache service, won't have notepad windows pop because service running user in non-interactive fashion.
  • it's normal no response long (perhaps indefinitely) because wait program finish. see proc_open or popen more control.

Comments

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -