You are on page 1of 36

1

A
SEMINAR REPORT
ON
~PHP
SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENT FOR THE AWARD
OF THE DEGREE
OF
BACHELOR OF TECHNOLOGY
IN
Computer Science & Engineering



Submitted by: -
Niranjan 1angid
Final year (CS-2)


DEPARTMENT OF COMPUTER SCIENCE & ENGG.
LAXMI DEVI INSTITUTE OF ENGG. & TECHNOLOGY, ALWAR
RAJASTHAN TECHNICAL UNIVERSITY
2011-2012

2


Abstract

The problem is to design a web application that will provide the inIormation and knowledge to
the community members and inIormation about the community to anyone, anywhere in the
world. This website will also aim to provide the inIormation related to any events in the
community.

This Tourism website also popularizes the community! Administrator can post
interesting Iacts about its activities and their achievements to let the people learn. This City
website will also prove most IruitIul Ior the development oI social links among all the members
oI the community.

The Website will also provide the Iacility to their Users to become the Member oI the
Website. The Members can also give their own views and inIormation which will be considered,
iI it is worth to be considered. AIter becoming the Member, the inIormation will be stored in the
database. II Iurther the member wants to change his/her inIormation he/she can change it by
using his/her Unique Username and Password.































ACKNOWLEDGEMENT

We Ieel extremely satisIied presenting this project entitled ~Alwar Tourism.

Completing a task is never one-man eIIort. It is oIten the result oI invaluable contribution oI
number oI individuals in a direct or indirect manner that helps in sharing a making success.

We take this opportunity to express our deep sense oI gratitude and whole hearted thanks to our
guide Mr.punit sharma Ior their valuable guidance and keep interest and aIIection
encouragement throughout the work.

We extend our deep sense oI gratitude and thanks to Md.Faisal Sir Ior spending her precious
time in always motivating and helping us.


We would also like to devote our heartiest thanks to all our Iaculty members Ior their co-
operation during the time oI project completion.

At last we take this opportunity to all those who have directly or indirectly helped us during the
course oI this task.



























certiIicate
















































INDEX


CONTENTS PAGE NO.
Project Profile:

Objective oI Project

Project Analysis
requirement analysis 8
USE case diagram 9-11
SQL server 12-1
System analysis 1-16
Php 17-19
Modules oI project 20
Design 21
Coding oI pages 22
Snapshots 2. . . . .0
Testing 1-2
Features oI project
Conclusion
Bibliography
Future and Scope oI Application 6










6






Objectives of the Project
The objective oI the project is to design a Web Application that will provide all kind oI
inIormation related to Alwar City to their users. The System must provide Iacility to its member
to perIorm various Iunctions like look Ior their proIile, editing their proIile, Iast and reliable
manner and also provide customers and Users to secure and prompt services. The System must
be secure enough so the tempering oI data may not be possible. It must provide member
authentication.
1he Following are
the objectives of the Sports Statistics System :
O Manpower requirement oI the establishment is reduced. In manual system Ior each task
we require at least one employee, which can be expensive and error prone.
O etter Security: The system is more secure than the existing manual system. There are
Iacilities to logging into system with user name and password without which, no one can
access any data. Also read and write attributes oI the system can be controlled hence data
cannot be tempered and cannot have un-authorized access. .
O Comprehensive: The Sports Statistics is also comprehensive that is, it provides
required inIormation in the Iorm, which is Ielt essential Ior the analysis and decision-
making, by its members.
O The main aim oI making this website is to provide inIormations about alwar tourism to
all the tourists.


7




!roject Analysis

