Archive

Archive for the ‘programming’ Category

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

September 13th, 2008

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)

Technorati Tags: Ajax, Booking System, Client Server, Code Source, Databases, Demo, Linux, Online Booking, Php File, Security Issues, Server Side, Source Code, Unix, Unix Servers, Web Servers

ajax, php, programming , , , , , , , , , , , , , ,