eugenevdm Posted October 4, 2007 Share Posted October 4, 2007 I'm hoping some PHP expert will find this post. I want to run a script from a web page - let's for example take 'checkoutscript.php'. However, in this script I want to execute some code - in delay - and while the delay is active I want to transfer control back to the web page. This is the classical >dosomething & in Unix. To put this another way: I have a web page: It calls 'checkoutscript.php' Checkoutscript runs and fires off 'delayscript.php' Control is passed back to the web page. . . . some delay happens (say 60 seconds) delayscript executes THE END Please assist. 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted October 4, 2007 Share Posted October 4, 2007 I'm not a php guru at all but maybe something along these lines will get you started: <?php sleep(60); include("yourfile.php"); ?> Where 60 is the number of seconds. 0 Quote Link to comment 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.