Problem Statement:
The inherent problem oI manual Iunctioning in handling oI inIormation is not Ielt cost
eIIective and accurate. The delay in the availability oI required inIormation to work out the
strategy Ior operation in the competitive era demanded a Iaster and accurate system by using
State oI Art` technology.
Based on the above managerial policy directions University website is Ielt most
appropriate. This automation system should be web based.
The system should perIorm Search Iacility to its user accurate, Iast and in reliable
manner, it should also extend both to Users and Members secure and prompt desired services.
The desired System should be secure against the tempering oI data. It must provide user
authentication and password based access.
The project aims to automate and manage the University Members InIormation. It is
basically meant Ior managing the records like Member`s Unique ID, name, Location And
Members Family Details. Until now all these tasks were being accomplished manually, which
are hectic and error prone.
The implementation oI soItware system will make it easy Ior the operator to make entry
Ior new member details and provide the search Iacility to its user.
The existing system Iollows the traditional voluminous data, Iorms to be Iilled by the
candidate. This inIormation has lot oI redundancy thus is complex in Iormulating the records,
and also error prone.
8

DiIIerent Iorms are required to be Iilled in order to submit the inIormation related to any
member. All this inIormation will be stored in the database, so it can be accessed anytime it has
to be.
Requirement Analysis:
During the system study Iollowing Iacts, were analyzed. These Iacts are based on the
user requirement:-
The Aim oI this website is to provide suitable the registration Iacility to its member who
is going to register Ior the diIIerent categories.
Member are required to Registered by Iilling a Iorm which contains the various
inIormation regarding to the categories like Name & Detail, and in diIIerent Service
classes.
Individual member is given a unique identiIication number conventionally knows
Registration number. In Iurther Ior communication with the University this reIerence oI
the registration number will act as key Ior the candidate and the establishment as well.
It is also required that search Iacility provided by the website must be reliable accurate
and eIIicience.
Software Requirement Analysis:
During the system study we have analyzed Iollowing Iacts, which are basis Ior project
development.
The Aim oI Easy Search is to provides registration Iacility to i`s member.
As the registration is done the a new Iorm will open .
Each member is given unique Registration number. They can communicate with the agency by
the reIerence oI the registration number

9

UML DIAGRAM TYPES

1. USE CASE
A use case is a set oI scenarios that describing an interaction between a user and a
system. A use case diagram displays the relationship among actors and use cases. The two main
components oI a use case diagram are use cases and actors.

An actor is represents a user or another system that will interact with the system you are
modeling. A use case is an external view oI the system that represents some action the user
might perIorm in order to complete a task.


Browse Catalog and Search Item
Access The Website
Get InIormation
USER
10









DESIGN

ER-Diagram (ERD).-

Contact us.








II New User Then User Is Authenticated
(New Login ID is made by new User)
Log On to Website
(IF USERD ID IS THERE)
USER
House
Name

Address
Phone No.
11




user Entity



















User
Name
Address
Iname lname
lname
Street name
Apartment
no,
Street
Name
City
State
PinCode
Ph.No.
Email Id
User id
user
password
12

About Technology
y e Use SQL
.Security Management:SQL Server provides a controlled access to data to users by providing a
combination oI privileges.
a. Backup and Recovery:SQL Server provided sophisticated security backup
and recovery routines.
b.Open connectivity:
SQL Server provides open connectivity to and Irom other vendor`s soItware such as
MicrosoIt. Also SQL Server database can be access by various Iront-end soItware`s such as
MicrosoIt Visual Basic , Power Builder etc.
c.Space Management:
In SQL Server once can Ilexibly allocate disk spaces Ior data storage and can control
them subsequently. SQL Server 8 is designed with special Ieature oI data warehousing
SQL-Server 2008
SQL Server 2008 Express Edition is the next version oI MSDE and is a Iree, easy-to-use,
lightweight, and embeddable version oI SQL Server 2008. Continue reading to learn more about
the beneIits oI SQL Server Express Edition and to download SQL Server Management Studio.
MicrosoIt makes SQL Server available in multiple editions, with diIIerent Ieature sets and
targeting diIIerent users.
SQL Server Compact Edition (SQL CE)
The compact edition is an embedded database engine. Unlike the other editions oI SQL Server,
the SQL CE engine is based on SQL Mobile (initially designed Ior use with hand-held devices)
and does not share the same binaries. Due to its small size (1MB DLL Iootprint), it has a
markedly reduced Ieature set compared to the other editions. For example, it supports a subset oI
1

the standard data types, does not support stored procedures or Views or multiple-statement
batches (among other limitations). It is limited to GB maximum database size and cannot be run
as a Windows service, Compact Edition must be hosted by the application using it. The .
version includes considerable work that supports ADO.NET Synchronization Services.
SQL Server Developer Edition
SQL Server Developer Edition includes the same Ieatures as SQL Server Enterprise
Edition, but is limited by the license to be only used as a development and test system,
and not as production server. This edition is available to download by students Iree oI
charge as a part oI MicrosoIt's Dream Spark program.
SQL Server 2008 Embedded Edition (SSEE)
SQL Server 2008 Embedded Edition is a specially conIigured named instance oI the SQL
Server Express database engine which can be accessed only by certain Windows
Services.
SQL Server Enterprise Edition
SQL Server Enterprise Edition is the Iull-Ieatured edition oI SQL Server, including both
the core database engine and add-on services, while including a range oI tools Ior
creating and managing a SQL Server cluster.
SQL Server Evaluation Edition
SQL Server Evaluation Edition, also known as the Trial Edition, has all the Ieatures oI
the Enterprise Edition, but is limited to 180 days, aIter which the tools will continue to
run, but the server services will stop.
SQL Server Express Edition
SQL Server Express Edition is a scaled down, Iree edition oI SQL Server, which includes
the core database engine. While there are no limitations on the number oI databases or
users supported, it is limited to using one processor, 1 GB memory and GB database
Iiles. The entire database is stored in a single 2/1 Iile, and thus making it suitable
Ior XCOPY deployment. It is intended as a replacement Ior MSDE. Two additional
editions provide a superset oI Ieatures not in the original Express Edition. The Iirst
is SQL Server Express with Tools, which includes SQL Server Management
Studio Basic. SQL Server Express with Advanced Services adds Iull-text search
capability and reporting services.
1

SYSTEM ANALYSIS

1. Existing System: -
The existing system does not use any computer based system. All the registration are
done manually. The job such as maintaining the inIormation about the various member,
updating the member database and where it etc .

The existing system had Iollowing Drawbacks:
O It was very time consuming
O Reports were generated manually.
O The Activities are oIten prone to errors.
O The speed oI processing oI data is very slow.
O The inIormation required was not readily available.
O Lots oI paper work was there.

Need for System
At present, all the operations are carried out manually. Sometimes, inIormation is
duplicated, Iilled incorrectly or missed. A new computerized system is needed to handle all these
data integrity and consistency problems that arise when system is handled manually.
(a) To improve quality oI work and accuracy
(b) To improve work speed and accuracy
(c) To provide the easy and user Iriendly environment
(d) Get instant and detail inIormation at single terminal
(e) The project would help in eIIective and systematic record keeping that is storing
and retrieving oI useIul data.
(I) Project will produce various reports so that management can make decisions on
the basis oI these reports
1

2. Proposed System: -

The proposed system objectives are drawn to avoid the drawbacks oI the existing
system .The proposed system replaces ineIIicient process and time-consuming task oI the
current system to be a simple, accurate and eIIective proposed system. The objective oI this
project is to create a website Ior the development oI social links among all the members oI
the community. This site records all the inIormation about its member Ior Iuture use.
Modules oI the project: -
Community project has the Iollowing module:-
O Master Page
O Home Page Form
O Sign up Form
O Sign in form
O Contact us Form
O Photo Gallery
O City News

Maintaining New Members
O Add New Member Form
O &pdate Member Details


2.3 Feasibility Study:-
A Feasibility Study is a test oI system proposal regarding to its workability; impact
on the organization; an eIIective use oI resources.

2.3.1 Technical Feasibility: -
This application is technically Ieasible.
Hardware Requirements:-
Pentium I / Pentium II / Pentium III (& above) (Celeron PC)
12 MB RAM
2GB Hard-Disk
Monitor
eyboard
Mouse
16

LAN card
Modem
Internet Connection
Monitor Resolution 800 * 600
Software Requirements: -
For Development Purpose:
ASP.NET with C#
IIS
SQL Server 200
Email Accounts
OS Win NT WS/2000/2000 ProIessional
MS OIIice (optional)
For Work Station:
Internet Explorer.
Internet Connection
Mail Server
Windows Operating System







17

PERSONAL HOMEPAGE PAGE
(PHP)
Php Is A General-Purpose Scripting Language Originally Designed For Web Development To
Produce Dynamic Web Pages. For This Purpose, Php Code Is Embedded Into The Html Source
Document And Interpreted By A Web Server With A Php Processor Module, Which Generates
The Web Page Document. It also has evolved to include a command-line interIace capability and
can be used in standalone graphical applications. PHP can be deployed on most web servers and
as a standalone interpreter, on almost every operating system and platIorm Iree oI charge. A
competitor to MicrosoIt's Active Server Pages (ASP) server-side script engine and similar
languages, PHP is installed on more than 20 million websites and 1 million web servers.
PHP was originally created by Rasmus LerdorI in 199. The main implementation oI PHP is
now produced by The PHP Group and serves as the de facto standard Ior PHP as there is no
Iormal speciIication. PHP is Iree soItware released under the PHP License which is incompatible
with the GNU General Public License (GPL) due to restrictions on the usage oI the term PHP.
While PHP originally stood Ior "Personal Home Page", it is now said to stand Ior "PHP:
Hypertext Preprocessor", a recursive acronym.


















18

&sage-:
O PHP is a general-purpose scripting language that is especially suited to server-side web
development where PHP generally runs on a web server. Any PHP code in a requested
Iile is executed by the PHP runtime, usually to create dynamic web page content or
dynamic images used on web sites or elsewhere. It can also be used Ior command-line
scripting and client-side GUI applications. PHP can be deployed on most web servers,
many operating systems and platIorms, and can be used with many relational database
management systems (RDBMS). It is available Iree oI charge, and the PHP Group
provides the complete source code Ior users to build, customize and extend Ior their own
use.
O PHP primarily acts as a Iilter, taking input Irom a Iile or stream containing text and/or
PHP instructions and outputs another stream oI data; most commonly the output will be
HTML. Since PHP , the PHP parser compiles input to produce bytecode Ior processing
by the Zend Engine, giving improved perIormance over its interpreter predecessor.
O Originally designed to create dynamic web pages, PHP now Iocuses mainly on server-
side scripting, and it is similar to other server-side scripting languages that provide
dynamic content Irom a web server to a client, such as MicrosoIt's Asp.net, Sun
Microsystems' JavaServer Pages, and modperl. PHP has also attracted the development
oI many Irameworks that provide building blocks and a design structure to promote rapid
application development (RAD). Some oI these include CakePHP, SymIony,
CodeIgniter, and Zend Framework, oIIering Ieatures similar to other web application
Irameworks.
O The LAMP architecture has become popular in the web industry as a way oI deploying
web applications. PHP is commonly used as the P in this bundle alongside Linux, Apache
and MySQL, although the P may also reIer to Python or Perl or some combination oI the
three. WAMP packages (Windows/ Apache/ MySQL / PHP) and MAMP packages (Mac
OS X / Apache / MySQL / PHP) are also available.
O As oI April 2007, over 20 million Internet domains had web services hosted on servers
with PHP installed and modphp was recorded as the most popular Apache HTTP Server
module. PHP is used as the server-side programming language on 7 oI all web servers.
19

Web content management systems written in PHP include MediaWiki, Joomla, eZ
Publish, WordPress, Drupal and Moodle. All websites created using these tools are
written in PHP, including the user-Iacing portion oI Wikipedia, Facebook, and Digg.
Security -:
O The National Vulnerability Database maintains a list oI vulnerabilities Iound in computer
soItware. The overall proportion oI PHP-related vulnerabilities on the database amounted
to: 20 in 200, 28 in 200, in 2006, 6 in 2007, in 2008, and 0 in
2009. Most oI these PHP-related vulnerabilities can be exploited remotely: they allow
attackers to steal or destroy data Irom data sources linked to the webserver (such as an
SQL database), send spam or contribute to DoS attacks using malware, which itselI can
be installed on the vulnerable servers.
O These vulnerabilities are caused mostly by not Iollowing best practice programming
rules: technical security Ilaws oI the language itselI or oI its core libraries are not
Irequent (2 in 2008, about 1 oI the total). Recognizing that programmers cannot be
trusted, some languages include taint checking to detect automatically the lack oI input
validation which induces many issues. Such a Ieature is being developed Ior PHP, but its
inclusion in a release has been rejected several times in the past.
O Hosting PHP applications on a server requires careIul and constant attention to deal with
these security risks. There are advanced protection patches such as Suhosin and
Hardening-Patch, especially designed Ior web hosting environments.
PHPIDS adds security to any PHP application to deIend against intrusions. PHPIDS detects
Cross-site scripting (XSS), SQL injection, header injection, Directory traversal, Remote File
Execution, Local File Inclusion, Denial oI Service (DoS).




20


Modules of the Project & Their Description
The Project has number oI modules, which perIorm speciIied task. Following are the name
and description oI the modules oI the project.
Master Page This Module Use with all Iorms in website.
Home Page This Module Contains the Iront page oI the community website.
Contact &s: This Module provides the Contact Details oI the Community.
Sign up form: This Iorm can be used by any person at Iree oI cost Ior making a
account on this site.
Login: This Module use to login as Administrator.
Photo Gallery: This Module use to show the diIIerent Photos oI diIIerent events
oI the Alwar City
City News: .This Module provides the news oI upcoming events to diIIerent
members oI the Community











21

Design
System design deIines the detail oI how will soItware meet the requirements identiIied
during the analysis. It is not a step-by-step process oI clear procedures and guidelines. But still
much oI design work depends on knowledge and experience oI the designer.
System design involves Iirst logical design and then physical construction oI the system.
The logical design describes the structure and characteristics oI Ieatures, like the outputs, inputs,
Iiles, databases and procedures. The physical construction, which Iollows the logical design,
produces actual program soItware, Iiles and a working system.
Design Process:
The computer system design process is an exercise oI speciIying 'how the system will
work. It is an iterative process, which is based on 'what the system will do.
Mainly, Iollowing Iive parts have been included in the system design process:
(1) Output Design: Output design is the starting point oI the design process.
(2) Input Design: once the output requirements have been Iinalized, the next step is to Iind
out what data need to be made available to the system to produce the desired outputs.
The basic documents in which these data are available to the system need to be
identiIied. II necessary, these documents may have to be revised or new documents
may have to be introduced.





















22

CODING OF PAGES




1. MASTER PAGE:


!DOCTYPE html PUBLIC "-//WC//DTD XHTML 1.0 Strict//EN"
"http://www.w.org/TR/xhtml1/DTD/xhtml1-strict.dtd"~
html~
head~
title~Welcome to Alwar /title~
meta http-equiv"Content-Type" content"text/html; charsetiso-889-1" /~
link hreI"images/styles.css" rel"stylesheet" type"text/css" /~
/head~
body~
div ~
h1~Alwar.com/h1~
ul~
li~a hreI"contact.php"~Contact Us/a~/li~
li~a hreI"signup.php"~Sign Up/a~/li~
li~a hreI"signin.php"~Sign In/a~/li~
li~a hreI"news.php"~News/a~/li~
li~a hreI"#"~Home/a~/li~
/ul~
div class"Visual"~ /div~
/div~

div id"CONTENT"~
?php
sessionstart();
iI( !$SESSION|'user'|)
echo "h2~Welcome Guest /h2~";
else
echo "h2~ Welcome ".$SESSION|'user'|." /h2~ ";
?~
div id"TEXT"~
p~Alwar is a city and administrative headquarters oI Alwar District in
the state oI Rajasthan, India. It is a part oI National Capital Region (NCR) and is located
around 160 km south oI Delhi, and about 10 km north oI Jaipur, the capital oI
Rajasthan./p~
p~India's highest ever recorded temperature oI 0.6 °C (12.1
°F) was measured at Alwar on 10 May 196.|1|/p~
p~Alwar was Iormerly the capital oI the princely state oI Alwar. It was Iormerly
spelt as "Ulwar" in British India. This placed it in last position in
2

alphabetically ordered lists, so a king changed the spelling to "Alwar" to
bring it to the top./p~
h2~Local attractions/h2~
p~ Alwar contains many interesting and historical monuments. The city has a
beautiIul lake and a picturesque valley. The Sariska Tiger Reserve is located in the
Aravalli hills only a Iew kilometres away Irom Alwar. The sanctuary, which is a Project
Tiger reserve, also boasts oI many other species, including rare birds and plants. The
military cantonment oI Itarana lies on the outskirts oI Alwar./p~
br /~
h2~ Fairy Queen/h2~
p~It is the oldest working engines in the world. The engine was built in the year
18 and acquired by the Eastern Indian Railways Irom a British Iirm. Now the train is
one great means oI transportation that departs Irom the Delhi encampment and reaches its
destination at Alwar, in Rajasthan./p~
/p~
h2~Places to see/h2~
p~Taal vrikshbr /~
The Alwar Iort (Bala Quila)br /~
Sariska Tiger Reservebr /~
Haldia Bhawan - About 20 year old Havelibr /~
Siliserh Lakebr /~
Jaisamand Lakebr /~
Pandupol Hanuman Templebr /~
City Palacebr /~
Government Museumbr /~
Moosi MaharaniChhatribr /~
Purjan Viharbr /~
Ramayani Hanuman jibr /~
Tomb oI Fateh Jangbr /~
Nehru gardenbr /~
Hope Circusbr /~
Moti Doongri Parkbr /~
Bhartharibr /~
Naldeshwarbr /~
Neelkanth/p~
/div~
/div~
div id"FOOTER"~
p~a hreI"#"~FAQ/a~ • a hreI"#"~Terms/a~ • a hreI"#"~Privacy
Policy/a~ • a hreI"#"~About Us/a~/p~
p~Your Company © 2006 /p~
p~a hreI"http://www.gettemplate.com"~Designed by GetTemplate.com/a~/p~
/div~
/body~
/html~

2

Output Of Master Page :













































2

2.Home Page:







































Home page oI the website is the visitors` Iirst page. From the home page oI the website visitor
can navigate to any other page oI the website. Home Page contains the link buttons to navigate to
diIIerent pages oI the website.


