PHP Six Month Industrial Training Report File
PHP Six Month Industrial Training Report File
1424165
SUBMITTED IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE AWARD OF THE DEGREE OF
BACHELOR OF TECHNOLOGY
(Computer Science and Engineering)
Page 1
Chandigarh Education Hub Roll No.1424165
SUBMITTED IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE AWARD OF THE DEGREE OF
BACHELOR OF TECHNOLOGY
(Computer Science and Engineering)
Page 2
Chandigarh Education Hub Roll No.1424165
ABSTRACT
Page 3
Chandigarh Education Hub Roll No.1424165
ACKNOWLEDGEMENT
I am highly grateful to the Er. Priyanka, Gurukul Vidyapeeth Institute of Engg. & Technology
(GVIET), Banur, for providing this opportunity to carry out the major project work at CDAC,
Mohali (Pb.)
The constant guidance and encouragement received from Er. Kamaljeet Kaur H.O.D. CSE
Department, GVIET, Banur has been of great help in carrying out the project work and is
acknowledged with reverential thanks.
I would like to express a deep sense of gratitude and thanks profusely to Project Guide Name,
without her wise counsel and able guidance, it would have been impossible to complete the project
in this manner.
I express gratitude to other faculty members of Computer Science and Engineering Department of
Gurukul Vidyapeeth Institute of Engg. & Technology for their intellectual support throughout the
course of this work.
Finally, I am indebted to all whosoever have contributed in this report work.
Page 4
Chandigarh Education Hub Roll No.1424165
CONTENTS
Page 5
Chandigarh Education Hub Roll No.1424165
CHAPTER 4: JAVASCRIPT
4.1 Introduction
4.2 Why JavaScript?
4.3 Advantages and disadvantage of JavaScript:
6.5 Objective
Page 6
Chandigarh Education Hub Roll No.1424165
6.9Admin
6.9.1 User Information
6.9.2 Project Information
6.9.3 Assign Information
6.10 Developers view
CHAPTER 8: BIBLIOGRAPHY
CHAPTER 9: ABBREVIATIONS
Page 7
Chandigarh Education Hub Roll No.1424165
CHAPTER 1
INTRODUCTION TO PHP
1.1 PHP: Hypertext Preprocessor
PHP is a widely-used general-purpose scripting language that is especially suited for Web
development and can be embedded into HTML. PHP is a powerful tool for making dynamic and
interactive Web pages. PHP is the widely-used, free, and efficient alternative to competitors such
as Microsoft's ASP.Some facts about PHP are:
PHP stands for PHP: Hypertext Preprocessor.
PHP is a server-side scripting language, like ASP
PHP scripts are executed on the server
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL,
Generic ODBC, etc.)
PHP is an open source software
PHP is free to download and use
In our project well be using MySQL as the database support.
Page 8
Chandigarh Education Hub Roll No.1424165
Unicode:
Unicode is an industry-standard set of characters, character encoding, and encoding methodologies
primarily aimed at enabling i18n and localization (i10n). The Unicode Transformation Format
(UTF) specifies a way to encode characters for Unicode.
1.4 Namespaces:
Namespaces are a way of avoiding name collisions between functions and classes without using
prefixes in naming conventions that make the names of your methods and classes unreadable. So
by using namespaces, you can have class names that someone else might use, but now you don't
have to worry about running into any problems. Listing 1 provides an example of a namespace in
PHP.
You won't have to update or change anything in your code because any PHP code you write that
doesn't include namespaces will run just fine. Because the namespaces feature appears to be back-
ported to V5.3 of PHP, when it becomes available, you can start to introduce namespaces into your
own PHP applications.
Page 9
Chandigarh Education Hub Roll No.1424165
SOAP:
SOAP is one of the protocols that Web services "speak" and is supported in quite a few other
languages, such as the Java programming language and Microsoft .NET. Although there are
other ways to consume and expose Web services, such as Representational State Transfer (REST),
SOAP remains a common way of allowing different platforms to have interoperability. In addition
to SOAP modules in the PHP Extension and Application Repository (PEAR) library, a SOAP
extension to PHP was introduced in V5. This extension wasn't enabled by default, so you have to
enable the extension or hope your ISP did. In addition, PEAR packages are available that allow
you to build SOAP clients and servers, such as the SOAP package.
Unless you change the default, the SOAP extension will be enabled for you in V6. These
extensions provide an easy way to implement SOAP clients and SOAP servers, allowing you to
build PHP applications that consume and provide Web services. If SOAP extensions are on by
default that means you won't have to configure them in PHP. If you develop PHP applications and
publish them to an ISP, you may need to check with your ISP to verify that SOAP extensions will
be enabled for you when they upgrade.
1.6 XML:
As of PHP V5.1, XMLReader and XMLWriter have been part of the core of PHP, which makes it
easier for you to work with XML in your PHP applications. Like the SOAP extensions, this can be
good news if you use SOAP or XML because PHP V6 will be a better fit for you than V4 out of
the box.
Removed Things:
In addition to having new features, PHP V6 will not have some other functions and features that
have been in previous versions. Most of these things, such as register_globals andsafe_mode, are
widely considered "broken" in current PHP, as they may expose security risks. In an effort to clean
up PHP, the functions and features listed in the next section will be removed, or deprecated, from
PHP. Features that will be removed from the PHP version include:
magic_quotes
register_globals
register_long_arrays
safe_mode
Page 10
Chandigarh Education Hub Roll No.1424165
Syntax:
<?php
//page content
?>
Page 11
Chandigarh Education Hub Roll No.1424165
Disadvantages:
Security : Since it is open sourced, so all people can see the source code, if there are bugs
in the source code, it can be used by people to explore the weakness of PHP
Not suitable for large applications: Hard to maintain since it is not very modular.
Page 12
Chandigarh Education Hub Roll No.1424165
CHAPTER 2
INTRODUCTION TO HTML
<TITLE>
</TITLE>
</HEAD>
<BODY>
Page 13
Chandigarh Education Hub Roll No.1424165
</BODY>
</HTML>
All the tags have these < > around them. These brackets tell the browser that the text inside the
brackets is to be read as an HTML command. Look at <HTML> and </HTML>. Do you see the
difference? The first one, <HTML>, has no / (forward slash). It is the opening tag.
Page 14
Chandigarh Education Hub Roll No.1424165
Disadvantages:
It cannot produce dynamic output alone, since it is a static language
Sometimes, the structuring of HTML documents is hard to grasp
You have to keep up with deprecated tags, and make sure not to use them
Deprecated tags appear because another language that works with HTML has replaced the
original work of the tag; thus the other language needs to be learned (most of the time, it is
CSS)
Security features offered by HTML are limited
Form validation cannot be done in html
Page 15
Chandigarh Education Hub Roll No.1424165
CHAPTER 3
CASCADING STYLE SHEETS (CSS)
3.1 Introduction:
CSS is a style sheet language used to describe the presentation semantics (that is, the look and
formatting) of a document written in a markup language. Its most common application is to style
web pages written in HTML and XHTML, but the language can also be applied to any kind of
XML document.
CSS is designed primarily to enable the separation of document content (written in HTML or a
similar markup language) from document presentation, including elements such as the layout,
colors, and fonts. This separation can improve content accessibility, provide more flexibility and
control in the specification of presentation characteristics, enable multiple pages to share
formatting, and reduce complexity and repetition in the structural content (such as by allowing for
table less web design). CSS can also allow the same markup page to be presented in different
styles for different rendering methods, such as on-screen, in print, by voice (when read out by a
speech-based browser or screen reader) and on Braille-based, tactile devices. While the author of a
document typically links that document to a CSS style sheet, readers can use a different style sheet,
perhaps one on their own computer, to override the one the author has specified.
<html>
<head>
<style type = text/css>
{Background-color: #b4c4de;}
</style>
</head>
Page 16
Chandigarh Education Hub Roll No.1424165
Tim Berners Lee invented the World Wide Web, the language HTML was only used to add
structure to text. An author could mark his text by stating "this is a headline" or "this is a
paragraph" using HTML tags such as <h1> and <p>.
Cascading Style Sheet was invented to remedy this situation by providing web designers with
sophisticated layout opportunities supported by all browsers. At the same time, separation of the
presentation style of documents from the content of documents makes site maintenance a lot easier
Page 17
Chandigarh Education Hub Roll No.1424165
3. Easy maintenance:
To change the style of an element, you only have to make an edit in one place.
Disadvantages of CSS:
1. Browser compatibility: Browsers have varying levels of compliance with Style Sheets.
This means that some Style Sheet features are supported and some aren't.
2. Different syntax to HTML: CSS was developed independently of HTML and uses a
different syntax, so a web developer has to learn two sets of formatting syntax instead of one. CSS
syntax is also rather clumsy and user-unfriendly.
3. Requires access to external files: If you save an HTML file on disk without the
associated style sheet then it will lose its formatting when you look at it offline. Similarly, any
pages which depend on a web-level sheet will lose their formatting if access to the web-level sheet
site is lost.
Page 18
Chandigarh Education Hub Roll No.1424165
CHAPTER 4
JAVASCRIPT
4.1 Introduction:
JavaScript is a simple programming language built into Netscape 2.0 and greater. It is integrated
with and embedded in HTML. It allows greater control of web page behavior than does HTML
alone. Since the JavaScript interpreter is part of Netscape, it is platform-independent: JavaScript
incorporated into HTML runs on Windows, Macintosh, and other Netscape-supported systems.
Lets start comprehensive JavaScript Tutorial and enjoy.
Here in JavaScript we will see that JavaScript is used in web development from several years and a
number of benefits we were using while development of websites. The major benefit of JavaScript
is to add more interaction between the web pages and its viewers at very low cost of a little extra
work by web developer.
Page 19
Chandigarh Education Hub Roll No.1424165
Syntax:
</script>
e.g.,
<script type="text/javascript">
functionshowMessage()
</script>
Advantages:
JavaScript is executed on the client side: This means that the code is executed on
the user's processor instead of the web server thus saving bandwidth and strain on the web
server.
Page 20
Chandigarh Education Hub Roll No.1424165
JavaScript is relatively fast to the end user As the code is executed on the user's
computer, results and processing is completed almost instantly depending on the task (tasks
in JavaScript on web pages are usually simple so as to prevent being a memory hog) as it
does not need to be processed in the site's web server and sent back to the user consuming
local as well as server bandwidth.
Disadvantages
Security Issues: JavaScript snippets, once appended onto web pages execute on
client servers immediately and therefore can also be used to exploit the user's system.
While a certain restriction is set by modern web standards on browsers, malicious code
can still be executed complying with the restrictions set.
Page 21
Chandigarh Education Hub Roll No.1424165
CHAPTER 5
INTRODUCTION TO MY SQL
5.1 MySQL:
My SQL is a relational database management system (RDBMS) that runs as a server providing
multi-user access to a number of databases. It is named after developer Michael Weenies' daughter,
my. The SQL phrase stands for Structured Query Language.
The MySQL development project has made its source code available under the terms of the GNU
General Public License, as well as under a variety of proprietary agreements. MySQL was owned a
and sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned
by Oracle Corporation.
Free-software-open source projects that require a full-featured database management system often
use MySQL. For commercial use, several paid editions are available, and offer additional
functionality. Applications which use MySQL databases include: Joomla, Wordpress, MyBB,
phpBB, Drupal and other software built on the LAMP software stack. MySQL is also used in
many high-profile, large-scale World Wide Web products, including Wikipedia, Google (though
not for searches) and Face book.
Page 22
Chandigarh Education Hub Roll No.1424165
interaction between a MySQL database and any web client via structured URLs. The MySQL
server and official libraries are mostly implemented in ANSI C/ANSI C++.
Page 23
Chandigarh Education Hub Roll No.1424165
In a small project, individuals on the project team can take on more than one role. Note that
combining roles on a project introduces risk to the project. Therefore, it is important to assign
appropriate roles to the members. For example, it is not recommended that an individual be
assigned to both the program management role and the development role.
5.4 Technology:
The technology category defines the technical services needed to perform and support the business
mission, including the topologies, development environments, application programming interfaces
(APIs), security, network services, database management system (DBMS) services, technical
specifications, hardware tiers, operating systems, and more.
You can use information from the technology category to determine the standard interfaces,
services, and application models to be used in development. This information can translate into
development resources for the project teams, including component and code libraries, standards
documents, and design guidelines. This information can also provide a basis for an applications
design goals and constraints
.
5.5 System Design:
After gathering and analyzing the requirements, the team creates the design of the solution. The
team creates user profiles that specify the various users of the solution and their roles and
responsibilities. The team then creates a series of usage scenarios. A usage scenario specifies the
activity performed by a particular type of user. Therefore, the team needs to create usage scenarios
for all user profiles. After creating usage scenarios, the team creates use cases for the usage
scenarios. A use case specifies the sequence of steps that a user will perform in a usage scenario.
Design stages:
The three design stages are:
Conceptual design, in which you view the problem from the perspective of the users and
business requirements and define the problem and solution in terms of usage scenarios.
Logical design,in which you view the solution from the perspective of the project team and
define the solution as a set of services.
Page 24
Chandigarh Education Hub Roll No.1424165
Physical design, in which you view the solution from the perspective of the developers and
define the technologies, component interfaces, and services of the solution.
You document the solution design in the functional specification. The functional specification
describes the behavior and appearance of each feature of the solution. It also describes the
architecture and the design for all features.
Page 25
Chandigarh Education Hub Roll No.1424165
Page 26
Chandigarh Education Hub Roll No.1424165
Page 27
Chandigarh Education Hub Roll No.1424165
CHAPTER 6
INTRODUCTION TO CHANDIGARH EDUCATION HUB
Page 28
Chandigarh Education Hub Roll No.1424165
Advantages:
Provide every available information regarding Universities and Colleges in Chandigarh.
Provide every available information regarding Schools of Chandigarh.
Online Datesheet of all Classes and Degrees.
Show Result of all Classes and Degrees.
New Updates about Entrance Exams in India as well as Chandigarh.
Provide every available information regarding Entrance Exams of India.
Disadvantages:
Lack of accredition and low quality.
Little or no face-to-face intersection.
Intense requirement for self discipline.
Even more intense requirement for self direction.
Hardware Requirements
Each computer must have the following minimum configuration. All hardware should be on the
Microsoft Windows XP or Microsoft Windows 2000 Hardware Compatibility List.
Pentium II class processor, 450 megahertz (MHz).
160 MB physical memory, 256 MB recommended.
Super VGA (800 x 600) or higher-resolution monitor with 256 colors.
Microsoft Mouse or compatible pointing device.
Keyboard
Internet Connection
Page 29
Chandigarh Education Hub Roll No.1424165
Software Requirements
The following software is required to complete the procedures in this course.
Microsoft Windows 2000 or Microsoft Windows XP Professional Edition.
Professional Edition, Enterprise Developer Edition, or Enterprise Architect Edition for
Development purposes only.
Microsoft SQL Server 2000 or later.
Database design:- MySQL
Website design:- CSS
Coding(logic):- PHP ,JavaScript and JQuery
Server:- WAMP Server
Platform:- Windows 10 Pro
Application:-Dreamweaver CS6
Photoshop CS4
Browser: Google Chrome, Opera, Microsoft Edge
Page 30
Chandigarh Education Hub Roll No.1424165
Hyper Text Markup Language (HTML) is the backbone of any website development
process, without which a web page doesn't exist. Hypertext means that text has links,
termed hyperlinks, embedded in it. When a user clicks on a word or a phrase that has a
hyperlink, it will bring another webpage. A markup language indicates text can be turned
into images, tables, links, and other representations. It is the HTML code that provides an
overall framework of how the site will look.
Cascading Style Sheets (CSS) controls the presentation aspect of the site and allows your
site to have its own unique look. It does this by maintaining style sheets which sit on top of
other style rules and are triggered based on other inputs, such as device screen size and
resolution.
Page 31
Chandigarh Education Hub Roll No.1424165
SQL SQL is a universal database query language. SQL is used to interact with databases, which
are a part of every backend web application. No matter what language or framework you choose to
build your web application, you will likely use SQL, or some abstraction of it, to interact with the
database.
Data Flow Diagramming is a means of representing a system at any level of detail with a graphic
network of symbols showing data flows, data stores, data processes, and data sources/destination.
Details that is not shown on the different levels of the data flow diagram such as volumes, timing,
frequency, etc. is shown on supplementary diagrams or in the data dictionary. For example, data
store contents may be shown in the data dictionary.
Page 32
Chandigarh Education Hub Roll No.1424165
ADMIN CHANDIGARH
Page 33
Chandigarh Education Hub Roll No.1424165
Level 1 :
CHANDIGARH
EDUCATION
USER ADMIN
HUB
MANAGER
CHAPTER 7
SCREEN SHORTS
Page 35
Chandigarh Education Hub Roll No.1424165
CHAPTER 8
BIBLIOGRAPHY
www.w3schools.com (W3Schools)
www.google.co.in (Google)
www.stackoverflow.com (Stackoverflow)
www.jquery.com (Jquery)
www.getbootstrap.com (Bootstrap)
www.wix.com (Wix)
www.wikipedia.org (Wikipedia)
Page 36
Chandigarh Education Hub Roll No.1424165
CHAPTER 9
ABBREVATIONS
Page 37
Chandigarh Education Hub Roll No.1424165
CHAPTER 10
CONCLUSION
This is to conclude that the project that I undertook was worked upon with a sincere effort. Most of
the requirements have been fulfilled up to the mark and the requirements which have been
remaining, can be completed with a short extension.
This Training Module explained the basics of MySQL and PHP. This module also explained the
Core Technologies that are implemented for developing web based applications using HTML and
PHP. This includes an introduction to database connectivity using MySQL and moved onto
advanced features of MySQL. Management of database with MySQL.
The project made here is just to ensure that this product could be valid in today real challenging
world. Here all the facilities are made and tested.
Currently the system works for limited number of administrators to work. In near future it will be
extended for many types of policies so that efficiency can be improved
Modern navigation system can get you to the door, but rarely any further .Now, that slowly
becoming a thing of past. Google now, offers indoor maps for androids users at around 10000
locations and rivel microsoft is doing the same with Bing map , including indoor maps at location
such as heath row .
Page 38
Chandigarh Education Hub Roll No.1424165
In an ideal world, the maps of public transport system would be dynamic. Tunnel vision currently
only available for New York is an application that overlay information on to subway maps
showing users, for example, which stations are most likely to be crowed.
Page 39