Documente Academic
Documente Profesional
Documente Cultură
BACHELOR OF TECHNOLOGY
IN
INFORMATION TECHNOLOGY
Submitted by
M.AJAY BABU (12075A1201),
K.NAVYA (11071A1228),
SHRUTHI R.(11071A1241)
---------------------------------------------------------------------------------
-------------------
DEPARTMENT OF INFORMATION TECHNOLOGY
VALLURUPALLI NAGESHWARA RAO VIGNANA JYOTHI INSTITUTE OF
ENGINEERING AND TECHNOLOGY
HYDERABAD
(Approved by AICTE, New Delhi & Affiliated to JNTU, Hyderabad )
2011-2015
I
VALLURUPALLI NAGESWARA RAO VIGNANA JYOTHI INSTITUTE OF
ENGINEERING AND TECHNOLOGY
CERTIFICATE
IT Department IT Department
CERTIFICATE
This is to certify that M. Ajay Babu (12075A1201) has successful completed their
mini project work at vnr vignana jyothi institute of engineering and technology
entitled Automated Email Results System in partial fulfillment of the requirements
for the award of B.Tech degree during the academic year 2013-2014.
This work is carried out under my supervision and has not been submitted to any
other University/Institute for award of any degree/diploma.
Dr. N. Mangathayaru
Professor
mangathayaru_n@vnrvjiet.in
--------------------------------------------------------------------------------------------------------
VNR VIGNANA JYOTHI INSTITUTE OF ENGINEERING
AND TECHNOLOGY
-------------------------------------------------------------------------------------------------------------------------
CERTIFICATE
This is to certify that k .Navya (11071A1228) has successful completed their mini
project work at vnr vignana jyothi institute of engineering and technology entitled
Automated Email Results System in partial fulfillment of the requirements for the
award of B.Tech degree during the academic year 2013-2014.
This work is carried out under my supervision and has not been submitted to any
other University/Institute for award of any degree/diploma.
Dr. N. Mangathayaru
Professor
mangathayaru_n@vnrvjiet.in
--------------------------------------------------------------------------------------------------------
VNR VIGNANA JYOTHI INSTITUTE OF ENGINEERING
AND TECHNOLOGY
-------------------------------------------------------------------------------------------------------------------------
CERTIFICATE
This is to certify that Shruthi r.(11071A1241) has successful completed their mini
project work at vnr vignana jyothi institute of engineering and technology entitled
Automated Email Results System in partial fulfillment of the requirements for the
award of B.Tech degree during the academic year 2013-2014.
This work is carried out under my supervision and has not been submitted to any
other University/Institute for award of any degree/diploma.
Dr. N. Mangathayaru
Professor
mangathayaru_n@vnrvjiet.in
--------------------------------------------------------------------------------------------------------
DECLARATION
I hereby declare that the project work AUTOMATED EMAIL RESULTS SYSTEM
submitted towards partial fulfillment of requirements for the Degree of Bachelor of
Technology in Information Technology to VNR Vignana Jyothi Institute Of
Engineering and Technology, Hyderabad, is an authenticate work and had not been
subimitted to any other university or institute for any award of degree of diploma.
M.AJAY BABU(12075A1201)
K.NAVYA (11071A1228)
SHRUTHI R.(11071A1241)
II
ACKNOWLEDGEMENT
The development of this mini project though it was an arduous task, has been
successfully completed. We are pleased to express our thanks to these people, whose
suggestions, comments and critics greatly encouraged us in the betterment of this
project.
We are very much thankful to Mr. G. Suresh Reddy, Head Of I.T Department for
giving us permission to do this project work.
Finally we thank all the people who helped us complete this project successfully.
M.AJAY BABU
K.NAVYA
SHRUTHI R.
III
TABLE OF CONTENTS
Pg.no
1. INTRODUCTION 7-8
1.1 PURPOSE
1.2 PRODUCT SCOPE
1.3 PROJECT SCOPE
3. ANALYSIS 15-16
3.1 APPROCH METHOD
3.2 SOFTWARE REQUIREMENT SPECIFICATIONS
3.2.1 SOFTWARE REQUIREMENTS
3.2.2 HARDWARE REQUIREMENTS
4. DESIGN 17-24
4.1 UML- DIAGRAMS
5. IMPLEMENTATION 25-30
IV
7. TESTING 37-40
8. CONCLUSION 41
V
ABSTRACT
In educational institutions like ours, declaring results through the college portal
seems like a tedious job. The site crashes once too many people login and then,
it takes even longer for the site to work. Automated E-results System is a web
based application, and the main objective of the proposed system is to tackle
the complications given by the old system. It automatically sends semester
results to all the students respective email addresses. This application takes
two .CSV(comma separated values) files as input, one containing students
email addresses and the other file containing marks of all the students. Based on
the Hall ticket number of each student, script extracts marks and sends it to the
corresponding email address in a well formatted html table. Swift mailer library
has been used for sending emails by connecting to a remote SMTP server. An
added advantage of the application is the high security concerns are met
efficiently.
VI
1. INTRODUCTION
1.1 PURPOSE
7
Our web application meets the concerns of such security issues, by using functions
available in PHP. The advantages of using PHP are, its easy and has various levels
of security. It supports all major databases and is platform independent.
The aim of using this web application is to make the process simpler and faster
with a modish approach.
PHP is a server-side scripting language designed for web development but also
used as a general-purpose programming language.
We upload .CSV files as they are small in size and hence, upload faster.
Swift mailer library is used, because it handles large attachments with
embedded images and also with low memory use.
8
2. LITERATURE SURVEY
2.1 ENVIRONMENT
PHP development began in 1994 when Rasmus Lerdorf wrote a series of Common
Gateway Interface (CGI) binaries in C, which he used to maintain his personal
homepage. He extended them to add the ability to work with web forms and to
communicate with databases, and called this implementation "Personal Home
Page/Forms Interpreter" or PHP/FI.
OVERVIEW OF PHP
PHP is a server-side scripting language designed for web development but also used
as a general-purpose programming language. As of January 2013, PHP was installed
on more than 240 million websites (39% of those sampled) and 2.1 million web
servers .Originally created by Rasmus Lerdorf in 1994,the reference implementation
of PHP (powered by the Zend Engine) is now produced by The PHP Group. While
PHP originally stood for Personal Home Page, it now stands for PHP: Hypertext
Preprocessor, which is a recursive backronym.
9
PHP code can be simply mixed with HTML code, or it can be used in combination
with various templating engines and web frameworks. PHP code is usually processed
by a PHP interpreter, which is usually implemented as a web server's native module or
a Common Gateway Interface (CGI) executable. After the PHP code is interpreted and
executed, the web server sends resulting output to its client, usually in form of a part
of the generated web page for example, PHP code can generate a web page's HTML
code, an image, or some other data. PHP has also evolved to include a command-line
interface (CLI) capability and can be used in standalone graphical applications.
The canonical PHP interpreter, powered by the Zend Engine, is free software released
under the PHP License. PHP has been widely ported and can be deployed on most
web servers on almost every operating system and platform, free of charge.
Despite its popularity, no written specification or standard exists for the PHP
language; instead, the canonical PHP interpreter serves as a de facto standard.
However, work on creating a formal specification has started in 2014
PHP received mixed reviews due to lacking native Unicode support at the core
language level ,In 2005, a project headed by Andrei Zmievski was initiated to bring
native Unicode support throughout PHP, by embedding the International Components
for Unicode (ICU) library, and representing text strings as UTF-16 internally .Since
this would cause major changes both to the internals of the language and to user code,
it was planned to release this as version 6.0 of the language, along with other major
features then in development.
10
However, a shortage of developers who understood the necessary changes, and
performance problems arising from conversion to and from UTF-16, which is rarely
used in a web context, led to delays in the project. As a result, a PHP 5.3 release was
created in 2009, with many non-Unicode features back-ported from PHP 6, notably
namespaces. In March 2010, the project in its current form was officially abandoned,
and a PHP 5.4 release was prepared containing most remaining non-Unicode features
from PHP 6, such as traits and closure re-binding. Initial hopes were that a new plan
would be formed for Unicode integration, but as of 2014 none has been adopted.
PHP 7
As of 2014, work is underway on a new major PHP version named PHP 7. There was
some dispute as to whether the next major version of PHP was to be called PHP 6 or
PHP 7. While the PHP 6 unicode experiment had never been released, a number of
articles and book titles referenced the old PHP 6 name, which might have caused
confusion if a new release were to reuse the PHP 6 name. After a vote, the name
PHP 7 was chosen. PHP 7 gets its foundations from an experimental PHP branch that
was originally named PHPNG (PHP Next Generation), which aims at optimizing PHP
performance by refactoring the Zend Engine while retaining near-complete language
compatibility. As of 14 July 2014, Word Press-based benchmarks, which serve as the
main benchmark suite for PHPNG project, show an almost 100% increase in
performance. Changes from PHPNG are also expected to make it easier to improve
performance in the future, as more compact data structures and other changes are seen
as better suited for a successful migration to a just-in-time (JIT) compiler.
11
PHP 7 will also contain an improved variable syntax which is internally consistent and
complete, resolving a long-standing issue in PHP. This will allow use of ->, [], (), {},
and :: operators with arbitrary meaningful left-hand-side expressions.
Sessions
Session support in PHP consists of a way to preserve certain data across subsequent
accesses. This enables you to build more customized applications and increase the
appeal of your web site. All information is in the Session reference section.
Cookies
PHP transparently supports HTTP cookies. Cookies are a mechanism for storing data
in the remote browser and thus tracking or identifying return users. You can set
cookies using the setcookie() or setrawcookie() function.
12
Cookies are part of the HTTP header, so setcookie() must be called before any output
is sent to the browser. This is the same limitation that header() has. You can use the
output buffering functions to delay the script output until you have decided whether or
not to set any cookies or send any headers.
Any cookies sent to you from the client will automatically be included into a
$_COOKIE auto-global array if variables order contains "C". If you wish to assign
multiple values to a single cookie, just add [] to the cookie name.
Depending on register globals, regular PHP variables can be created from cookies.
However it's not recommended to rely on them as this feature is often turned off for
the sake of security. $HTTP_COOKIE_VARS is also set in earlier versions of PHP
when the track vars configuration variable is set. (This setting is always on since PHP
4.0.3.)
For more details, including notes on browser bugs, see the setcookie() and
setrawcookie() function.
It is also possible to upload multiple files simultaneously and have the information
organized automatically in arrays for you. To do so, you need to use the same array
submission syntax in the HTML form as you do with multiple selects and checkboxes:
13
2.2 EXISTING SYSTEM
As we all know the existing results system have a portal which consist s of a text box
for the entry of hall ticket number and a submit button. On submit we get our
results.But the main problem we get is the server down or the session unavailable.
As every individual is eager to know their respective results, every one will check out
the results link which makes the server down in service.
To eradicate that problem we have developed a system to make every individual get
his/her results to their respective email addresses. The process is to have the student
details and their marks, then this portal will send mails to each and every student.
14
3.ANALYSIS
15
Our web application meets the concerns of such security issues, by using functions
available in PHP. The advantages of using PHP are, its easy and has various levels
of security. It supports all major databases and is platform independent.
Processor : Pentium-IV
RAM : 512 MB(Min)
Hard Disk : 40 GB(Min)
16
4.DESIGN
It was created and developed by Grady Booch, Ivar Jacobson and James
Rumbaugh at Rational Software during 199495 with further development led by
them through 1996.
In 1997 it was adopted as a standard by the Object Management Group (OMG), and
has been managed by this organization ever since. In 2000 the Unified Modeling
Language was also accepted by the International Organization for
Standardization (ISO) as an approved ISO standard. Since then it has been
periodically revised to cover the latest revision of UML. [2]
18
For example, semantics of multiplicity of actors and multiplicity of use cases on use
case diagrams is not defined precisely in the UML specification and could mean either
concurrent or successive usage of use cases.
Name of an abstract classifier is shown in italics while final classifier has no specific
graphical notation, so there is no way to determine whether classifier is final or not
from the diagram.
19
CLASS DIAGRAM
20
USECASE DIAGRAM
21
ACTIVITY DIAGRAM
22
SEQUENCE DIAGRAM
LOGIN:
23
SEQUENCE DIAGRAM
24
5. IMPLEMENTATION
<!DOCTYPE html>
<?php
session_start();
$success=$notfound=$err="";
if($_SERVER["REQUEST_METHOD"]=="POST")
$uname=mysql_real_escape_string($_POST["uname"]);
$password=mysql_real_escape_string($_POST["password"]);
require("config.php");
25
$final=mysql_fetch_array($res);
if($password==$final["password"] &&
$uname==$final["name"]){
$_SESSION["name"]=$uname;
header('Location:home.php');
else{
else{
?>
26
<html>
<head lang="en">
<meta charset="utf-8">
</head>
<body>
</h4>
<div class="row">
27
<!--header-->
</div>
</div>
</div>
<div class="row">
<?php
if(!empty($err)){
?>
</div>
</div>
</div>
<div class="container">
<div class="row">
28
<div class="col-md-offset-4 col-sm-4 col-xs-2">
<div class="panel-heading">
<h3 class="panel-title">
</div>
<div class="panel-body">
<br/>
<br/>
29
</form>
</div>
</div>
</div>
</div>
</div>
</nav>-->
<br>
</p>
</nav>
</body>
</html>
30
6.EXECUTION SCREENS
ADMIN LOGIN
31
HOME PAGE
32
UPLOADING MARKS FILE
33
UPLOADING EMAIL FILE
34
PREVIEWING THE UPLOADED RESULTS
35
SENDING MAILS
36
7.TESTING
Software testing is a process used to identify the correctness, completeness and quality
of developed computer software. Actually, testing can never establish the correctness
of computer software, as this can only be done by formal verification (and only when
there is no mistake in the formal verification process). It can only find defects, not
prove that there are none. The kinds of testing are:
Unit Testing
System Testing
Integration Testing
Types of Testing
Unit Testing
Functional and reliability testing in an engineering environment is called unit testing.
Producing tests for the behavior of components of a product to ensure their correct
behavior prior to system integration.
Integration Testing
The purpose of integration testing is to verify functional, performance and reliability
requirements placed on major design items. These "design items", i.e. assemblages (or
groups of units), are exercised through their interfaces using Black box testing,
success and error cases being simulated via appropriate parameter and data inputs.
Simulated usage of shared data areas and inter-process communication is tested and
individual subsystems are exercised through their input interface.
37
System Testing
System testing of software or hardware is testing conducted on a complete, integrated
system to evaluate the system's compliance with its specified requirements. System
testing falls within the scope of black box testing, and as such, should require no
knowledge of the inner design of the code or logic.
Functional Testing
In this type of testing, the software is tested for the functional requirements.
The tests are written in order to check if the application behaves as expected.
38
Test cases
Test case pattern:
Filename: Login.php
39
Test case pattern:
File name : upload_marks.php
40
Test case pattern:
File name : preview.php
Shows the
Valid Hall Student Hall Student Marks Student Marks preview of the
ticket number Ticket number marks
Shows an error
Invalid Hall Invalid Hall Error message! Error message if no
ticket number ticket number message! such hall ticket
number is found.
41
Test case pattern:
File name : mail_diff.php
42
8. CONCLUSION
This application can be used for the announcement of semester results. The script
automatically sends marks to each student by getting their respective email address.
This Application can run in any system with minimum requirements and does not
require any hosting space to host the script. The ability to use remote SMTP server
makes it cost effective. It also guarantees the data integrity from header injection
attacks without stripping request data content. The user-friendly Interface makes it
easy for any non-technical user to use the application without any ambiguity.
43