26

2.Coding of sign up form:

!DOCTYPE html PUBLIC "-//WC//DTD XHTML 1.0 Strict//EN"
"http://www.w.org/TR/xhtml1/DTD/xhtml1-strict.dtd"~
html~head~
title~Welcome to Alwar /title~
meta http-equiv"Content-Type" content"text/html; charsetiso-889-1" /~
link hreI"images/styles.css" rel"stylesheet" type"text/css" /~
/head~body~
div id"HEADER"~
h1~Alwar.com/h1~
ul~
li~a hreI"contact.php"~Contact Us/a~/li~
li~a hreI"#"~Sign Up/a~/li~
li~a hreI"signin.php"~Sign In/a~/li~
li~a hreI"news.php"~News/a~/li~
li~a hreI"index.php"~Home/a~/li~
/ul~
div class"Visual"~ /div~
/div~
div id"CONTENT"~
h2~Create user account/h2~
div id"TEXT"~
?php
iI( !$POST|'sub'| )

?~
Iorm id"Iorm1" method"post" action"http://localhost/dt/signup.php"~
table width"00" border"0"~
tr~
td width"182"~Login ID/td~
td width"287"~label~
input type"text" name"ld" id"textIield" /~
/label~/td~
/tr~ tr~
td~User Name/td~
td~input type"text" name"un" id"textIield2" /~/td~
/tr~ tr~
td~Password /td~
td~input type"password" name"pw1" id"textIield" /~/td~
/tr~ tr~
td~ConIirm Password/td~
td~input type"password" name"pw2" id"textIield" /~/td~
/tr~ tr~
td~E-mail/td~
td~input type"text" name"em" id"textIield" /~/td~
27

