Jump to content

Run a PHP Script from another PHP - but only after a delay


eugenevdm

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated