Sie sind auf Seite 1von 40

EDUCARE

BECHELOR OF TECHNOLOGY
(Computer Science and Engineering)

SUBMITTED BY

VARUN MOHAL
1348266
SEP 2015
Address :( house no.252, sec-3c
Block-c,mgg)
Email: mohalvarun@gmail.com
Under the Guidance of
Dr. Raman Chadha Professor and Head (CSE)

CGC-Technical Campus, Jhanjeri, Mohali.

CERTIFICATE
I hereby certify that the work which is being presented in the project report entitled
EDUCARE by . in partial fulfillment of requirements for the award of
degree of B.Tech. Computer Science & Engineering submitted in the Department of
Computer Science and Engineering at CGC TECHNICAL CAMPUS, Jhanjeri, Mohali
under PUNJAB TECHNICAL UNIVERSITY, JALANDHAR is an authentic record of
my own work under the supervision of Dr. RAMAN CHADHA.
DATE:

Signature of the Student


VARUN MOHAL
Roll No :1348266

SignatureoftheSUPVISOR
DR. RAMAN CHADHA
CGC Technical Campus, Jhanjeri

DATE:

ACKNOWLEDGEMENT
Working on this project is a great experience and for this I owe sincere thanks to my
faculty members. It is a great opportunity to work under guidance of Dr. Raman Chadha.
It would have not been possible to carry out the work with such ease without his immense
help and motivation. I consider my privilege to express my gratitude, respect and thanks to
all of them who are behind me and who guide me in choosing this project. I express sincere
gratitude to our HOD for this everlasting support towards the students for providing us this
opportunity and his support.

Varun Mohal
1348266

Introduction to assigned job

To assist web development team in the design, coding, and testing of technical solutions.
Understand project and development plans and clearly articulate roles, project goals, and
timelines.
To take part in the initial planning of a Web site, meeting with the client to discuss ideas for
the layout and organization of the site, the types of colors or images to use (photos, illustrations,
videos, etc.), and other matters concerning overall graphic design .

Modular description of job


The job assigned to me as a trainee demanded expertise in designing of web pages and to
acquire strong programming skills that will help me to build and maintain websites that can
function well.

To ensure that above job is successfully accomplished fundamental training was provided in
various technologies.
The job was divided into three modules:
Module1
In this module HTML and PHP were studied. HTML is a prerequisite for learning PHP
This module aims to provide a framework for development of interactive web pages.
Module2
SQL was studied to achieve proficiency in relational database concepts. So that data can be
stored or retrieved from the database (MYSQL).
Module3
Introduction to JavaScript
Module4
Introduction to xampp server.

Detailed description of individual module


IV.1

MODULE 1:

IV.1.1

HTML

HTML, which stands for Hyper Text Markup Language, is the predominant markup
language for web pages. It provides a means to create structured documents by denoting
structural semantics for text such as headings, paragraphs, lists etc as well as for links, quotes,
and other items. It allows images and objects to be embedded and can be used to create
interactive forms.
It is written in the form of HTML elements consisting of "tags" surrounded by angle
brackets within the web page content. It can include or can load scripts in languages such as

JavaScript which affect the behavior of HTML processors like Web browsers; and Cascading
Style Sheets (CSS) to define the appearance and layout of text and other material.
The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over
explicit presentational markup. Hyper Text Markup Language (HTML) is the encoding scheme
used to create and format a web documents.
IV.1.2

PHP

PHP: Hypertext Preprocessor, is a widely used, general-purpose scripting language that was
originally designed for web development, to produce dynamic web pages. It can be embedded
into HTML and generally runs on a web server, which needs to be configured to process PHP
code and create web page content from it. It can be deployed on most web servers and on almost
every operating system and platform free of charge. PHP is installed on over 20 million websites
and 1 million web servers.
PHP was originally created by RasmusLerdorf in 1995 and has been in continuous
development ever since. The main implementation of PHP is now produced by The PHP Group
and serves as the de facto standard for PHP as there is no formal specification.PHP is free
software released under the PHP License, which is incompatible with the GNU General Public
License (GPL) because of restrictions on the use of the term PHP.
PHP has evolved to include a command line interface capability and can also be used in
standalonegraphical applications.
One of the strongest and most significant features in PHP is its support for a wide range
of databases. Writing a database-enabled web page is incredibly simple.
The following databases are currently supported:

MSQL

DIRECT MS-SQL

MYSQL

ODBC

ORACLE (OCI7 AND OCI8)

USAGE
PHP is a general-purpose scripting language that is especially suited for web
development. PHP generally runs on a web server. Any PHP code in a requested file is executed
by the PHP runtime, usually to create dynamic web page content. It can also be used for
command-line scripting and client-sideGUI applications. PHP can be deployed on most web
servers, many operating systems and platforms, and can be used with many relational database
management systems. It is available free of charge, and the PHP Group provides the complete
source code for users to build, customize and extend for their own use.

PHP primarily acts as a filter, taking input from a file or stream containing text and/or
PHP instructions and outputs another stream of data; most commonly the output will be HTML.
Since PHP 4, the PHP parser compiles input to produce byte code for processing by the Zend
Engine, giving improved performance over its interpreter predecessor.

Originally designed to create dynamic web pages, PHP now focuses mainly on serverside scripting, and it is similar to other server-side scripting languages that provide dynamic
content from a web server to a client, such as Microsoft's Active Server Pages, Sun
Microsystems' Java Server Pages, and mod Perl. PHP has also attracted the development of many
frameworks that provide building blocks and a design structure to promote rapid application
development (RAD).
Syntax:

PHP only parses code within its delimiters. Anything outside its delimiters is sent directly
to the output and is not processed by PHP; however, non-PHP text is still subject to control
structures described within PHP code. The most common delimiters are:

<? php

to open and ?> to close PHP sections.

<script language="php">

and </script> delimiters are also available, as are the

shortened forms <? Or <?= (which is used to echo back a string or variable) and ?> as well as
ASP-style short forms <% or <%= and %>.
While short delimiters are used, they make script files less portable as their purpose can
be disabled in the PHP configuration, and so they are discouraged. The purpose of all these
delimiters is to separate PHP code from non-PHP code, including HTML.
The first form of delimiters, <?php and ?>, in XHTML and other XML documents,
creates correctly formed XML 'processing instructions'. This means that the resulting mixture of
PHP code and other markup in the server-side file is well-formed XML.
Variables are prefixed with a dollar symbol and a type does not need to be specified in
advance. Unlike function and class names, variable names are case sensitive. Both double-quoted
("") and heredoc strings allow the ability to embed a variable's value into the string. PHP treats
newlines as whitespace in the manner of a free-form language (except when inside string
quotes), and statements are terminated by a semicolon.
PHP has three types of comment syntax: /* */ marks block and inline comments; // as
well as # are used for one-line comments. The echo statement is one of several facilities PHP
provides to output text (e.g. to a web browser).
In terms of keywords and language syntax, PHP is similar to most high level languages
that follow the C style syntax.If conditions, for and while loops, and function returns are
similar in syntax to languages such as C, C++, Java and Perl.

Data types

PHP stores whole numbers in a platform-dependent range. This range is typically that of
32-bit signedintegers. Unsigned integers are converted to signed values in certain situations; this
behavior is different from other programming languages.
Integer variables can be assigned using decimal (positive and negative), octal, and
hexadecimal notations. Floating point numbers are also stored in a platform-specific range. They
can be specified using floating point notation, or two forms of scientific notation.
PHP has a native Boolean type that is similar to the native Boolean types in Java and C+
+. Using the Boolean type conversion rules, non-zero values are interpreted as true and zero as
false, as in Perl and C++.The null data type represents a variable that has no value. The only
value in the null data type is NULL.
Variables of the "resource" type represent references to resources from external sources.
These are typically created by functions from a particular extension, and can only be processed
by functions from the same extension; examples include file, image, and database resources.
Arrays can contain elements of any type that PHP can handle, including resources,
objects, and even other arrays. Order is preserved in lists of values and in hashes with both keys
and values, and the two can be intermingled.
PHP also supports strings, which can be used with single quotes, double quotes, or
heredoc syntax.

IV.2 MODULE 2:
IV.2.1

DATABASE

A database is a collection of information that is organized so that it can easily be


