• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick PHP Question (dealing with time consuming server side operations)

Retro2001

Senior member
Hi. Quick question: Is there away to execute a command on the server via PHP (ie. exec("format c:") or exec("dir")) then let the PHP script continue without waiting for the responce? Or as a better substitute, let a PHP script that calls a couple of time consuming server side commands be initated by a user without taking the user to the page generated by that script (ie. user clicks on link to "mover.php" which calls a bunch of file copy commands on the server but while mover.php is still waiting to finish up, is directed to "happy.php", another, separate page.) Any thoughts on this would be great.

Peace,
will
 
You could just run something in the background with "&" or nohup, but if you're doing this on windows I don't know if there are equivelants of those.
 
The idea solution would seem to be to call an exec() command in PHP but do so without regard with the result.....any ideas?
 
Back
Top