rathnaNrao Posted September 29, 2009 Share Posted September 29, 2009 Hello! I face a problem when I try to open a user interactive application on serverside using php file. The scenario is: When a client clicks a button, that should invoke notepad which should be user interactive on serverside. But I can execute this notepad only at background process i.e., seen in the Task Manager ->Processes. Please someone help me to figure out this.... Thank you Regards, N. Rathnavathi Link to comment https://forums.phpfreaks.com/topic/175983-executing-a-user-interactive-application-on-serverside/ Share on other sites More sharing options...
RussellReal Posted September 30, 2009 Share Posted September 30, 2009 <?php $notepad = new COM('WScript.Shell'); $notepad->Run("notepad"); ?> you can also open a specific file with this: <?php $notepad = new COM('WScript.Shell'); $notepad->Run('notepad /p "whatever.txt"'); ?> Link to comment https://forums.phpfreaks.com/topic/175983-executing-a-user-interactive-application-on-serverside/#findComment-927425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.