Using PHP and AJax for simple booking system (flat file based so no database needed!)

A simple, free,  easy to use online booking system for theatres, cinemas etc…It is written in PHP and AJAX. This does not use MySQL or other databases instead it is a flat file based (txt), and works with either Linux or Windows Web servers (not tested on Mac servers).

This is only a basic concept of a PHP AJAX online, therefore should not be used in a real world scenario, due to the security issues of flat-files.

view demo of ajax php booking system

(opens in new window)

How does it work?

When a booking is made it is written to a text file. But to get an idea of how it works, view the demo and download the source code (link at the bottom)

It prevents double booking both client side (Ajax) and server-side with the php

In the Ajax file it checks if the file booked seat exists by checking if a file exists corrisponding to the seatnumber (best explained when viewed in source code and demo!)

The source code is Freeware, although please credit me where due if you decided to adapt/ use it for your projects

Downloads

download source code (zip file 210KB)

8 Responses to “Using PHP and AJax for simple booking system (flat file based so no database needed!)”

  1. ebu 19/07/2010 at 5:36 pm #

    Demo link is broken. Correct that !

    • alex 20/08/2010 at 7:59 am #

      OK I’ll get round to doing that! Thanks for letting me know!

  2. Olav 13/04/2012 at 11:37 am #

    Hi, this looks like a awesome script. It seems like the link is broken. I sureley want to try it out. Can you correct it?

  3. Olav 13/04/2012 at 11:42 am #

    Sorry for addding another post, but I meant the download link (not the demo link).

    • Alex Cooper 19/04/2012 at 10:14 am #

      Hi Olav,

      I’ve fixed the link :-)

      Thanks for letting me know!

  4. samed 17/04/2012 at 12:13 am #

    can somebody put this link again, cause this link is borken

  5. veeraselvam 02/05/2012 at 8:44 am #

    Thank you very much. I want to stored in database not for file. please help me.

Trackbacks/Pingbacks

  1. Mason - 05/10/2008

    unix security…

    Maybe, but I’m not sure it’for everyone….

Leave a Reply