accessed, managed, and updated. In one view, databases can be classified according to types of
content: bibliographic, full-text, numeric, and images.
In computing, databases are sometimes classified according to their organizational
approach. The most prevalent approach is the relational database, a tabular database in which
data is defined so that it can be reorganized and accessed in a number of different ways. A
distributed database is one that can be dispersed or replicated among different points in a
network. An object-oriented programming database is one that is congruent with the data defined
in object classes and subclasses.
Computer databases typically contain aggregations of data records or files, such as sales
transactions, product catalogs and inventories, and customer profiles. Typically, a database
manager provides users the capabilities of controlling read/write access, specifying report
generation, and analyzing usage.
Databases and database managers are prevalent in large mainframe systems, but are also
present in smaller distributed workstation and mid-range systems such as the AS/400 and on
personal computers.

SQL (Structured Query Language) is a databasecomputer language designed for


managing data in relational database management systems (RDBMS), and originally based upon
Relational Algebra.

Its scope includes data query and update, schema creation and modification, and data
access control.

IV.2.2

QUERIES
The most common operation in SQL is the query, which is performed with the declarative
statement. SELECT retrieves data from one or more tables, or expressions. Standard

SELECT

SELECT statements have no persistent effects on the database. Some non-standard


implementations of SELECT can have persistent effects, such as the SELECT INTO syntax that
exists in some databases.
Queries allow the user to describe desired data, leaving the database management system
(DBMS) responsible for planning, optimizing, and performing the physical operations necessary
to produce that result as it chooses.
A query includes a list of columns to be included in the final result immediately following the
keyword. An asterisk ("*") can also be used to specify that the query should return all

SELECT

columns of the queried tables.


Data definition
The Data Definition Language (DDL) manages table and index structure. The most basic items
of DDL are the CREATEALTER, RENAME, DROP and TRUNCATE statements:

CREATE creates an object (a table, for example) in the database.

DROP deletes an object in the database, usually irretrievably.

ALTER modifies the structure of an existing object in various waysfor example,


adding a column to an existing table.

Data control
The Data Control Language (DCL) authorizes users and groups of users to access and
manipulate data.
Its two main statements are:

GRANT authorizes one or more users to perform an operation or a set of operations on an


object.

REVOKE eliminates a grant, which may be the default grant

IV.3

MODULE 3:

IV.3.1

JAVASCRIPT

JavaScript is an object-oriented scripting language used to enable programmatic access to objects


within both the client application and other applications. It is primarily used in the form of clientside JavaScript, implemented as an integrated component of the web browser, allowing the
development of enhanced user interfaces and dynamic websites.
JavaScript is a dialect of the ECMA Script standard and is characterized as a dynamic, weakly
typed, prototype-based language with first-class functions .JavaScript was influenced by many
languages and was designed to look like Java, but to be easier for non-programmers to work
with.
Features
The following features are common to all conforming ECMAScript implementations, unless
explicitly specified otherwise.

Structured

JavaScript supports all the structured programming syntax in C (e.g., if statements,


while

loops, switch statements, etc.). One partial exception is scoping: C-style block-

level scoping is not supported (instead, JavaScript has function-level scoping). JavaScript
1.7, however, supports block-level scoping with the let keyword. Like C, JavaScript
makes a distinction between expressions and statements. One syntactic difference from C
is automatic semicolon insertion, in which the semicolons that terminate statements can
be omitted.

Dynamic
As in most scripting languages, types are associated with values, not variables.

For example, a variable x could be bound to a number, and then later rebound to a string.
JavaScript supports various ways to test the type of an object, including duck typing.

Functional

