vbnullchar Posted March 7, 2007 Share Posted March 7, 2007 how can i execute a exe file from a php script or javascript thanks Link to comment https://forums.phpfreaks.com/topic/41595-execute-exe-file-from-php-script/ Share on other sites More sharing options...
skali Posted March 7, 2007 Share Posted March 7, 2007 From php you can execute files using exec() method. http://www.php.net/manual/en/ref.exec.php From javascript...No, not possible to execute exe file since it is a security issue. Link to comment https://forums.phpfreaks.com/topic/41595-execute-exe-file-from-php-script/#findComment-201544 Share on other sites More sharing options...
vbnullchar Posted March 7, 2007 Author Share Posted March 7, 2007 Is this correct? nothing happens <? $command="f:/yoshi/Gaim/gaim.exe"; $output=shell_exec($command." 2>&1"); //system call print "<pre>$output</pre>\n"; ?> Link to comment https://forums.phpfreaks.com/topic/41595-execute-exe-file-from-php-script/#findComment-201547 Share on other sites More sharing options...
vbnullchar Posted March 7, 2007 Author Share Posted March 7, 2007 it appeared on the task manager but it didnt show up on my desktop.. anyone? Link to comment https://forums.phpfreaks.com/topic/41595-execute-exe-file-from-php-script/#findComment-201592 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.