/tr~ tr~
td~Address/td~
td~label~
textarea name"adr" id"textarea" cols"" rows""~/textarea~
/label~/td~
/tr~ tr~
td~Date OI Birth/td~
td~input type"date" name"dob" /~ /td~
/tr~ tr~
td~Country/td~
td~label~
select name"cnt" id"select"~
option~India/option~
option~Usa/option~
option~U/option~
option~Nepal/option~
option~Other/option~
/select~
/label~/td~
/tr~ tr~
td~ /td~
td~
?php
requireonce('recaptchalib.php');
$publickey "6Lc6d8YSAAAAAEnmwGP-0G2vcDIgIXdzaJ"; // you got this
Irom the signup page
echo recaptchagethtml($publickey);
?~
/td~/tr~
tr~
td~ /td~
td~label~
input type"submit" name"sub" id"button" value"Submit" /~
input type"reset" name"res" id"button2" value"Reset" /~
/label~/td~
/tr~ /table~
/Iorm~
?php
}
else

$ld $POST|'ld'|;
$un $POST|'un'|;
$pw1 $POST|'pw1'|;
$pw2 $POST|'pw2'|;
$em $POST|'em'|;
28

$adr $POST|'adr'|;
$dob $POST|'dob'|;
$cnt $POST|'cnt'|;
iI( $pw1 ! $pw2)

