asynchronous Timer in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

asynchronous Timer in PHP

Post 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.
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: asynchronous Timer in PHP

Post by yacahuma »

you can do that with javascript(jquery)
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

Re: asynchronous Timer in PHP

Post 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.
Post Reply