Giter Site home page Giter Site logo

ire's Introduction

This is the source code for the sms app named @ire published on txtweb platform.
Run updater.php before first running of the app.It creates all necessary files.updater.php will take about 2-3 minutes
to finish running.So be patient and wait for it to complete.
Files included
1)index.php
     This file is used to show the home page,main menu and associated links for the text site
2)preprocessor.php
     This file is used to preprocess the user request.Flags and parameters for the app engine is set inside this file
3)engine.php
     This is the app engine.All processing happens here.
4)getStationDetails.php
    Returns the details of railway stations  from the station name or code.The station name or code should be passed as the get parameter named station_details.If exact station name/code is found,it returns the details for the station in the following format
	stationCode1~stationName1~divisionName1~zoneName1~stationCode2~stationName2~divisionName2~zoneName2~....
	If exact station name is not found ,it returns a list of similar stations.By default the number of stations in the list will be 5 
	Two additional get parameters start and limit are used to control the number of stations in the list.By default start = 0,limit =5
    List will contain stations from <start> th similar station to <limit> th similar station
5)stationCodes.php
    Stores the list of station codes as an array(<station name> => <station code>,<station name> => <station code>,...)	
6)stationNames.php	
    Stores the list of station codes as an array(<station code> => <station name>,<station code> => <station name>,...)	
7)updater.php
    Updates all station information,referring to files stationCodes.php,stationNames.php,and the website http://www.trainenquiry.com
    This ensure that local names of some stations are included.Some names that are not there in the website will be fetched from the two files and vice versa.Thus we get 
     almost a complete list of stations
     After running this file , a directory named stations will be created.In that directory there will be directories like stationsa,stationsb...Each of these directories store details of stations starting with the ending alphabet of the directory name	 
     Inside each of these directories,there will be two files.
     i)stFromName.php
	     This file stores the information about stations whose name starts with the ending alphabet of directory name ,as an array 
	     array(<station name> => array(<station code>,<division>,<zone>) ,....)
     ii)stFromCode.php
	     This file stores the information about stations whose station  code starts with the ending alphabet of directory name ,as an array 
             array(<station code> => array(<station name>,<division>,<zone>) ,....)
             Thus searching will be limited to any one of this directories and files instead of the entire list of stations,which enhances the speed of the application
	

ire's People

Contributors

jinujd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.