die("Password mis-match");
}

requireonce('recaptchalib.php');
$privatekey "6Lc6d8YSAAAAAIiBszW7qRcOM6BxRkhAThPgG";
$resp recaptchacheckanswer
($privatekey,$SERVER|"REMOTEADDR"|,$POST|"recaptchachallengeIield"|,$POST|
"recaptcharesponseIield"|);
iI (!$resp-~isvalid)

die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp-~error . ")");
}
else

$cn mysqlconnect("localhost" , "root" , "") or die("conn error");
mysqlselectdb("alwar") or die("database eroor");
$rs mysqlquery("insert into reguser values('$ld' , '$un' , '$pw1' , '$em' , '$adr',
'$dob','$cnt' )" );
iI( $rs ~ 0 )
echo "Login Created br~ a hreIhttp://localhost/dt/signin.php~ Click here Ior sing in
/a~";
else
echo "Please try aIter some time";
}
}
?~
p~ /p~
/div~
/div~
div id"FOOTER"~
p~a hreI"#"~FAQ/a~ • a hreI"#"~Terms/a~ • a hreI"#"~Privacy
Policy/a~ • a hreI"#"~About Us/a~/p~
p~Your Company © 2006 /p~
p~a hreI"http://www.gettemplate.com"~Designed by GetTemplate.com/a~/p~
/div~
/body~
/html~



