Art Mania (Online Photo Gallery) : Submitted by
Art Mania (Online Photo Gallery) : Submitted by
Art Mania (Online Photo Gallery) : Submitted by
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE & ENGINEERING
Submitted by
M.ANVITHA (16491A05J4)
D.SIREESHA (16491A05I8)
M.MANI CHANDANA (16491A05J6)
B SAI KAILASH (16491A05K8)
in the partial fulfillment of the requirement for the award of the degree of Bachelor of
Technology in COMPUTER SCIENCE & ENGINEERING and for the academic year 2019-
2020. This work is done under my supervision and guidance.
ABSTRACT
1 INTRODUCTION
1.1 Introduction
2 LITERATRE SURVEY
3 SYSTEM ANALYSIS
4 SYSTEM DESIGN
4.1 Introduction
4.2 Module Description
4.3 UML Diagrams
4.3.1 Class Diagram
4.3.2 Use case Diagram
4.3.3 Sequence Diagram
4.3.4 Collaboration Diagram
5 SYSTEM IMPLEMENTATION
5.1 Introduction
5.2 Software description
5.2.1 Introduction to PHP
5.2.2 Common uses of PHP
5.2.3 Characteristics of PHP
5.3 PHP-Variable Types
5.4 PHP-Operator Types
5.5 PHP-Environment Setup
5.6 Installing PHP
5.7 PHP & MYSQL
6 SYSTEM TESTING AND IMPLEMENTATION
6.1 Testing
6.1.1 Objectives
6.2 Levels of Testing
6.2.1 Code Testing
6.2.2 Unit Testing
6.2.3 Integration Testing
6.2.4 System Testing
6.2.5 Acceptance Testing
7 OUTPUT SCREENS
8 CONCLUSION
9 REFERENCES
ABSTRACT
Art Mania is an online application, which is used to display and sell art works of
artist irrespective of their nationality, gender and other narrow consideration, through auction.
Artist can register online for being a member in the art gallery and each artist can upload the
digital copy of their art work under the respective categories. They can host their art work
either for auction or for fixed price. The artist is liable to pay a fraction of the price of each art
work to the web site to find the running fund for site. Art lovers have to go to the art exhibition
to collect their favorite arts or painting. But now-a-days they are not getting enough time to go
to the galleries and collect the arts and paintings.
1 INTRODUCTION
1.1 INTRODUCTION
The “Online Photo gallery” system is a application software and it is very helpful
for the art lovers and others who wants to know the addresses where this kind of arts will we
sold.
This application helps the end-users to search their arts and paintings and they can
place order for the selected pieces. The end-user can also get the information about the art
exhibition and the respective address, so, that they can visit to those exhibitions.
Art Gallery brings you an opportunity to view online art exhibitions at our Online Art
Gallery we bring you details of all art exhibitions held in the past and the forthcoming show.
The Online Art Gallery is updated daily, so the user can view and buy the latest collection of
contemporary art online from any where in the world. You can view and buy the latest Indian
contemporary art collection available at their exhibitions and also at their online gallery.
2 LITERATURE SURVEY
Literature survey is the most important step in software development process. Before
developing the tool, it is necessary to determine the time factor, economy and company strength.
Once these things are satisfied, then next steps are to determine which operating system and
language can be used for developing the tool. Once the programmers start building the tool the
programmers need lot of external support. This support can be obtained from senior
programmers, from book or from websites. Before building the system the above consideration is
taken into account for developing the proposed system.
Feasibility study includes consideration of all the possible ways to provide a solution
to the given problem.The proposed solution should satisfy all the user requirements and should
be flexible enough so that future changes can be easily done based on the future upcoming
requirements.
No doubt the proposed system is fully GUI based that is very user friendly and all
inputs to be taken all self-explanatory even to a layman.Besides a proper training has been
conducted to let know the essence of the system to the users so that they feel comfortable with
new system.As far our study is concerned the clients are comfortable and happy as the system
has cut down their loads and doing.
3 SYSTEM ANALYSIS
After analyzing the requirements of the task to be performed, the next step is to analyze the
problem and understand its context. The first activity in the phase is studying the existing system and
other is to understand the requirements and domain of the new system. Both the activities are equally
important, but the first activity serves as a basis of giving the functional specifications and then
successful design of the proposed system. Understanding the properties and requirements of a new
system is more difficult and requires creative thinking and understanding of existing running system is
also difficult, improper understanding of present system can lead diversion from solution.
The model that is basically being followed is the WATER FALL MODEL, which states that the
phases are organized in a linear order. First of all the feasibility study is done. Once that part is over the
requirement analysis and project planning begins. If system exists one and modification and addition of
new module is needed, analysis of present system can be used as basic model.
The design starts after the requirement analysis is complete and the coding begins after the
design is complete. Once the programming is completed, the testing is done. In this model the sequence
of activities performed in a software development project are :-
Requirement
Analysis
System design
Implementation
Testing
Maintenance
Fig:3.1 Analysis model
- Time consuming
4.1 INTRODUCTION
Design is multi-step process that focuses on data structure software architecture,
procedural details, (algorithms etc.) and interface between modules. The design process also
translates the requirements into the presentation of software that can be accessed for quality
before coding begins.
Computer software design changes continuously as new methods; better analysis and
broader understanding evolved. Software Design is at relatively early stage in its revolution.
Therefore, Software Design methodology lacks the depth, flexibility and quantitative
nature that are normally associated with more classical engineering disciplines. However,
techniques for software designs do exist, criteria for design qualities are available and design
notation can be applied.
During design, progressive refinement of data structure, program structure, and procedural
details are developed reviewed and documented. System design can be viewed from either
technical or project management perspective. From the technical point of view, design is
comprised of four activities – architectural design, data structure design, interface design and
procedural design.
4.3 UML DIAGRAMS
The underlying premise of UML is that no one diagram can capture the different
elements of a system in its entirety. Hence, UML is made up of nine diagrams that can be used to
model a system at different points of time in the software life cycle of a system. The nine UML
diagrams are:
Use case diagram: The use case diagram is used to identify the primary elements and
processes that form the system. The primary elements are termed as "actors" and the
processes are called "use cases." The use case diagram shows which actors interact with
each use case.
Class diagram: The class diagram is used to refine the use case diagram and define a
detailed design of the system. The class diagram classifies the actors defined in the use
case diagram into a set of interrelated classes. The relationship or association between the
classes can be either an "is-a" or "has-a" relationship. Each class in the class diagram may
be capable of providing certain functionalities. These functionalities provided by the class
are termed "methods" of the class. Apart from this, each class may have certain
"attributes" that uniquely identify the class.
Object diagram: The object diagram is a special kind of class diagram. An object is an
instance of a class. This essentially means that an object represents the state of a class at a
given point of time while the system is running. The object diagram captures the state of
different classes in the system and their relationships or associations at a given point of
time.
State diagram: A state diagram, as the name suggests, represents the different states that
objects in the system undergo during their life cycle. Objects in the system change states
in response to events. In addition to this, a state diagram also captures the transition of the
object's state from an initial state to a final state in response to events affecting the
system.
Activity diagram: The process flows in the system are captured in the activity diagram.
Similar to a state diagram, an activity diagram also consists of activities, actions,
transitions, initial and final states, and guard conditions.
Sequence diagram: A sequence diagram represents the interaction between different
objects in the system. The important aspect of a sequence diagram is that it is time-
ordered. This means that the exact sequence of the interactions between the objects is
represented step by step. Different objects in the sequence diagram interact with each
other by passing "messages".
Collaboration diagram: A collaboration diagram groups together the interactions
between different objects. The interactions are listed as numbered interactions that help to
trace the sequence of the interactions. The collaboration diagram helps to identify all the
possible interactions that each object has with other objects.
Component diagram: The component diagram represents the high-level parts that make
up the system. This diagram depicts, at a high level, what components form part of the
system and how they are interrelated. A component diagram depicts the components
culled after the system has undergone the development or construction phase.
Deployment diagram: The deployment diagram captures the configuration of the
runtime elements of the application. This diagram is by far most useful when a system is
built and ready to be deployed.
The UML diagrams that fall under each of these categories are:
Static
Dynamic
o Object diagram
o State diagram
o Activity diagram
o Sequence diagram
o Collaboration diagram
Implementation
o Component diagram
o Deployment diagram
Generalization -- an inheritance link indicating one class is a super class of the other. A
generalization has a triangle pointing to the super class.
Fig:4.3.1. Class diagram for member
5.1 INTRODUCTION
Implementation is the most crucial stage in achieving a successful system and giving
the user’s confidence that the new system is workable and effective. Implementation of a
modified application to replace an existing one. This type of conversation is relatively easy to
handle, provide there are no major changes in the system.
Each program is tested individually at the time of development using the data and has
verified that this program linked together in the way specified in the programs specification, the
computer system and its environment is tested to the satisfaction of the user. The system that has
been developed is accepted and proved to be satisfactory for the user. And so the system is going
to be implemented very soon. A simple operating procedure is included so that the user can
understand the different functions clearly and quickly.
Initially as a first step the executable form of the application is to be created and
loaded in the common server machine which is accessible to the entire users and the server is to
be connected to a network. The final stage is to document the entire system which provides
components and the operating procedures of the system.
PHP started out as a small open source project that evolved as more and more
people found out how useful it was. Rasmus Lerdorf unleashed the first version of PHP way
back in 1994.
PHP is a server side scripting language that is embedded in HTML. It is used to manage
dynamic content, databases, session tracking, even build entire e-commerce sites.
PHP is pleasingly zippy in its execution, especially when compiled as an Apache module
on the Unix side. The MySQL server, once started, executes even very complex queries
with huge result sets in record-setting time.
PHP supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP4
added support for Java and distributed object architectures (COM and CORBA), making
n-tier development a possibility for the first time.
PHP can handle forms, i.e. gather data from files, save data to a file, through email you
can send data, return data to the user.
You add, delete, modify elements within your database through PHP.
Using PHP, you can restrict users to access some pages of your website.
There are many features given by PHP. All Features discussed below one by one.
Familiarity
Simplicity
Efficiency
Security
Flexibility
Open source
Object Oriented
Familiarity: -
If you are in programming background then you can easily understand the PHP syntax. And
you can write PHP script because of most of PHP syntax inherited from other languages like
C or Pascal.
Simplicity: -
PHP provides a lot of pre-define functions to secure your data. It is also compatible with
many third-party applications, and PHP can easily integrate with other.
In PHP script there is no need to include libraries like c, special compilation directives like
Java, PHP engine starts execution from (<?) escape sequence and end with a closing escape
sequence (<?). In PHP script, there is no need to write main function. And also you can work
with PHP without creating a class.
Efficiency: -
PHP 4.0 introduced resource allocation mechanisms and more pronounced support for object-
oriented programming, in addition to session management features. Eliminating unnecessary
memory allocation.
Security: -
Several trusted data encryption options are supported in PHP’s predefined function set. You
can use a lot of third-party applications to secure our data, allowing for securing our
application.
Flexibility: -
You can say that PHP is a very flexible language because of PHP is an embedded language
you can embed PHP scripts with HTML, JAVA SCRIPT, WML, XML, and many others.
You can run your PHP script any device like mobile Phone, tabs, laptops, PC and other
because of PHP script execute on the server then after sending to the browser of your device.
Free: -
PHP is an open source programming language so you can download freely there is no need to
buy a licence or anything.
Object Oriented: -
PHP has added some object-oriented programming features, and Object Oriented
programming became possible with PHP 4. With the introduction of PHP 5, the PHP
developers have really beefed up the object-oriented features of PHP, resulting in both more
speed and added features.
The main way to store information in the middle of a PHP program is by using a variable.
Here are the most important things to know about variables in PHP.
All variables in PHP are denoted with a leading dollar sign ($).
Variables are assigned with the = operator, with the variable on the left-hand side and the
expression to be evaluated on the right.
Variables in PHP do not have intrinsic types - a variable does not know in advance
whether it will be used to store a number or a string of characters.
PHP does a good job of automatically converting types from one to another when
necessary.
PHP has a total of eight data types which we use to construct our variables −
Resources − are special variables that hold references to resources external to PHP (such
as database connections).
The first five are simple types, and the next two (arrays and objects) are compound - the
compound types can package up other arbitrary values of arbitrary type, whereas the simple
types cannot.
We will explain only simple data type in this chapters. Array and Objects will be explained
separately.
Integers
They are whole numbers, without a decimal point, like 4195. They are the simplest type .they
correspond to simple whole numbers, both positive and negative. Integers can be assigned to
variables, or they can be used in expressions, like so −
$int_var = 12345;
$another_int = -12345 + 12345;
Integer can be in decimal (base 10), octal (base 8), and hexadecimal (base 16) format. Decimal
format is the default, octal integers are specified with a leading 0, and hexadecimals have a
leading 0x.
For most common platforms, the largest integer is (2**31 . 1) (or 2,147,483,647), and the
smallest (most negative) integer is . (2**31 . 1) (or .2,147,483,647).
Doubles
They like 3.14159 or 49.1. By default, doubles print with the minimum number of decimal
places needed. For example, the code −
<?php
$many = 2.2888800;
$many_2 = 2.2111200;
?>
Boolean
They have only two possible values either true or false. PHP provides a couple of constants
especially for use as Booleans: TRUE and FALSE, which can be used like so −
if (TRUE)
else
If the value is a number, it is false if exactly equal to zero and true otherwise.
If the value is a string, it is false if the string is empty (has zero characters) or is the
string "0", and is true otherwise.
If the value is an array, it is false if it contains no other values, and it is true otherwise.
For an object, containing a value means having a member variable that has been
assigned a value.
Valid resources are true (although some functions that return resources when they are
successful will return FALSE when unsuccessful).
Each of the following variables has the truth value embedded in its name when it is used in a
Boolean context.
$true_num = 3 + 0.14159;
$true_str = "Tried and true"
$false_array = array();
$false_null = NULL;
$false_str = "";
NULL
NULL is a special type that only has one value: NULL. To give a variable the NULL value,
simply assign it like this −
$my_var = NULL;
The special constant NULL is capitalized by convention, but actually it is case insensitive; you
could just as well have typed −
$my_var = null;
A variable that has been assigned NULL has the following properties −
Strings
They are sequences of characters, like "PHP supports string operations". Following are valid
examples of string
Singly quoted strings are treated almost literally, whereas doubly quoted strings replace
variables with their values as well as specially interpreting certain character sequences.
<?php
$variable = "name";
print($literally);
print "<br>";
print($literally);
?>
Strings that are delimited by double quotes (as in "this") are preprocessed in both the following
two ways by PHP −
Certain character sequences beginning with backslash (\) are replaced with special
characters
Variable names (starting with $) are replaced with string representations of their values.
Local variables
Function parameters
Global variables
Static variables
Variable Naming
Rules for naming a variable is −
A variable name can consist of numbers, letters, underscores but you cannot use
characters like + , - , % , ( , ) . & , etc
Arithmetic Operators
Comparison Operators
Logical (or Relational) Operators
Assignment Operators
Conditional (or ternary) Operators
Lets have a look on all operators one by one.
Arithmetic Operators
There are following arithmetic operators supported by PHP language −
Show Examples
Operator Description Example
Comparison Operators
There are following comparison operators supported by PHP language
Show Examples
< Checks if the value of left operand is less than the value of (A < B) is
right operand, if yes then condition becomes true. true.
>= Checks if the value of left operand is greater than or equal to (A >= B) is
the value of right operand, if yes then condition becomes true. not true.
<= Checks if the value of left operand is less than or equal to the (A <= B) is
value of right operand, if yes then condition becomes true. true.
Logical Operators
There are following logical operators supported by PHP language
Show Examples
And Called Logical AND operator. If both the operands are true (A and B) is
then condition becomes true. true.
&& Called Logical AND operator. If both the operands are non (A && B) is
zero then condition becomes true. true.
! Called Logical NOT Operator. Use to reverses the logical state !(A && B)
of its operand. If a condition is true then Logical NOT operator is false.
will make false.
Assignment Operators
There are following assignment operators supported by PHP language −
Show Examples
Conditional Operator
There is one more operator called conditional operator. This first evaluates an expression for a
true or false value and then execute one of the two given statements depending upon the result
of the evaluation. The conditional operator has this syntax −
Show Examples
Operators Categories
All the operators we have discussed above can be categorised into following categories −
Binary operators, which take two operands and perform a variety of arithmetic and
logical operations.
The conditional operator (a ternary operator), which takes three operands and evaluates
either the second or third expression, depending on the evaluation of the first expression.
For example x = 7 + 3 * 2; Here x is assigned 13, not 20 because operator * has higher
precedence than + so it first get multiplied with 3*2 and then adds into 7.
Here operators with the highest precedence appear at the top of the table, those with the lowest
appear at the bottom. Within an expression, higher precedence operators will be evaluated first.
In order to develop and run PHP Web pages three vital components need to be installed
on your computer system.
Web Server − PHP will work with virtually all Web Server software, including
Microsoft's Internet Information Server (IIS) but then most often used is freely available
Apache Server. Download Apache for free here − https://httpd.apache.org/download.cgi
Database − PHP will work with virtually all database software, including Oracle and
Sybase but most commonly used is freely available MySQL database. Download
MySQL for free here − https://www.mysql.com/downloads/
PHP Parser − In order to process PHP script instructions a parser must be installed to
generate HTML output that can be sent to the Web Browser. This tutorial will guide you
how to install PHP parser on your computer.
This section will guide you to install and configure PHP over the following four platforms −
Apache Configuration
If you are using Apache as a Web Server then this section will guide you to edit Apache
Configuration Files.
Notepad
Notepad is ASCII (you can that say a text editor) editor that is used for writing the PHP script,
many other editors are also available for writing a PHP script like Dreamweaver.
Web browser
The web browsers are used for display the output by giving PHP script, for example Google
Chrome, Firefox, Internet Explorer etc.
Before installing XAMPP server first I will tell you the need of XAMPP server. PHP is a
server side scripting language so it does not run on the local machine, It runs only on server
so that we need a software that provide the server environment on the local machine so that
XAMPP server is used.
2. Click on XAMPP .exe file that you downloaded, and follow the instructions to install the
application.
9. Status of the installation, it can take one or two minutes, it's totally depend upon the
configuration of the machine.
10. Select check box and click close button.
13. Type localhost on your browser address bar to launch XAMPP and welcome page is
opened.
2. Create new folder on xamp/htdocs/php and save that script inside the folder with .php
extension.
Localhost/Php/Demo.Php
PHP will work with virtually all database software, including Oracle and Sybase but most
commonly used is freely available MySQL database.
If you have not created a database then you would need root user and its password to
create a database.
Connecting to MySQL database − Learn how to use PHP to open and close a MySQL
database connection.
Create MySQL Database Using PHP − This part explains how to create MySQL
database and tables using PHP.
Delete MySQL Database Using PHP − This part explains how to delete MySQL
database and tables using PHP.
Insert Data To MySQL Database − Once you have created your database and tables
then you would like to insert your data into created tables. This session will take you
through real example on data insert.
Retrieve Data From MySQL Database − Learn how to fetch records from MySQL
database using PHP.
Using Paging through PHP − This one explains how to show your query result into
multiple pages and how to create the navigation link.
Updating Data Into MySQL Database − This part explains how to update existing
records into MySQL database using PHP.
Deleting Data From MySQL Database − This part explains how to delete or purge
existing records from MySQL database using PHP.
Using PHP To Backup MySQL Database − Learn different ways to take backup of
your MySQL database for safety purpose.
6 SYSTEM TESTING AND IMPLEMENTATION
6.1 Testing
Testing is the process of detecting errors. Testing performs a very critical role for quality
assurance and for ensuring the reliability of software. The results of testing are used later on
during maintenance also.
6.1.1 Objectives:
Acceptance
Client Needs Testing
System Testing
Requirements
Integration Testing
Design
Unit Testing
Here the Aptitude Quest source code is developed in java and servlets which is tested by
JDK.
The goal of unit testing is to assure that all functions and features of a single
compilable unit of code perform as specified in the Design Specification.
A unit test covers the testing of a software unit, or a group of closely related units,
as a single entity. Unit testing is performed in isolation, using test drivers to simulate
higher level units, and/or stubs to simulate lower level units.
During this phase, the interaction between subsystems is tested. This includes
interfaces through Inter Process Communications (IPC) and files. This phase is
performed by an independent test team. This team prepares and executes integration
tests, generates problem reports and is responsible for passing the integrated system on to
the System Test Team for system testing. The Integration Test team then enters a support
mode in which it will test problem reports generated by the System Test team before
forwarding code fixes to the System Testing environment.
This phase is sometimes combined with the system test phase as per the client's
request.
Each and every modules of Aptitude Quest are integrated and checked whether
they interact with each other or not.
6.2.4 System Testing:
The goal of System Testing is to ensure that the system performs as per the
functional requirements specified by client.
A system test covers the testing of functions within the system. System testing is
performed once integration testing has been completed. System Testing procedures
consist of:
Acceptance Test is performed with realistic data of the client to demonstrate that the
software is working satisfactorily. Testing here is focused on external behavior of the system; the
internal logic of program is not emphasized. In this project ‘VOIP’ I have collected some data
and tested whether project is working correctly or not.
Test cases should be selected so that the largest number of attributes of an equivalence
class is exercised at once. The testing phase is an important part of software development. It is
the process of finding errors and missing operations and also a complete verification to
determine whether the objectives are met and the user requirements are satisfied.
7 OUTPUT SCREENS
8 CONCLUSION
CONCLUSION
We conclude that, in this project to buy paintings online people prefer the services of
reliable and trusted web galleries that sell authentic art.A lot of such websites are floating
around from where you can purchase paintings of all genres, made by the famous artists.It is
more convenient and practical way of spending money on art works.
9 REFERENCES
WEBSITES
www.w3schools.in/php-tutorial/
www.freeprojectz.com/php-projects/
www.scribd.com/php-projects/
BOOKS