I am working on flight portal.
If any user book a ticket he/she will get some status like BOOKING SUCCESS / BOOKING PENDING.
If the status is BOOKING SUCCESS the user will get a mail with the ticket details.
In case of BOOKING PENDING a message ( your ticket is in process, you receive a message/email after the ticket confirmed) will be shown to the User.
Now from the backend i have to run a PHP file for every 30 seconds Until i get the status Success.
This will be a continuous process.
Can anyone tell me with a good example.
I will be thankful,
Sowmya
AJAX
and poll a PHP script for status every 30 seconds