29

Sign-up Form :








































This Form is used Ior sign up or we can say that Ior creating a account oI a user.
0

Sign-In Page:

.
This page is used Ior authenticate the user`s who have already a account on this site. He/she can
login by this page.
1

TESTING

Types of Testing:
They are various types oI testing as Iollows:
lack box testing - Internal system design is not considered in this type oI testing. Tests are
based on requirements and Iunctionality.
White box testing - This testing is based on knowledge oI the internal logic oI an
application`s code. Also known as Glass box Testing. Internal soItware and code working
should be known Ior this type oI testing. Tests are based on coverage oI code statements,
branches, paths, conditions.
&nit testing - Testing oI individual soItware components or modules. Typically done by the
programmer and not by testers, as it requires detailed knowledge oI the internal program
design and code. May require developing test driver modules or test harnesses.
Incremental integration testing - Bottom up approach Ior testing i.e. continuous testing oI
an application as new Iunctionality is added; Application Iunctionality and modules should
be independent enough to test separately. Done by programmers or by testers.
Integration testing - Testing oI integrated modules to veriIy combined Iunctionality aIter
integration. Modules are typically code modules, individual applications, client and server
applications on a network, etc. This type oI testing is especially relevant to client/server and
distributed systems.
Functional testing - This type oI testing ignores the internal parts and Iocus on the output is
as per requirement or not. Black-box type testing geared to Iunctional requirements oI an
application.
System testing - Entire system is tested as per the requirements. Black-box type testing that
is based on overall requirements speciIications, covers all combined parts oI a system.
End-to-end testing - Similar to system testing, involves testing oI a complete application
environment in a situation that mimics real-world use, such as interacting with a database,
using network communications, or interacting with other hardware, applications, or systems
iI appropriate.
Sanity testing - Testing to determine iI a new soItware version is perIorming well enough to
accept it Ior a major testing eIIort. II application is crashing Ior initial use then system is not
stable enough Ior Iurther testing and build or application is assigned to Iix.
Regression testing - Testing the application as a whole Ior the modiIication in any module
or Iunctionality. DiIIicult to cover all the system in regression testing so typically automation
tools are used Ior these testing types.
2