First-class functions:
Functions are first-class; they are objects themselves. As such, they have properties and
can be passed around and interacted with like any other object.
Inner functions and closures:
Inner functions (functions defined within other functions) are created each time the outer
function is invoked, and variables of the outer functions for that invocation continue to
exist as long as the inner functions still exist, even after that invocation is finished (e.g. if
the inner function was returned, it still has access to the outer function's variables) this
is the mechanism behind closures within JavaScript.

IV.5Xampp has been used at the back end


XAMPP is a free and open sourcecross-platformweb server package, consisting mainly
of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and
Perl programming languages.
XAMPP's name is an acronym for:

Window

Apache HTTP Server

MySQL

PHP

Window, Apache, MySQL, and PHP each component plays a specific and important role:

The Wamp web server intercepts HTTP requests and either serves them directly or passes
them on to the PHP interpreter for execution.

The PHP interpreter parses and executes PHP code, and returns the results to the web
server.

The MySQL RDBMS serves as the data storage engine, accepting connections from the
PHP layer and inserting, modifying, or retrieving data.

Figure on the next page illustrates these components in action:

Heres whats happening in the above Figure:

Joe pops open his web browser at home and types in the URL for his online Webmail client.
After looking up the domain, Joes browser (the client) sends an HTTP request to the
corresponding server IP address.

The Apache web server handling HTTP requests for the domain receives the request and
notes that the URI ends with a .php suffix. Because the server is programmed to
automatically redirect all such requests to the PHP layer, it simply invokes the PHP
interpreter and passes it the contents of the named file.

The PHP interpreter parses the file, executing the code in the special PHP tags. If the code
includes database queries, the PHP interpreter opens a client connection to the MySQL
RDBMS and executes them. Once the script interpreter has completed executing the script, it
returns the result to the browser, cleans up after itself, and goes back into hibernation.

The results returned by the interpreter are transmitted to Joes browser by the Apache server.

LIVE PROJECT :
Project overview:
Future successor is a project in which many information seekers can
Make contact with various companies and make their future in right direction with
their abilities .
That why this project contain many fields like:
Home page
About us
Signup
Submit resume
Frequently ask questions
Contact us
career

The project has been made using following software tools:


PHP: scripting language providing framework for development of interactive web applications.
MySQL: database server providing robust and scalable data storage/retrieval.

Glossary
Term
Administrator

Definition
A login id representing a user with user administration
privileges to the software.

xampp Server
Cascading Style Sheet

Web server that works well with PHP.


It is file which defines the set of for the HTML tags.

Database
Hyper Text Markup
Language
JavaScript

Collection of all the information monitored by this system.


It is a web designing language which is read by web
browser.
It is a client side script that runs on client machine and to
design various effects in website.

Hypertext Preprocessor
Structured Query Language

It is a web development scripting language which is used to


develop dynamic web pages.
used to retrieve information from a database
Anyone visiting the site to read articles and have an
account on the site and become member. User specified the

User

name of author.

Abbreviations

CSS:

Cascading Style Sheet

HTML:

Hyper Text Markup Language

JS:

JavaScript

PHP:

Preprocessor Hypertext

SQL:

Structured Query Language

Technologies

PHP Server Scripting Language.

MySQL- to maintain database.

JavaScript-Client side scripting Language.

CSS- to design style sheets.

Overall Description of project

(20pt)

Introduction

Educare is the name of our project.In educare we are providing


notes of Html,Css,Javacript and Php.Our main mOtive of making
of this site is to provide study material to the users.These notes
are in ppt,pdf format .
We make this site in accordance with the needs of users and the
admin.In general sites one common problem of security occurs ,
but in this site this thing is never gone be happen.
In this site there are two panels :
user panel and admin panel.
User panel:In this user can acces the site according to its need.
view of user panel is :
In this the user can see the notes of html,css,javascript and php
through the gallery option.
For downloading the ppt and ppt files the user must have to login
in the site.After the login the page will be display as:

This page will provides the different options to the user such as
myaccount,change password,ppt,ppf and logout.
TO CHANGE THE PASSWORD:
The user can simply click the change password option,then the
page will appears and user can change the password.The view is:

TO DOWNLOAD THE PPT FILE:


The user can click the ppt option.

TO DOWNLOAD THE PDF FILE:


The user can click the pdf option.

TO LOGOUT FROM THE SITE:


To logout from the site the user can simply click the logout button.

Now this is the whole introduction about the user panel.the


introduction of
admin panel are:
Admin panel:In admin panel ,the complete control of site is done
such as manage user,add user ,add ppt,manage ppt,add
pdf,manage pdf,delete user,delete ppt,delete pdf,upload
ppt,upload pdf etc.
The view of admin panel are as:

In this the admin have to login first,so that admin panel is


open.After the admin login ,the view of admin panel will be like
as:

Different options are provided in this such as my account,change


password,user,admin,category,ppt,pdf and logout.Each option will
perform different options such as user is for adding/deleting the
user.Similarly admin is for adding/deleting the admin.
TO CHANGE THE PASSWORD OF ADMIN:
To change the admin password the user can simply click on the
change password button and then page will open so that the
admin can change the password .The view of change password
page is:

TO MANAGE THE USER SETTINGS :


To add/delete the user setting the user can siply click on the user
option.
The view after clicking the user option is:

TO ADD OR MANAGE THE CATEGORY:


To add or manage the category ,simply visit the category
option.Through this option the user can enter the category of the
notes that is the notes uploaded belngs to which
category(html,css,javascript,php).The veiw is:

TO UPLOAD OR MANAGE THE PPT:


To upload or manage the ppt tutorials ,this option is used.In this
the admin can upload the ppt tutorials of any category and also
manages it.The view is:

TO UPLOAD OR MANAGE THE PDF:


To upload or manage the pdf tutorials ,this option is used.In this
the admin can upload the pdf tutorials of any category and also
manages it.The view is:

SNAPSHOTS OF DATABASE AND ITS TABLES:

TABLES SNAPSHOTS ARE:

ABOUT THE PROJECT

Educare is the name of our project.In educare we are providing


notes of Html,Css,Javacript and Php.Our main motive of making of
this site is to provide study material to the users.These notes are
in ppt,pdf format .
We make this site in accordance with the needs of users and the
admin.In general sites one common problem of security occurs ,
but in this site this thing is never gone be happen.
In this site there are two panels :
user panel and admin panel.

User panel:In this user can acces the site according to its need.In
this the user can see the notes of html,css,javascript and php
through the gallery option.
Admin panel:In admin panel ,the complete control of site is done
such as manage user,add user ,add ppt,manage ppt,add
pdf,manage pdf,delete user,delete ppt,delete pdf,upload
ppt,upload pdf etc.

NEED OF MAKING THIS PROJECT:


According to the 2014-2015 survey,it is found that the php
language is the latest, easiest and secure language for making
the websites.Now days ,this language is in great demand .Many
users want to learn this language.But the problem is that they
dont get the proper study material related to this thats why we
decided to make a site named EDUCARE for them,so that users
can easily learn this language.In educare they will get proer study
material that they needed.

SIGNIFICANCE OF THIS PROJECT:


In this website,we are providing notes of
HTML,CSS,CSS3,HTML5,PHP and JAVASCRIPT.These notes are
available in both pdf and ppt format.The User can simply
download it according to its need.During the construction of this
site we also think about the major problem occurs in websites
commonly that is security.So to improve the security we divided
the site in two sections that is user panel and admin panel.In this
way,so the site will become secure from the risk of untrusted
supplier and thus site exists in protected mode.
OBJECTIVES

1.In educare we are providing notes of Html,Css,Javacript and


Php.Our main mOtive of making of this site is to provide study
material to the users.These notes are in ppt,pdf format .
2.We make this site in accordance with the needs of users and
the admin.In general sites one common problem of security
occurs , but in this site this thing is never gone be happen.
3.Many users want to learn languages like
html,css,javascript,php,But the problem is that they dont get the
proper study material related to this thats why we decided to
make a site named EDUCARE for them,so that users can easily
learn this language.In educare they will get proer study material
that they needed.
4.During construction of this site our main motive is the ease of
access that is the user can easily acess each and every option
without any difficulty.

5.Problem of security is solve by dividing the website in two


levels:
i) User level

:User level modifications can be done in this.

ii)Admin level :Admin level modifications can be done in this.


MODEL OF

EDUCARE IS :

Bibliography and References


Books referred:

Wankyu Choi ,Allan Kent ,Chris Lea, Ganesh Prasad ,Chris Ullman .Beginning
PHP5.Indiana :Wiley publishing,2004

Matt Zandstra. SAMS Teach Yourself PHP4 in 24 Hours. USA .<www.esnips.com>August


10,2009.

VikramVaswani. How To Everything With PHP And MYSQL. USA: McGraw-Hill


www.esnips.com> August 10,2009.

<

Das könnte Ihnen auch gefallen