apw Posted May 5, 2012 Share Posted May 5, 2012 Hello Hello, I wrote a search engine script using some php, sql as the database and a exe file (to run the search bot) and was wondering if PHP could actually execute the exe file created? I also created a batch file that would execute the .exe file .. or could i get php to execute the batch file? Thanks Link to comment https://forums.phpfreaks.com/topic/262103-can-php-do-this/ Share on other sites More sharing options...
trq Posted May 5, 2012 Share Posted May 5, 2012 See exec. Link to comment https://forums.phpfreaks.com/topic/262103-can-php-do-this/#findComment-1343215 Share on other sites More sharing options...
apw Posted May 5, 2012 Author Share Posted May 5, 2012 So I can exec() search.exe and have it execute? Will this also execute the extra perameters thats needed to run this search bot such as search.exe -i <site url?> Link to comment https://forums.phpfreaks.com/topic/262103-can-php-do-this/#findComment-1343216 Share on other sites More sharing options...
trq Posted May 5, 2012 Share Posted May 5, 2012 Try it and see. Link to comment https://forums.phpfreaks.com/topic/262103-can-php-do-this/#findComment-1343229 Share on other sites More sharing options...
TFT2012 Posted May 5, 2012 Share Posted May 5, 2012 exec() capture the output from executable file (like .exe). If this is what you want, then try exec() like thorpe said. I have used exec() to read C++ executable file and returned them to webpage. Link to comment https://forums.phpfreaks.com/topic/262103-can-php-do-this/#findComment-1343376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.