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 Quote 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. Quote 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?> Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/262103-can-php-do-this/#findComment-1343376 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.