Online Pharmacy Management System
Online Pharmacy Management System
The main purpose of this Online Pharmacy System is that it provides provision to
customers to buy medicines through online. The current system is offline system, in this to
purchase prescriptions the customer should visit to system. So this current system is very
difficult because its time consuming. So our project aims at creating an web application which
tracks Customer records, Online buy, Online Pharmacy records, etc and it provides easy to use
web based interface for customers where customers can search for Pharmacy, view a complete
details, models, features, pricing of the Pharmacy and book the Pharmacy. The name of the
project is “ONLINE Pharmacy System”. The main scope of this web application is that depicts
online Pharmacy system and buy tablets through online. Customer can register to this site and
he/she can buy prescription by entering his/her login information. Administrator is main user of
this system and he/she can add employees, and new Pharmacy details. Online shopping is a form
of electronic shopping store where the buyer is directly online to the seller’s computer usually
via the internet. There is no intermediary service. The sale and purchase transaction is completed
electronically and interactively in real- time. The development of this new system contains the
following activities, which try to develop on- line application by keeping the entire process in the
view of database integration approach. User gets its email id and password to access their
account. This system provide a bank loan facility to user.
INTRODUCTION
In this project store the patient details into the system and also computerized billing in the
pharmacy and labs. Our software has the facility to give a unique id for every patient and stores
the details of every patient and the staff automatically.
1.2 SYSTEM SPECIFICATION
1.2.1 HARDWARE REQUIREMENTS
System : Pentium Iv 2.4 Ghz
Hard Disk : 40 Gb
Floppy Drive : 1.44 Mb
Monitor : 15 Vga Colour
Mouse : Logitech.
Ram : 256 Mb
Keyboard : 110 Keys Enhanced.
1.2.2 SOFTWARE REQUIREMENTS
Operating System : Windows Xp Professional
Language : Php
Data Base : Mysql
2. SYSTEM STUDY
The existing system is handled manually. The system has a formatted online Pharmacy
system system for Sales in paper work. The indent is prepared when items are to be purchased
and bill is generated for sale of items. The system follows large number of paper work for
maintaining accessories details and user can be difficult to search the accessories in database.
2.1.2 DISADVANTAGES
The proposed system is developed after a detailed study about the requirements requested by the
user. Proposed system is a computerized one, where all the limitations of manual system are
compensated. Product details of online Pharmacy system system have simplified the working
information and make a user friendly environment, where the user is provided with much
flexibility to manage effectively. It helps the retailer to generate desirable reports more quickly
and also to produce better results.
2.2.2 ADVANTAGES:
FEATURES OF PHP
PHP was originally created by Rasmus Lerdorf in 1995[1] 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 restrictions exist regarding the use of the term PHP.
Hypertext refers to files linked together using hyperlinks, such as HTML (HyperText
Markup Language) files. Preprocessing is executing instructions that modify the output. Below is
a demonstration of the difference between HTML and PHP files.
PHP originally stood for personal home page. Its development began in 1994 when the
Danish/Greenlandic programmer Rasmus Lerdorf initially created a set of Perl scripts he called
'Personal Home Page Tools' to maintain his personal homepage, including tasks such as
displaying his résumé and recording how much traffic his page was receiving. He rewrote these
scripts as C programming language Common Gateway Interface (CGI) binaries, extending 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. PHP/FI could be used to
build simple, dynamic web applications. Lerdorf released PHP/FI as 'Personal Home Page Tools
(PHP Tools) version 1.0' publicly on June 8, 1995, to accelerate bug location and improve the
code. This release already had the basic functionality that PHP has today. This included Perl-like
variables, form handling, and the ability to embed HTML. The syntax was similar to Perl but
was more limited and simpler, although less consistent. A development team began to form and,
after months of work and beta testing, officially released PHP/FI 2 in November 1997.
A new major version has been under development alongside PHP 5 for several
years. This version was originally planned to be released as PHP 6 as a result of its significant
changes, which included plans for full Unicode support. However, Unicode support took
developers much longer to implement than originally thought and the decision was made in
March 2010[13] to move the project to a branch, with features still under development moved to
trunk.
Changes in the new code include the removal of register_globals, magic quotes, and
safe mode. The reason for the removals was that register_globals had given way to security
holes, and the use of magic quotes had an unpredictable nature, and was best avoided. Instead, to
escape characters, magic quotes may be replaced with the addslashes () function, or more
appropriately an escape mechanism specific to the database vendor itself like
mysql_real_escape_string() for MySQL. Functions that will be removed in future versions and
have been deprecated in PHP 5.3 will produce a warning if used.
PHP currently does not have native support for Unicode or multibyte strings; Unicode
support is under development for a future version of PHP and will allow strings as well as class,
method, and function names to contain non-ASCII characters.
PHP interpreters are available on both 32-bit and 64-bit operating systems, but on
Microsoft Windows the only official distribution is a 32-bit implementation, requiring Windows
32-bit compatibility mode while using Internet Information Services (IIS) on a 64-bit Windows
platform. As of PHP 5.3.0, experimental 64-bit versions are available for MS Windows.
Security
The PHP interpreter only executes PHP code within its delimiters. Anything outside its
delimiters is not processed by PHP (although 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 support for them 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 itself 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.
Benefit of PHP
Because the server does processing, the output of PHP files changes when its input
changes. For example, most of the pages on the Horticulture site have only two (2) PHP
commands:
1. Include the header file that defines the links on the left, the banner, and the quick links
at the top.
2. Include the footer file that displays the mission statement and Horticulture contact
information.
Because including the files is performed every time the PHP file is accessed, when the
header/footer files change, the new content will be immediately updated. In other words, if you
add a new link, every page that includes the header will immediately display the new link.
PHP has become the most popular Web programming language not only because it is
free. PHP is a full-fledged programming language (unlike HTML for example, which is more of
a presentation means) and many complex applications can be written it it. Another benefit of
applications written in PHP is that they are fast and if written properly, they could be pretty
secure. There are also tons of ready PHP scripts and functions, which you can customize to your
liking and use in your PHP applications.
Web development is becoming a more prosperous industry lately. Since the Internet
and the computer wave in general are becoming quite lucrative, web development is becoming a
booming industry in which everyone wants to be a part. However, it is also a very competitive
industry since there are many professionals that are quite adept at programming. Therefore,
learning proper PHP development strategies is beneficial. If you already have prior knowledge of
computer language and coding, PHP should come as a second nature to you. The fact that is can
be used in its most primal forms for basic programming as well as incredibly advanced
programming only ads to its possible potential for programmers.
Before building website you need to know which language you are going to use in a
professional looking website. PHP is one of the best and easy to use programming language as it
can be run to any operating system. PHP is free language so that is the huge advantage of this
language. For handling database connections, formatting date, editing strings, handling emails
and all PHP can be very useful. It can be easily extend for some specific functions that you
would like to add in your website. Reliability of this language is extra ordinary as PHP already
runs on millions of servers around the world, which means that it's powerful enough for even the
most demanding situations. It provides web developers much more liberation in creating website
with some of the outstanding features and they can use regular elements frequently. PHP can be
very much successful for creating Dynamic Websites. PHP programmers with the use of open
source codes benefit from the flexibility of editing, modifying and updating the source code
when there is mandatory.
PHP is based on C++ programming language and the syntax used in PHP is fairly
similar to C, C++. There is huge community of developers who still believes that C/C++ is still
the best programming language. For every website to get reasonable progress it can be use
Content Management System such as Joomla, Word Press etc. here PHP and MySQL are very
helpful in successful CMS running. There are so many IT companies which provide best quality
PHP web development work from India. The reason for Outsourcing PHP development to India
is that it is very cost effective with better quality. In the professional field of Web and software
development services we have achieved great amount of victory with skilled and experienced
PHP programmers.
PHP has been supported by almost every hosting company. PHP can be the best
choice to run an application on Linux based hosting platforms. PHP is a server side scripting
language originally designed to build dynamic websites. Modern web 2.0 applications are largely
characterized by mashups and desktop style user interfaces. php is an excellent choice for
interacting with other websites and providing rich user experience. Simple php commands like
curl or fopen allow you to grab data from other websites with relative ease. Php works well with
javascript so you can provide your end users with modern, responsive interfaces that are way
beyond the old static interfaces of days past.
FEATURES OF MY SQL
MySQL Introduction
The MySQL® database has become the world's most popular open source database
because of its consistent fast performance, high reliability and ease of use. It's used on every
continent -- Yes, even Antarctica! -- by individual Web developers as well as many of the
world's largest and fastest-growing organizations to save time and money powering their high-
volume Web sites, business-critical systems and packaged software -- including industry leaders
such as Yahoo!, Alcatel-Lucent, Google, Nokia, YouTube, and [Link].
Not only is MySQL the world's most popular open source database, it's also become the
database of choice for a new generation of applications built on the LAMP stack (Linux, Apache,
MySQL, PHP / Perl / Python.) MySQL runs on more than 20 platforms including Linux,
Windows, Mac OS, Solaris, HP-UX, IBM AIX, giving you the kind of flexibility that puts you in
control.
MySQL can be built and installed manually from source code, but this can be tedious so
it is more commonly installed from a binary package unless special customizations are required.
On most Linux distributions the package management system can download and install MySQL
with minimal effort, though further configuration is often required to adjust security and
optimization settings.
There are however limits to how far performance can scale on a single server, so on
larger scales, multi-server MySQL deployments are required to provide improved performance
and reliability. A typical high-end configuration can include a powerful master database which
handles data write operations and is replicated to multiple slaves that handle all read operations.
[18] The master server synchronizes continually with its slaves so in the event of failure a slave
can be promoted to become the new master, minimizing downtime. Further improvements in
performance can be achieved by caching the results from database queries in memory using
memcached, or breaking down a database into smaller chunks called shards which can be spread
across a number of distributed server clusters.
3. SYSTEM DESIGN AND DEVELOPMENT
Database pharmacy
MODULE
Admin Login
Add details
Buy information
User details
Login
View details
Buy Medicines
3.6.1 DESCRIPTION OF MODULES
MODULES DESCRIPTION
Admin
This module handled by admin who has all control in online Pharmacy system system.
Admin has unique user name and password. Admin can view all users’ details and buy details
through its login.
Admin can add, modify and delete the latest arrival of [Link] is the
responsibility for maintaining the all details in server and server canbe design in server. Admin
can login to the system and post item details with description of the Pharmacy.
Admin can login to the system and post products with features. User can login to the
system to view product [Link] Can add, modify, and delete the Pharmacy details.
Login
o In this module admin can be login to the account using the user name and
password as admin.
o Then admin have responsibilities to maintain all information. Admin can view all
users’ details and buy details after its login.
Add details
o Admin can add the product details as id, name, type, amount, quantity and so on.
These details are stored in database for future use.
o The details are stored in the table of product .In this system maintain all the table
in the database. The database named as Pharmacy.
o In the table ,we can define the type of the data.
Buy information
o User can be book the products and these can be viewed in admin page and also
contain information about delivery status.
o The details are stored in the table of book. In this system maintain all the table in
the database. The database named as Pharmacy.
o In the table ,we can define the type of the data.
User details
o Admin can maintain all user details are in the form of reports. This data retrieved
from the registration table.
o In this system maintain all the table in the database. The database name as
Pharmacy.
o The details such as user name, password, gender, age, mobile number, mail id and
so on.
User login
The user has to give complete details about him\her to create a new account. After
successfully completion of account creation only the user can able to perform the online
Pharmacy system.
This username and password send as message to the respective user. Using this valid
username and password, the user can view the account. The register user only secures the data so
registration is must.
In this module the user open a new account for using the system. The most common and
simple way of protecting a network resource is by assigning it a unique name and a
corresponding password.
Login
o User can register their details such as user name, password, gender, age, mobile
number, mail id and so on. After registration, user login to the system.
o The details are stored in the table of register.
o In this system maintain all the table in the database. The database name as
Pharmacy.
o In login process the system matches the username and password to the database.
after validation ,user can login the system
o Unauthorized user can’t access the system .authorized user can only access the
system.
View details
o After login, user can view products details which are added by admin ,in admin
[Link] data retrieved from the product table.
o In this system maintain all the table in the database. The database named as
Pharmacy.
o The details such as product name, price, interest, product image ,description and
so on.
o User details are viewed in the form of grid structure.
Buy Medicines
o After viewing all home appliances, user can book the product to select quantity
and automatically amount can calculate and viewed in user page.
o And can be view the status of delivery information
o User buy information are stored in the table book .
o In this system maintain all the table in the database. The database named as
Pharmacy.
o The details such as product name, price, interest, product image ,description and
so on.
[Link] AND IMPLEMENTATION
INTRODUCTION
Testing is an activity to verify that a correct system is being built and is performed with
the intent of finding faults in the system. However testing is not restricted to being performed
after the development phase is complete. But this is too carried out in parallel with all stages of
system development, starting with requirements specification. Testing results, once gathered and
evaluated, provide a qualitative indication of software quality and reliability and serve as a basis
for design modification if require a project is said to be incomplete without proper testing.
Test Case
File level deduplication will save a relatively large memory space. In general, file level
deduplication view multiple copies of same file. It stores first file and then it links other
references to the first file. Only one copy will be stored. In testing, even though file names are
same, the system can able to detect deduplication. If we upload the same file by using different
names, it will view only the content and not names. Thus redundant data is avoided.
In registration phase, the user may not registered before and type their information. So if
the user is new user, the alert message will display that the user is not registered before.
Fig 7.2 System Testing.
Unit Testing
It is the testing of an individual unit or group of related units. It is done by programmer to
test that the implementation is producing expected output against given input and it falls under
white box testing. Unit testing is done in order to check registration whether the user properly
registered into the cloud. It is done in order to check whether a file is properly uploaded into the
cloud. And an encryption and decryption is checked with unit testing if it is converted properly.
Then deduplication is checked with unit testing.
Integration Testing
All the modules should be integrated into a single module and it should be checked that it
is still working still by integration testing.
System Testing
It is done to ensure that by putting the software in different environments and check that
it still works. System Testing is done by uploading same file in this cloud checking whether any
duplicate file exists.
Software Testing
It is the process of evaluating a software item to detect differences between given input
and expected output. Also to assess the feature of a software item. Testing assess the quality of
the product. It is a process that should be done during the development process. In other words
software testing is a verification and validation process.
There are two types of software testing.
1. Black box testing
2. White box testing
Verification
Verification is the process to make sure the product satisfies the conditions imposed at
the start of the development phase. In other words, to make sure the product behaves the way we
want it to.
Validation
Validation is the process to make sure the product satisfies the specified requirements at
the end of the development phase. In other words, to make sure the product is built as per
customer requirements.
[Link]
The system reduces the possibility of errors to a great extent and maintains the data in an
efficient manner. User friendliness is the unique feature of this system. The system generates the
reports as and when required. The system is highly interactive and flexible for further
enhancement. The coding is done in a simplified and easy to understandable manner so that other
team trying to enhance the project can do so without facing much difficulty. The documentation
will also assist in the process as it has also been carried out in a simplified and concise way.
Future Enhancement
This system is developed such a way that additional enhancement can be done without much
difficulty. The renovation of the project would increase the flexibility of the system. Also the
features are provided in such a way that the system can also be made better and efficient
functionality
[Link]
Following books and eBooks are used to complete this project reports.
Advanced PHP Remoting 2nd Edition (Ingo Rammer and Mario Szpuszta,
Apress, March 2005)
PHP to PHP Migration Handbook (Christian Nagel et al, Wrox, January 2003)
OF PHP (Christian Nagel et al, Wrox, September 2001)
Data-Centric PHP Programming (Christian Nagel et al, Wrox, December 2001)
Professional PHP Network Programming 2nd Edition (Christian Nagel et al,
Wrox, September 2004)
Professional PHP (Christian Nagel et al, Wrox, March 2002)
Professional PHP Web Services (Christian Nagel et al, Wrox, December 2001)
A system architecture or systems architecture is the conceptual model that defines the
structure, behavior, and more views of a system. An architecture description is a formal
description and representation of a system, organized in a way that supports reasoning about the
structures and behaviors of the system. System architecture can comprise system components,
the externally visible properties of those components, the relationships (e.g. the behavior)
between them. It can provide a plan from which products can be procured, and systems
developed, that will work together to implement the overall system. There have been efforts to
formalize languages to describe system architecture, collectively these are called architecture
description languages (ADLs).
An allocated arrangement of physical elements which provides the design solution for a
consumer product or life-cycle process intended to satisfy the requirements of the
functional architecture and the requirements baseline.
Architecture comprises the most important, pervasive, top-level, strategic inventions,
decisions, and their associated rationales about the overall structure (i.e., essential
elements and their relationships) and associated characteristics and behavior.
If documented, it may include information such as a detailed inventory of current
hardware, software and networking capabilities; a description of long-range plans and
priorities for future purchases, and a plan for upgrading and/or replacing dated equipment
and software
The composite of the design architectures for products and their life-cycle processes.
Online Pharmacy showroom
Admin User
Registration
Medicine details
Login
Pharma details
Search Medicine
User details
Buy
Database
3. Database Design
LEVEL 0
The Level 0 DFD shows how the system is divided into 'sub-systems' (processes), each of
which deals with one or more of the data flows to or from an external agent, and which together
provide all of the functionality of the system as a whole. It also identifies internal data stores that
must be present in order for the system to do its job, and shows the flow of data between the
various parts of the system.
Admin User
Database
Fig 2.1.1 Level 0 Data flow diagram
LEVEL-1
The next stage is to create the Level 1 Data Flow Diagram. This highlights the main
functions carried out by the system. As a rule, to describe the system was using between two and
seven functions - two being a simple system and seven being a complicated system. This enables
us to keep the model manageable on screen or paper.
Login
Store the data
Medicine Details
Admin
Store the data
Buy
Retrieving the data
A Data Flow Diagram (DFD) tracks processes and their data paths within the business or
system boundary under investigation. A DFD defines each domain boundary and illustrates the
logical movement and transformation of data within the defined boundary. The diagram shows
'what' input data enters the domain, 'what' logical processes the domain applies to that data, and
'what' output data leaves the domain. Essentially, a DFD is a tool for process modeling and one
of the oldest
View
Pharma
Buy
Database