| 1 | Online metro System.
Online Kolkata Metro System in PHP
Submitted By-
DIPANJAN NANDI
Registration no- 161541810008
Roll no- 15499016022
MASTER DEGREE THESIS
A thesis submitted in partial fulfillment of the requirements
for the degree of MSC
In
Computer Science
Under Supervison
Subhajit Pal
Dinabandhu Andrews Institute of Technology and Management
MaulanaAbulKalam Azad University of Technolodgy.
11th MAY, 2018
| 2 | Online metro System.
ACKNOWLEDGEMENT
I would like to express my sincere, felt, gratitude to my respected guide
‘SUBHAJIT PAL’ department in computer science in DAITM under MAKAUT,
for his unfailing guidance, prolific encouragement, constructive suggestions and
continuous involvement during each and every phase of this work.
I would also thanks principle mam ‘SANJUKTA NANDY’, ‘PARAMITA
RAY’,HOD of the computer science department, all faculty members and staff for
providing me all the facilities and for their support to all activities.
I would like to express my gratitude to my parents ‘ANJANA NANDI and
RABINDRA NATH NANDI’ for their unbreakable believe, support and guidance.
Last but not the least I would like to thanks all my classmates of M.sc Computer
science batch 2016-2018for their co-operation and support.
Dipanjan Nandi
| 3 | Online metro System.
To whom at may concern
This is certified that the work entitled as
‘Online Kolkata Metro System in PHP’
has been satisfactory complete by Dipanjan Nandi (Registration no-161541810008
OF 2016-2017 Roll no-15499016022).It is a confide work carried out under my
supervision at DAITM Kolkata for partial fulfillment of Msc in computer science
during the academic year 2016-2018.
Project Guide
Subhajit Pal
Assistant professor
DAITM Kolkata
Forward by
Paramita Ray
HOD of Computer science Dept
DAITM Kolkata
| 4 | Online metro System.
CERTIFICATE AND APPROVAL
This is certified that the work entitled as ‘Image segmentation by
Thresholding’ has been satisfactory complete by Dipanjan Nandi
((Registration no-161541810008 OF 2016-2017 Roll no-
15499016022).It is a confide work carried out under my supervision at
DAITM Kolkata for partial fulfillment of Msc in computer science
during the academic year 2016-2018.It is understood that by this
approval the undersigned do not necessarily endure or approve any
statement made, opinion expressed or conclusion drawn there in but
approve for which it has been submitted.
Examiners
Signature of the Project Guide Signature of the Head of the
Department
Signature of the examiner
| 5 | Online metro System.
DECLARATION OF ORIGINALITY AND COMPLIANCE
OF ACADEMIC ETHICS
I hereby declare that this thesis contents original project work done by
me, as part of master of computer science studies. All information in this
document has been obtained and presented in accordance with the
academic rules and ethical conduct.
I also declare that, as required by these rules and conduct I have fully
cited and referenced all the materials.
DIPANJAN NANDI
MSC (CS)
Registration no- 161541810008
Roll no- 15499016022
| 6 | Online metro System.
TABLE OF CONTENT
Contents Page no.
1. Introduction 6
1.1. Purpose 6-7
1.2. Project Scope 7-12
1.3. Theoritical Background 12-13
2.0.Overall Description 14
2.1.For Administrator 14
3.What is web devolopement. 15
4.0.What is PHP. 15
5.0.What is MySql database. 15
6. System Analysing & Planning v/s user requirements 16-19
6.1. User Requirements 16
6.2. Analysing Model 17
6.3. Spiral Model 17
6.4. ER Diagrams & Data Flow Diagrams 17
7.Input and Output screen and design(snapshots) 20-34
8.Hardware and Software requirements. 35
9.Integration Testing 36-37
10.Conclusion & Future Work 38
11.Links and source 39
Project Website: https://kolkatametroan.000webhostapp.com/
| 7 | Online metro System.
Introduction
This document is the design report for a web-based online college.This is mainly
about “how to do” and also will help provide an insight to the whole - system
design and implementation of the online metro system.The software has the
following three main components :-
1. Implement the different types of user – Administrator,student.
2. Implement of new user to create an account and login.
3. Implement of Administrator to manage user account.
This report is the result of the design phase.The class diagrams and activity
provide a schematic representation of the various classes used and design flow
respectively.The diagrams were prepared using IBM Rational software
Architect.The Consolided activitydiagrams provides a model to visualize the
flow in e system as a whole.The class diagrams aslo hold the data structures that
would be used and also their data types.
The website will be implemented using PHP as the programming
language.MYSQL database wil be used to link database.
| 8 | Online metro System.
1.1. Purpose
The purpose of this project is to create a functional website for user to aware of
latest update of development of metro project,less time consuming for user get
tickets etc.New users of the website will be able to create an account and login
securely.The website will be maintained and managed by administrators.
1.2. Project Scope
1. Gauge (nominal): 1435 mm
2. Route Length:
underground : 8.90 km
Elevated : 7.77 km
Total : 14.67 km
3. Station:
Underground: 6 Nos.
Elevated: 6 Nos.
Total: 12 Nos.
Stations and trains air conditioned, tunnel naturally ventilated with fans in
emergencies.
4.Train Operation:
| 9 | Online metro System.
2014 2021
Designed PHPDT 22770 25201
Designed Train headway 2.0 minutes 2.0 minutes
Operational Head way 3 minutes 2.5 minutes
Train Composition 6 Cars 6 Cars
Coaches required 66 84
5.Designed speed: 80kmph
6.Transaction Power System:
a)Traction system voltage : 750 V dc
b) Current Collection : Third Rail
c) SUB station : 2nos (Strand road, Bengal chemicals)
7.Rolling Stock:
a) 2.88 m wide with stainless steel body
b) Axle load 16 ton
c) Seating arrangement- longitudinal
d) Capacity of 6 car unit 1626 passengers
e) class of accommodation- one
8.Signaling, Telecommunicl :
8.Signaling, Telecommunicl :
| 10 | Online metro System.
a)Type of signaling:cab signaling and continuous automatic train control
with Automatic Train Protection (ATP)
b)Type of signaling:(i) Integrated System with Fibre Optic cable, SCADA,
Train Radio, PA system etc.
(ii)Train information system ,control telephones and centralized clock system
9.Fare collection: Automatic fare collection system with TOM, SMART CARD etc.
10.Construction Methodology:
Underground : Entire alignment tunneling through TBM, all stations by cut and
covers.
Elevated viaduct consisting prestressed concrete 'U'-shaped/Box Girder on
Single pier with pile/ Open foundations
THE GRAND DESIGN
To move from one place to another is an inseparable
part of modern city life. Indeed movement is the
essence of business and livelihood, of growth and
development, indeed of life itself. However, in the
cities of today, with its teeming millions, the
| 11 | Online metro System.
overflowing traffic, the uncertainty of travel duration, the prospect of travel is
daunting. Travelling in a city is as problematic as it is necessary, as tiresome
as it is inevitable. Achieving unhindered travel may seem utopian in the cities
of today, but it is possible to make it significantly better. The aim of the East–
West Metro corridor project is precisely to make travel in Kolkata a reliable
and pleasurable experience.
Running through the heart of Kolkata, bridging two of the city’s most populous
areas, the corridor has been planned to drastically cut down on travel cost and
time. Normally, one would take at least an hour and a half and multiple modes
of transport to travel between the extremities of the city at peak hours on a
weekday. With the commissioning of the East –West Corridor, the commuters
would find themselves reaching their destinations in air-conditioned comfort in a
fraction of the time they take today and with unbelievable reliability.
An efficient connection between Howrah and Sealdah stations, which between
them cater to about 24 lakh passengers a day, is a dream for every commuter for
whom the daily trip into and out of the city at these two stations is a nightmare.
The East – West Corridor will finally realize this dream.
And there is yet another advantage to the new metro that will cause the whole
city to breath a giant sing of relief. No needless sprinting from the station to the
bus-stop to the auto stand, lumbering from the auto stand to the share-taxi stand.
The East-West Metro Corridor will provide the Kolkata commuter a seamless
way to travel. A delightful prospect, isn’t it?
CROSSING THE HOOGHLY
| 12 | Online metro System.
When one steps out of Howrah station and heads towards the city, one is faced
with the daunting task of crossing the Howrah bridge. Any attempted to revive
its long faded romance is a lost cause, but even that would be acceptable if
peace and order ruled. However, teeming with every kind of vehicle possible,
the bridge has become a dreaded prospect for every Kolkata – Howrah bound
traveller. This is where the East – West metro comes in with an alternative
which combines an almost dreamlike appeal with uncompromised efficiency –
travelling more than a 10 storied building below the water surface for almost ½
kilometer across the Hooghly! The reinforced concrete segmental tunnel linings
have a thickness of more than a quarter of a matre and are caulked with a
composite gasket of neoprene and hydrophilic rubber to seal the tunnel from
ingress of water. This marvel of modern technology is a resounding first in
India as well as a rare venture world – wide.
| 13 | Online metro System.
AN ENGINEERING FEAT WORTH BEING PROUD OF
Imagine the technological precision and expertise that is required for a project
that makes it possible for us to travel under the Hooghly in a state-of the-art
metro line. Through the startling scale of this project is self-evident, the Eurostar
(connecting Paris and London) offers an apt analogy for the level of technology
harnessed by KMRCL.
Recognizing the precarious situation of travel in Kolkata, KMRCL at the
planning stage decided to adopt technologies to minimize discomfort to the
citizens even if it meant substantial additional expenditure. The underground
portion of the corridor has adopted the latest boring rocess, rather than the top –
down cut and cover process (which citizens have experienced during the
construction of the North – South metro) ,sparing the citizens inconvenience and
traffic snarls to no end. And to bore the tunnels, “Earth Pressure Balance”
Tunnel Boring Machines have been procured from abroad. The almost 2-story
high boring machines will be able to bore upto 15 metres a day, excavating up to
500 m³ of earth a day …and life will go on as usual on the surface!
1.3 Theoritical Background
| 14 | Online metro System.
For management students wanting a lesson in how not to execute a project, the
case study of Kolkata’s East-West Metro Corridor Project should be made
mandatory!
The drive into the city from the Dum Dum airport tells the story in explicit
details. The half-built pillars of the metro system are lying unattended for years.
The grounds dug up for constructing sections of the proposed underground
corridor are used by residents of nearby colonies to dump garbage. Dozens of
settlements have sprung up on the land, which was earmarked for the project.
Kolkata should have had everything going for building what is called the East-
West Metro Corridor Project. It has an ideal ridership profile being the world’s
13th most populous urban city with just 6.2% area covered by roads. It could
have had the advantage of taking a technological leap by building on the success
of the Delhi Metro with no shortage of funds to execute the project — the Japan
International Cooperation Agency (JICA) had given it a go by sanctioning it a
soft loan of Rs 2,253 crore.
In Bangalore and Hyderabad there have been problems with people complaining
that the Metro is affecting the city’s cultural centers by making them weak. Even
though there is strong use of blast resistant technology, the problems don’t seem
to die down there. There have also been the usual complaints of lack of
transparency and no importance being given to environmental issues like the
upcoming Mumbai Metro which is still stuck in the cans.
The Pune metro plan is one of utter lack of knowledge of the city’s transport
system and population fabric. Without any basic understanding into the
functioning of the city’s traffic systems, the plan seems doomed from the start.
| 15 | Online metro System.
2.0. OVERALL DESCRIPTION
The online metro system will be provide easy access to Admin and user to fullfil their
requirements.It wil also help user and administrator through internet.The software will
be designed to be easy to use with very good and intuitive CHI (computer Human
interface) and reliability.It will be available to student and admin round the clock.The
support will be added for every Operating Sytem(Windows/Linux/Mac).
In our project,we will bw developing an online metro system for all of us.
2.1. For Administrators
Taking backup of the Database .
Editing / Deleting / Creating the database .
Changing the password .
3.0. What is web development.
Web development broadly refers to the tasks associated with developing websites
for hosting via intranet or internet. The web development process includes web
design, web content development, client-side/server-side scripting and network
security configuration, among other tasks.
Web development is also known as website development.
4.0.What is PHP.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open
source general-purpose scripting language that is especially suited for web
development and can be embedded into HTML.
<!DOCTYPE HTML>
<html>
<head> <title>Example</title>
</head>
| 16 | Online metro System.
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
ADV:
Stable: Since it is maintained by many developers, so when bugs are found, it can
be quickly fixed.
Easy to use: It uses C like syntax, so for those who are familiar with C, it’s very
easy for them to pick up and it is very easy to create website scripts.
Speed: It is relative fast since it uses much system resource.
5.0.What is MySql database.
MySQL, the most popular Open Source SQL database management system, is
developed, distributed, and supported by Oracle Corporation.
6. System analysis and Planning v/s user require
6.1. User Requirements :
The following requirements are raised during the analysis of the needs of the users :
A person should be able to login to the system through the first page of the
Application.
The Administrator can create users as per requirements.
Admin can upload the data for a particular user.On succesful completion of
upload,user can view details.
| 17 | Online metro System.
A general user will have access to see the status of arrival and deperture
time,fare,latest announcements of each metro.
User can use all the facilitues automatically, same as which are provided to them
in manual system .
After analyzing the requirements of the task to be performed, the next step is to analyze
the problem and understand its context.The first activity in the phase is studying the
existing system and other is to understand the requirements and domain of the new
system.Both the activities are equally important, but the first activity serves as a basis
of giving the functional specifications and then successfu design of the proposed
system.Understanding the properties and requirements of a new system is more
difficualt and requires creative thinking and understanding of existing running system
is also difficualt,improper understanding of present system can lead diversion from
solution.
6.2 Analysis Model
This document play a vital role in the developing of life cycle (SDLC) as it
describe the complete requirement of the system. It means for use by developers
and will be the basic during testing phase. Any changes made to the requirements
in the future will have to go through formal change approval process.
SPIRAL MODEL was first described by Barry Boehm in his 1986 paper "A Spiral
Model of Software Development and Enhancement". In 1988 Boehm published a
similar paper to a wider audience. These papers introduce a diagram that has been
reproduced in many subsequent publications discussing the spiral model.
| 18 | Online metro System.
The spiral model is a risk-driven process model generator for software projects.
Based on the unique risk patterns of a given project, the spiral model guides a
team to adopt elements of one or more process models, such as incremental,
waterfall, or evolutionary prototyping.
The steps for Spiral Model can be generalized as follows :
Planning Phase: Requirements are gathered during the planning phase.
Requirements like ‘BRS’ that is ‘Bussiness Requirement Specifications’ and
‘SRS’ that is ‘System Requirement specifications’.
Risk Analysis: In the risk analysis phase, a process is undertaken to identify
risk and alternate solutions. A prototype is produced at the end of the risk
analysis phase. If any risk is found during the risk analysis then alternate
solutions are suggested and implemented.
Engineering Phase: In this phase software is developed, along with testing at
the end of the phase. Hence in this phase the development and testing is done.
Evaluation phase: This phase allows the customer to evaluate the output of the
project to date before the project continues to the next spiral.
| 19 | Online metro System.
6.3. The following diagrams shows hw a spiral model acts like :
| 20 | Online metro System.
ER DIAGRAM AND DATA FLOW DIAGRAM
DATA FLOW DIAGRAM (DFD)
Context 0th Level Diagram
ADMIN
USER
Data input stage Data output stage
Admin
User
Data storage
UI screen
Metro
system
| 21 | Online metro System.
7.0. Input & Output Snapshots
| 22 | Online metro System.
| 23 | Online metro System.
| 24 | Online metro System.
CONNECTION STRING OF DATABASE
<?php $con=mysqli_connect("localhost","root","","metro_db") or die(mysqli_error()); ?>
SUBWAY MAP
Quick Book
| 25 | Online metro System.
Login Page
| 26 | Online metro System.
Ticket Booking Form
| 27 | Online metro System.
Calculate Metro Fare
Banking Transaction Page
| 28 | Online metro System.
Banking Process
| 29 | Online metro System.
Bank Login Page
Reset Banking Password
| 30 | Online metro System.
Online Payment
Authentication Page
| 31 | Online metro System.
Final Output
Forget password
| 32 | Online metro System.
Schedule Page
| 33 | Online metro System.
Stations
| 34 | Online metro System.
Admin Page
| 35 | Online metro System.
View Control Panel
| 36 | Online metro System.
8.0.Hardware Specification :
Processor : Intel P-VI based system
Processor Speed : 250 MHz to 833MHz
RAM : 512MB to 1024 MB
Hard Disk : 2GB to 30GB
Key Board : 104 keys
Software Specification:
Language : PHP
Database : SQL Serve-2005, Oracle-9i
Operating System : Windows 2000,XP,2003
Web Technologies : HTML, Java Script, PHP
| 37 | Online metro System.
5. Testing
5.1. Unit Testing
For not doing break the functionality of existing system,we will test individual
use cases and list down test cases of each the use case .
5.1.1. Log in
a. Identification and password properly initiated,encrypted, and validated
b. MYSQL injection test
c. Checking for upercase, lowercase, number, special character in ID and
Password
d. Either of ID and password not blank
e. Checking for overlapping ID
f. Checking for e-mail notification about making ID and initiating password.
5.1.2. Registration and Login
5.1.3 Log Out
| 38 | Online metro System.
a. Checking out information saved in database .
b. Checking e-mail system about searching information .
5.2 Integration Testing
We consider the online metro system as a black box and white box, executing
the use cases of the application, performing load testing, performing stress
testing, performing globalization testing and perform security testing.
System compatible with different web browsers (Google Chrome, Firefox,
Internet Explorer, Safari etc) .Syestem compatible with diffetent Operating
System(LINUX,MAC,WINDOWS)
System compatible with 32-bit or 64-bit Operating system .
| 39 | Online metro System.
CONCLUSION
The project entitled Metro Rail Management Onlinewas completed successfully.
The system has been developed with much care and free of errors and at the same
time it is efficient and less time consuming. The purpose of this project was to
develop a web application for metro rail management . This project helped us in
gaining valuable information and practical knowledge on several topics like
designing web pages using html &css, usage of responsive templates, designing of
android applications, and management of database using mysql . The entire system
is secured. Also the project helped us understanding about the development phases
of a project and software development life cycle. We learned how to test different
features of a project. This project has given us great satisfaction in having designed
an application which can be implemented to any nearby shops or branded shops
selling various kinds of products by simple modifications. There is a scope for
further development in our project to a great extend. A number of features can be
added to the system in future like watch me module, each admin having separate
permissions.
| 40 | Online metro System.
Source
3.0.https://www.techopedia.com/definition/23889/web-development.
4.0http://php.net/manual/en/intro-whatis.php
5.0. https://dev.mysql.com/doc/refman/5.7/en/what-is-mysql.html
1.0 https://en.wikipedia.org/wiki/Kolkata_Metro