RE: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Tommy Pham
> -Original Message- > From: Sebastian Detert [mailto:php-maill...@elygor.de] > Sent: Tuesday, October 19, 2010 6:51 AM > To: Ferdi; PHP General > Subject: Re: [PHP] Execute a php page and don't wait for it to finish > > Ferdi schrieb: > > Hi List, > &

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Sebastian Detert
Ferdi schrieb: Hi List, I have a php page that updates data from one database to another when it is run. My query is, how can I trigger the execution of this update page from another php / javascript without the calling page having to wait for the update page to finish? Basically, I think the up

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Marc Guay
A simple AJAX script would do the trick, no? Or does the script which was triggered by JS get aborted if that page is unloaded? If javascript is unavailable you could trigger it through the tag like so: Again, not sure if it will keep running if the caller is unloaded. -- PHP General Mailin

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread chris h
What about simply having the script trip a flag that another background script checks every 60 seconds or so? Once a minutes a background script checks to see if it needs to preform any tasks. When a user hits a certain page it does an ajax request to trip this flag and immediately returns. The ne

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread Steve Staples
On Tue, 2010-10-19 at 18:50 +0530, Ferdi wrote: > Hi List, > > I have a php page that updates data from one database to another when it is > run. > My query is, how can I trigger the execution of this update page from > another php / javascript without the calling page having to wait for the > upd