Drezard Posted November 19, 2006 Share Posted November 19, 2006 Hello. In PHP code how would i run a program on a server?E.G. If i have a program in C:/ called program.exe how would i get PHP to open it?And is there n e way to close it?- Cheers, Daniel Link to comment https://forums.phpfreaks.com/topic/27758-applications/ Share on other sites More sharing options...
rotwyla98 Posted November 19, 2006 Share Posted November 19, 2006 Look up CRON jobs. Link to comment https://forums.phpfreaks.com/topic/27758-applications/#findComment-127072 Share on other sites More sharing options...
wildteen88 Posted November 19, 2006 Share Posted November 19, 2006 You don't need to a Cron job to execute an application. You only setup a Cron job when you want to execute a script/application/do something at certain intervals.What you'll want to use is the exec() function. If the application returns any output and you want to use that in your script then you'll want to use the passthru() or system() function. Link to comment https://forums.phpfreaks.com/topic/27758-applications/#findComment-127081 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.