How to create queue data structure in PHP?
Posted: Tue Nov 15, 2005 7:11 am
I am doing a small experiment using Apache, MySQL and PHP on Window platform. Suppose I have following tables in MySQL: FLIGHT, CUSTOMER and FLIGHT_CONFIRMATION in Reservation database. PHP script will first check if the seat is available for a customer on the date he specified on a particular flight then the seat will be booked - that is, data will be inserted into FLIGHT_CONFIRMATION table. I want to create a queue in PHP before sending request to database server (This is requirement of my experiment). Also suppose there are many customers sending requests at the same time. Any idea that how can I create queue in PHP and store all the incoming requests before sending it to database server?
I dont want the exact code but the idea that how can we do it in PHP?
Prompt reply will be appreciated.
Thanks,
Adil
I dont want the exact code but the idea that how can we do it in PHP?
Prompt reply will be appreciated.
Thanks,
Adil