1
CHAPTER 1
INTRODUCTION
1.1 PROJECT DESCRIPTION
TOLL GATE PAYMENT SYSTEM overcomes the factor of traveler’s burden
while passing through the tollgate over thousands of vehicles in this wide area. we will
make the traveler’s work more easier like exclusively pay the tollgate payment via the
tollgate pay service without waiting in the long queue in the tollgate.
This system helps a lot for the travelers who travels across from one city to
another city with the vehicles like car, bus, truck, containers, etc…, Traveler can login to
this service then registering personal and bank (account) details to utilize the Service. The
receipt will be generated after completing the payment. That receipt will be used while
we travel across the tollgate. Then traveler can easily move onto the tollgate without
waiting in the long queue and relief ourselves from the burden facing in the tollgate.
2
CHAPTER 2
SYSTEM ANALYSIS
2.1 INTRODUCTION
System analysis is the study of existing system in terms of system goals. System
analysis is the process of studying a procedure or business in order to identify its goals
and purposes and create system and procedures that will achieve them in an efficient
way. Analysis and synthesis, as scientific methods, always go hand in hand; they
complement one another. Every synthesis is built upon the results of a preceding analysis,
and every analysis requires a subsequent in order to verify and correct its results.
2.2 FEASIBILITY STUDY
Feasibility study is conducted once the problem is clearly understood. Feasibility
study is a high level capsule version of the entire system analysis and design process. The
objective is to determine quickly at a minimum expense how to solve a problem. The
purpose of feasibility is not to solve the problem but to determine if the problem is worth
solving. The system has been tested for feasibility in the following points:
Economical Feasibility
Technical Feasibility
Operational Feasibility
Economical Feasibility
The system must be justified by cost and benefit criteria to ensure that effort is
concentrated more on project which will give best return at the earliest. The factors that
mainly affect the cost Since the development tools are already in hand the cost in this
scenario is less. After the study of the application it was found that the project is
economically feasible taking into consideration the time factor and productivity of the
software.
3
Technical Feasibility
Technical Feasibility checks whether the proposed system satisfies the
requirements and technical possibilities of the system developed. It includes the study of
function, performance and constraints that may affect the ability to achieve an acceptable
system. This will leads to high demands on the available technical resources. This will
lead to high demands being placed on the client.
Operational Feasibility
Operational feasibility study is necessary as it ensures that the project developed
can be successfully implemented. Everything is provided in easy access manner so that
any novice travelers can make use of information very efficiently. The system is found to
be very beneficial to the Administrators, Hardware Managers and Team Members. Hence
the operational feasibility of the system is very high.
4
2.3 EXISTING SYSTEM
In the existing system, every vehicle may wait in the long queue for paying the
tollgate payment. The conventional or the traditional way of collecting the toll from the
vehicle owners or the drivers is to stop the car by the Toll Gate Stations and then pay the
amount to the toll collector, standing (or perhaps sitting!) by the side of the toll booth.
After pay the amount the gate is opened either mechanically or electronically by the
driver to get through the toll station. Huge amount of vehicles will be travel across the
tollgate everyday. Maintaining the huge amount of vehicles in each tollgate at everyday is
an complicated work.
2.3.1 Disadvantages
Wastage of Time
Wastage of fuel/petrol/diesel
Stress while we waiting in the queue
Sound Pollution
5
2.4 PROPOSED SYSTEM
Toll gate payment system have been great assistance of the traveler who travel
across the toll gate via the vehicles like car, van, lorry, bus, container and other heavy
vehicles with four wheelers and above. Firstly traveler should login into the system for
utilize the toll gate payment system. After login into the system, traveler want to filled up
the top three field by the traveler who going to travel, traveler’s personal details,
traveler’s bank details and further details about the travel. In Personal Details, traveler
must want to filled up the personal details like id (traveler’s unique id), name, place,
phone number and all. In Bank Details, traveler must want to filled up the bank account
details for the transaction of money for toll gate along with the same id given in the
personal details. Then the mandatory field of toll gate payment system was Start
Transaction. In Start Transaction field traveler want to fill the important details like the
traveler id, vehicle number, select the place where the traveler want to travel, select the
type of the vehicle in which vehicle the traveler going to travel, select the starting time
and starting date of the travel and submit the details.
Toll gate amount will not able to given by the traveler, the amount will
automatically taken by the system for the corresponding places. After completing the
start transaction page then go into the View Transaction page and enter the id of the
particular traveler. Then the receipt will be generated for the traveler with the vehicle
number, vehicle type, starting time and starting date of the travel along with the message
like “The Receipt is valid only for next 24 hours”. Simultaneously, the timer is also get
started and reduce the timing for next 24 hours. Once the timer is started and end up with
after 24 hours the receipt is also not valid for the travel. Then the traveler again want to
sign into the system and utilize the system within 24hours from the timer is started.
2.4.1 Advantages
Great assistance of time consuming
Reduce the manual work
Consuming the Petrol/Diesel
No need to taking the cash in hand
6
CHAPTER 3
SYSTEM SPECIFICATION
3.1 SYSTEM REQUIREMENTS
3.1.1 Hardware Requirements
Processor : Pentium IV
RAM : 256 MB or more
Hard Disk : 40 GB hard disk drive
Floppy Disk : 1.44 Floppy Disk Drive.
3.1.2 Software Requirements
Front End : PHP, HTML, Bootstrap, JavaScript
Back End : MYSQL
OS : Windows / Linux / Solaris
3.2 SOFTWARE DESCRIPTION
3.2.1 PHP Overview
PHP is a widely-used, open source scripting language and very popular when it
comes to web designing. It is a server-side programming language used to create web
pages that are more interactive than HTML counterparts. PHP owns it popularity to C++
syntax programming since most of the programmers use it and are familiar with it. It
runs on various platforms (Windows, Linux, Unix, Mac OS X, etc). It is compatible with
almost all servers used today (Apache, IIS, etc.)
Features of PHP
PHP can generate dynamic page content
PHP can create, open, read, write, delete, and close files on the server
PHP can collect form data
PHP can send and receive cookies
PHP can add, delete, modify data in your database
PHP can be used to control traveler-access
7
With PHP you are not limited to output HTML. You can output images, PDF files,
and even Flash movies. User can also output any text, such as XHTML and XML.
Need of PHP
To start using PHP:
Find a web host with PHP and MySQL support
Install a web server on your own PC, and then install PHP and MySQL
Use a Web Host With PHP Support
If your server has activated support for PHP you do not need to do anything.
Just create some .php files, place them in your web directory, and the server will
automatically parse them for you.
Php do not need to compile anything or install any extra tools.
Because PHP is free, most web hosts offer PHP support.
Set Up PHP on Your Own PC
However, if your server does not support PHP, you must:
1. Install a web server
2. Install PHP
3. Install a database, such as MySQL
4. The official PHP website (PHP.net) has installation instructions for PHP:
http://php.net/manual/en/install.php
8
3.2.2 XAMPP Overview
XAMPP Installation Process
XAMPP is an easy to install Apache distribution containing MySQL, PHP and
Perl. There are packages for Windows, Mac, and Linux..
Figure No. 1 : XAMPP Installation
Step 1: Download and Install XAMPP
To download and install XAMPP, go to apachefriends downloads page, the
official link to download XAMPP from. You will see XAMPP ready to download for
cross-platform like Windows, Linux, Mac OS X.
Step 2: Run the Installer to Install XAMPP
XAMPP Setup Wizard
During the installation process, you may come across warning pop-ups. But you
would probably click ‘Yes’ to start the installation process. Soon after you click on the
downloaded file, the XAMPP setup wizard will open.
9
Select Components
Next, you need to check the components which you want to install and can
uncheck or leave as it is which you don’t want to install. You can see there
are a few options which are light grey in color. These are the options
which are necessary to run the software and will automatically be
installed. Now click on the ‘Next’ button to continue.
Now click on the ‘Next’ Button to proceed.
Select Installation Folder
Now you need to choose the folder where you want to install the XAMPP.
You can choose the default location or you can choose any location of
your choice and choose the ‘Next’ button to move ahead.
Ready to Install
Now you’ll see another window with a message “Setup is now ready to
begin installing XAMPP on your computer” like shown below.
You just have to hit the ‘Next’ button to proceed.
If the entire process of XAMPP installation went correctly, then the
control panel would open smoothly.
Then click on the ‘Start’ button corresponding to Apache and MySQL.
Figure No. 2 : XAMPP Control Panel
10
3.2.3 MYSQL Database
MySQL is an open-source relational database management system
(RDBMS).[6] Its name is a combination of "My", the name of co-founder
Michael Widenius's daughter,[7] and "SQL", the abbreviation for
Structured Query Language.
MySQL is free and open-source software under the terms of the GNU
General Public sponsored by the Swedish company MySQL AB, which
was bought by Sun Microsystems (now Oracle Corporation).[8] In 2010,
when Oracle acquired Sun, Widenius forked the open-source MySQL
project to create MariaDB.
Figure No. 3 : phpMyAdmin Database
.
11
CHAPTER 4
SYSTEM DESIGN
4.1 INTRODUCTION
System design is the process of defining the architecture, components, modules,
interfaces, and data for a system to satisfy specified requirements. System design could
be seen as the application of system theory to product development. System design is
simply the design of system. It implies a systematic and rigorous approach to design an
approach demanded by the scale and complexity of many system problems. System
design first appeared shortly before World War II as engineers grappled with complex
communications and control problems.
4.2 MODULE DESCRIPTION
Login
Login page is the essential process for every system, applications and projects.
Login page is normally having the username and password. In toll gate payment system,
traveler who wanted to enter into the system then the traveler must have to enter the
username and password. After enter the username and password in the login page then
the traveler will be allowed to enter into a system.
Personal Details
Personal details of the traveler whoever login to the system and wanted to utilize
the Toll Gate Payment System will definitely filled out the personal information of the
traveler. In personal details, traveler must want to fill the details of traveler id, name,
place, phone no and address. The details can be filled out for the purpose of admin
wanted to know about the traveler personal details. The traveler id (while entering the
personal details) is the unique id for the traveler’s who utilize the toll gate payment
system.
12
Bank Details
Bank details can be asked for the traveler to pay the toll gate amount via the bank
account of the traveler and the initial details of the bank account asked for the transaction
of the amount for toll gate payment system.
Start Toll pay service
In Start Toll pay service, traveler whoever wanted to use the Toll Gate payment
system will definitely filled out the details of traveler id, vehicle number, select vehicle,
date and time. Traveler want to enter the current date and time. Traveler must want to
utilize the system for the next 24 hours from the time of receipt is generated. The receipt
will be invalid after 24hours. The toll amount is automatically taken from the place where
we select in the (select place) field.
View Transaction
View transaction is the most important part in the toll gate payment system. In
View Transaction, traveler got the receipt for the transaction with details of vehicle
number, place and starting time and date of the travel along with the message “This
receipt is valid only for next 24 hours”. After completing the Start Transaction page the
receipt is generated in View Transaction page along with the timer for next 24 hours.
After the timer is completed for 24 hours the receipt is also not valid for the travel.
13
4.3 UML DIAGRAMS
4.3.1 Class Diagram
Login Service connected
+username : String +Register personal details
+password : String +Register bank details
+Start tollgate pay service
Register personal Register bank Start tollgate pay
details details service
+user id : Integer +user id : Integer +user id : Integer
+name : String +name : String +veh-no : Integer
+ph-no : Integer +ph-no : Integer +veh-name : String
+place : String +place : String +select place: String
+address :String +address :String +date :String
+time :String
Receipt generated
+Alert Message
+Timer
+Receipt
Figure No. 4 : Class Diagram
14
4.3.2 Usecase Diagram
Login
Registration
Payment
User Admin
Receipt generated
Logout
Figure No. 5 : Usecase Diagram
15
4.3.3 Activity Diagram
User
Try again
Login
Enter username and password
Invalid valid
Registration
Registration
Payment
Receipt generated
Logout
Figure No. 6 : Activity Diagram
16
CHAPTER 5
SYSTEM TESTING
5.1 INTRODUCTION
System Testing is the testing of a complete and fully integrated software product.
Usually, software is only one element of a larger computer-based system. Ultimately,
software is interfaced with other software/hardware systems. System Testing is actually a
series of different tests whose sole purpose is to exercise the full computer-based system.
System testing is testing conducted on a complete integrated system to evaluate the
system's compliance with its specified requirements. System testing takes, as its input, all
of the integrated components that have passed integration testing.
5.2 TYPES OF TESTING
The testing of a conventional software system involves some of the following phases.
Unit Testing
Integrated Testing
System Testing
Regression Testing
Acceptance Testing
5.2.1 Unit Testing
A software module can be created by building up of many small parts into a single
module. This small part is called as a unit. A unit is a piece of code that will perform a
specific task. At the end of this testing all units will be tested so that we can get the
correct result. By using unit testing we can easily identify the errors.
5.2.2 Integration Testing
Combining all programs into a single application and testing its correct is called as
Integration testing. Even all programs work correctly they may give a false result when
they work together. Integration is very important to get the completed result.
17
5.2.3 System Testing
System testing is the testing to ensure that by putting the software in different
environments (e.g., Operating System) it still works. System Testing is done with full
system implementation and environment.
5.2.4 Regression Testing
Regression testing is the testing after modification of the system component, or a
group of related units to ensure that the modification is working correctly and is not
damaging or imposing other modules to produce unexpected results.
5.2.5 Acceptance Testing
Acceptance testing is often done by the customer to ensure that the delivered
product meets the requirements and works as the customer expected.
18
CHAPTER 6
CONCLUSION
Tollgate Payment system will make the human work more easily and quickly to
pay the tollgate payment at the earliest of the travel time. Firstly traveler must utilize the
service by login into the service and enter into the home page of the tollgate payment
service. In home page traveler can filled out all the information about the traveler like
personal details, bank details then start transaction. After the transaction can made
successful a receipt may generated for the tollgate payment along the message (This
receipt is valid for only next 24hours) and correspondingly a timer will reduced till the 24
hours is completed from the transaction is started. Likewise the traveler can utilize the
service and make use of it.
19
CHAPTER 7
FUTURE ENHANCEMENT
Tollgate Payment System is used for the traveler as a service. Traveler can login
then starting the tollgate payment service and got a receipt for that service. But in future
the mobile app is build for the Toll Gate Payment and traveler can use the mobile app
whenever a person want to go anywhere while crossing across the tollgate by doing very
few steps in easy way. Also, RFID reader made the great evolution for the tollgate
payment in the future. RFID and reader along with the respective system will used by the
tollgate and tag or component stick into the outside of the vehicle will read by the reader
in the tollgate by using RFID. The automatic tollgate can open only for the traveler who
paid the tollgate payment otherwise the tollgate will not be opened. The automatic
tollgate will accessed by the reader along with the system and RFID.
20
APPENDIX 1- SCREEN SHOTS
Login Page
This page is used to login the toll gate payment system.
21
Home Page
This page is used as the entry point of the toll gate payment system.
22
Personal Details
It is used to register the personal details of the traveler.
23
Bank Details
It is used to register the bank details of the traveler.
24
Start Toll pay service
This page is used to register the vehicle details of the traveler.
25
View Transaction
It will display the receipt for the Toll gate payment system.
26
Table Design
Table No. 1: tollgateservice
It is used to store the overall database.
27
Table No. 2: travelerdetails
It is used to store the traveler details.
28
Table No. 3: bankdetails
It is used to store the bank details.
29
Table No. 4: transaction
It is used to store the transaction details.
30
APPENDIX 2 – SAMPLE CODING
Login
<?php
if(isset($_POST["submit"
]))
{
$name=$_POST["uname"];
$password=$_POST["pws"];
if($name!="" && $password!="" )
{
mysql_connect("localhost","root","");
mysql_select_db("project");
$q="insert into log values('$name','$password')";
mysql_query($q);
echo "SUCESSFULLY SUBMITED";
}
else
{
echo "TRY AGAIN";
}
}
<div class="col-md-7 col-sm-7 register-right">
31
<form action="bal" method="post" class="banner_form">
<h6>LOG IN</h6>
<div class="sec-right">
<label class="contact-form-text">name</label>
<input placeholder="
[email protected] " name="uname" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">password</label>
<input placeholder=" XXXXXX" name="pws" type="text" required="">
</div>
<input type="submit" value="Submit" name="submit">
</form>
?>
32
Home Page
<html>
<body>
<CENTER
<a href="wallet" data-scroll-nav="1">Personal Details</a><BR><BR>
<a href="profile" data-scroll-nav="1">Bank Details</a><BR><BR>
<a href="payment" data-scroll-nav="1">Start TollPay service</a><BR><BR>
<a href=view butt" data-scroll-nav="1">view transaction</a><BR><BR>
</CENTER
</body>
</html>
<form action="#" method="post" class="banner_form">
<h6>register personal Details</h6>
<div class="sec-right">
<label class="contact-form-text">id</label>
<input placeholder="travelername" name="name" type="text" pattern="[0-9]"
required="" >
</div>
<div class="sec-left">
<label class="contact-form-text">name</label>
<input placeholder="..." name="T1" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">place</label>
<input placeholder="digits" name="T2" type="text" required="">
33
</div>
<div class="sec-left">
<label class="contact-form-text">phone no</label>
<input placeholder="***" name="T3" type="text" maxlength="10" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">address</label>
<input placeholder="***" name="T4" type="text" required="">
</div>
<input type="submit" value="Submit" name="submit">
<input type="submit" onclick="goBack()" value="back" name="BACK">
<script>
<html>
34
Bank Details
<form action="#" method="post" class="banner_form">
<h6>Bank Details</h6>
<div class="sec-right">
<label class="contact-form-text">id</label>
<input placeholder="." name="name" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">accno</label>
<input placeholder="..." name="T1" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">bankname</label>
<input placeholder="" name="T2" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">branch</label>
<input placeholder="***" name="T3" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">city</label>
<input placeholder="***" name="T4" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text">pincode</label>
<input placeholder="***" name="T5" type="text" required="">
35
</div>
<input type="submit" value="Submit" name="submit">
<input type="submit" onclick="goBack()" value="back" name="BACK">
<script>
Payment
<form action="#" method="post" class="banner_form">
<h6>PAYMENT:</h6>
<div class="sec-right">
<div class="sec-left">
<label class="contact-form-text"><h2>Id</h2></label>
<input placeholder="" name="T1" type="text" required="">
</div>
<div class="sec-left">
<label class="contact-form-text"><h2>vechile no</h2></label>
<input placeholder="" name="T0" type="text" required="">
</div>
<h3><label class="contact-form-text">select_vechile :</label>
<select name="vechile">
<option value="bus">bus</option>
<option value="loory">loory</option>
<option value="van">van</option>
<option value="cari">car</option>
<option value="others">others</option>
</select></h3>
</div>
<div class="sec-left">
<h3> <label class="contact-form-text">Toll Amount :</label>
36
<select name="start">
<option value="Chennai-To-Madurai $\350">Chennai-To-Madurai </option>
<option value="Madurai-To-Trichy $\200">Madurai-To-Trichy</option>
<option value="Trichy-To-Chennai $\280">Trichy-To-Chennai</option>
<option value="Pondy-To-chennai $\150">Pondy-To-chennai</option>
<option value="Cuddalore-To-Salem $\250">Cuddalore-To-Salem </option>
<option value="Vellore-To-Chennai $\270">Vellore-To-Chennai</option>
<option value="hennai-To-Salem $\230">Chennai-To-Salem </option>
<option value="Trichy-To-Cuddalore $\120">Trichy-To-Cuddalore</option>
</select></h3>
</div>
<h3> <div class="sec-left">
<label class="contact-form-text">Date :</label>
<input placeholder="" name="T2" type="date" required="">
</div>
<h3><div class="sec-left">
<label class="contact-form-text">Time :</label>
<input placeholder="***" name="T3" type="time" required="">
</div>
<input type="submit" value="Submit" name="submit">
<input type="submit" onclick="goBack()" value="back" name="BACK">
<script>
37
Bill Receipt
<html>
<body>
<form action="" method="post">
<label class="contact-form-text"><h1>ID:</h1></label>
<input type="text" name="id"/>
<input type="submit" name="sele" value="VIEW"/>
<h3>plz choose the same ID</h3>
</form>
<?php
if(isset($_POST["sele"]))
{
$con=mysqli_connect("localhost","root","","project");
$ID=$_POST['id'];
$qu=mysqli_query($con,"select * from result where id='$ID'");
while($rs=mysqli_fetch_array($qu))
{
echo " <br><br><center><font color=ASH><H1> BILL DETAILS</H2></font><table
border=2 CELLPADDING=10><tr>";
echo"<trbgcolor= cyan>
<th><h2>Id</th>
<th><h2>vechile No</th>
<th><h2>vechile type</th>
38
<th><h2>Toll Amount</th>
<th><h2>Date</th>
<th><h2> Time</th>
</tr>";
echo"<trbgcolor=yellow><td><h2>".$rs["0"]."</h2></td><td><h2>".
$rs["1"]."</td><td><h2>".$rs["2"]."</td>
<td><h2>".$rs["3"]."</td><td><h2>".$rs["4"]."</td><td><h2>".
$rs["5"]."</td></tr></table></center></h1> ";
}
mysqli_close($con);
}
?>
39
REFERENCES
BOOKS
1. Programming Php2nd Edition, Author: Rasmus Lerdorf, Publisher: O’Relly
publications.
2. Murach’s Php and MYSQL: Training and Reference, Author: Joel Murach, Ray
Harris, Publisher: Murach Books.
3. Head First Php and MYSQL, Author: Micheal Morrison, Lyon Beighely,
Publisher: O’Relly Publications.
4. Expert PHP and MYSQL: Application Design and Development, Author: Marc
Rochkind, Publication: Apress
5. PHP and MYSQL: The Missing Manual, Author: Brett McLaughlin, Publication
O’Relly Publications.
WEBSITES
1. http://www.freewemasterhelp.com/tutorials/php/
2. http://www.davesite.com/webstation/html/
3. http://www.dev..mysql.com/doc/refman/5.0/en/index.html/
4. http://www.haitutorial.com/mysql/