1
I need to make a PHP script that runs a program on the server, but the page doesn’t stop loading, it’s like it’s waiting for the process to be finished.
I already went to services.Msc and put the apache process to interact with my desktop, but it goes to another session, as if it were not mine.
My code is this:
<?php
exec('C:\\teste.exe');
?>
Right, and what you recommend I use to start a program in windows environment?
– Juliano Lima
Try calling the following function:
pclose(popen("start /B C:\\teste.exe", "r"));
– Rodrigo Rigotti
The script runs and nothing happens, but if I put a file that does not exist, the script runs non-stop..
– Juliano Lima