Acceptance testing -Normally this type oI testing is done to veriIy iI system meets the
customer speciIied requirements. User or customer do this testing to determine whether to
accept application.
Load testing - It`s a perIormance testing to check system behavior under load. Testing an
application under heavy loads, such as testing oI a web site under a range oI loads to
determine at what point the system`s response time degrades or Iails.
Stress testing - System is stressed beyond its speciIications to check how and when it Iails.
PerIormed under heavy load like putting large number beyond storage capacity, complex
database queries, continuous input to system or database load.
Performance testing - Term oIten used interchangeably with `stress` and load` testing. To
check whether system meets perIormance requirements. Used diIIerent perIormance and load
tools to do this.
&sability testing - User-Iriendliness check. Application Ilow is tested, Can new user
understand the application easily, Proper help documented whenever user stuck at any point.
Basically system navigation is checked in this testing.
Install/uninstall testing - Tested Ior Iull, partial, or upgrade install/uninstall processes on
diIIerent operating systems under diIIerent hardware, soItware environment.
Recovery testing - Testing how well a system recovers Irom crashes, hardware Iailures, or
other catastrophic problems.
Security testing - Can system be penetrated by any hacking way? Testing how well the
system protects against unauthorized internal or external access. Checked iI system, database
is saIe Irom external attacks.
Compatibility testing - Testing how well soItware perIorms in a particular
hardware/soItware/operating system/network environment and diIIerent combination s oI
above.
Comparison testing - Comparison oI product strengths and weaknesses with previous
versions or other similar products.
Alpha testing - In house virtual user environment can be created Ior this type oI testing.
Testing is done at the end oI development. Still minor design changes may be made as a
result oI such testing.
eta testing - Testing typically done by end-users or others. Final testing beIore releasing
application Ior commercial purpose.









Features of the Project

There are following key features of this product. They are:-

Design oI User-Friendly input Iormats.

Provisions Ior Data Entry and Validations.

Provision Ior data retrieval.

Unauthorized persons cannot accessible
.
More Ilexible

More interoperability.

























Conclusion
This project ALWAR.COM is developed as per the requirement and necessities oI the client.
The main Ieature oI this project is providing user-Iriendly interIace Ior data entering. This
provides data validations Ieature. Input validations help the user Ior not entering incorrect data.
This is like a prototype.

































ILIOGRAPHY
E-ook- How to Do Everything With PHP And MySQL- vikram vaswani
PHP - http://www.phpbb.com
PHP Manual - http://docs.php.net

PHP Tutorial- http://academ.hvcc.edu/~kantopet/php/index.php
PHP Coder - http://www.phpide.de\
























6

F&T&RE SCOPE



BY ENHANCING THIS PROJECT ADMINISTRATOR
CAN GIVE FEATURES SUCH AS:

I. VIDEO DOWNLOAD

II. SOFTWARE DOWNLOAD

III. E-MAIL FACILITY CAN ALSO BE PROVIDED

You might also like