Page 1 of 1

asynchronous Timer in PHP

Posted: Thu Sep 02, 2010 8:22 am
by lokesh_kumar_s
hi,
my requiremet is like this.
when a page php page is called by user. it should activate the timer and respond to the request instantly no need of waiting for timer to be expired. but when timer expires it should do some work.

in other words after response from php i want that page still active waiting for timer to expired.
please help.

Re: asynchronous Timer in PHP

Posted: Sat Sep 04, 2010 7:59 am
by yacahuma
you can do that with javascript(jquery)

Re: asynchronous Timer in PHP

Posted: Mon Sep 06, 2010 7:04 am
by lokesh_kumar_s
i want server side script to do that.

the flow should be like this:
i request a page.
1> server page sets the timer. 2> responds instantly to request without waiting timer to expire.
when timer expires some action needs to be taken.