Sunteți pe pagina 1din 35

PHP

PHP HYPER TEXT


PREPROCESSOR
ABOUT THE COMPANY

NEW DIMENSIONS
INFOTECH
New Dimensions InfoTech is a software
development & Network Solution Provider
company delivering services of any complexity to
clients. The company provides professional
solution to generate revenue streams, establish
better communication or streamline business
operations.
VISION & MISSION

 Mission is to help businesses embrace technology & solutions in order to


grow, compete and become more productive in a global and digital economy,
and with the help of enterprise and business solutions to communicate and
create a world that bridges traditional boundaries of space, time and distance.
 
The company believes in -
 Customer Satisfaction

 Raising the bar high

 Pursuit of Excellence

 Relentless Pursuit of Excellence

 Committed to Growth of our clients and employees

 Be responsible and lawful in all our dealings


INDEX
 INTRODUCTION
 ADVANTAGES OF PHP
 INTERNAL STRUCTURE
 HOW PHP WORKS
 BASIC DEVELOPMENT CONCEPTS
 SOFTWARES USED
 PROJECT:CLINICAL VISTA
INTRODUCTION
 PHP is a server-side scripting language that allows your Web
site to be truly dynamic. PHP stands for PHP: Hypertext
Preprocessor. Its syntax is similar to that of C and Perl.
 PHP is a popular scripting language used to create powerful
and dynamic Web sites. PHP is currently in use on over five
million Web sites around the world.
 PHP is open source software, which means it is available free
of charge. There are also no costs or restrictions related to
distributing the PHP scripts you create, whether the scripts
are for development or commercial use.
ADVANTAGES OF PHP
 Dynamic Web sites
 Interactive Web sites
 Database Manipulation
 Server-Side Processing
 Object-Oriented
 Increased Security
 Cross Platform
 Web Servers
 Development Tools
INTERNAL STRUCTURE

Memory Manager

Internal
Syntactic & Functions
Internal SQL
Semantic servers
Functions
Parser Standard &
API misc
Web server libraries

Interface Loadable
Token
PHP modules
Cache
main Syntax
Highlighter
Lexical
Scanner

PHP files
HOW PHP WORKS
HTTP REQUEST

HTTP RESPONSE
Web browser

APACHE
MYSQL
SERVER
WINDOWS OS PHP

SQL QUERY

Result Set

LINUX OS

CLIENT SERVER
BASIC DEVELOPMENT CONCEPTS
 INSERT PHP CODE INTO A WEB PAGE
 ADD A COMMENT TO A PHP PAGE
 CREATE A NUMERIC VARIABLE
 CREATE A STRING VARIABLE
 WORKING WITH OPERATORS
 USING THE CONDITIONAL STATEMENT
 WORKING WITH ARRAYS
 USING FUNCTIONS
 FILE OPERATIONS
 CREATING FORMS
 DATABASES
INSERT PHP CODE INTO A WEB PAGE

PHP code is inserted into HTML code using the <? php opening delimiter and
the ?> closing delimiter. The delimiters tell the Web server where the PHP
code begins and ends. You can add multiple sections of PHP code to
an HTML document.
ADD A COMMENT TO A PHP PAGE

 A single-line comment is preceded by // and can be included at the end of a


line of code. A single-line comment can also have its own line in a PHP page.
To add a comment that spans multiple lines, use /* before the first line and */
at the end of the last line.
NUMERIC VARIABLE

A variable is a name that represents a value. To create a numeric variable, you use the
assignment operator (=) to assign an initial value to a variable name. A numeric variable
can also store a negative value or no value at all. In PHP, a variable name must start with
a dollar sign ($).The next character must be a letter or the underscore character (_)
followed by any combination of letters and number. Variable names are case sensitive.
STRING VARIABLE

 To create a string variable, you use the assignment operator (=) to assign a
string value to a variable name. A variable name must begin with a dollar
sign ($) followed by a letter or the underscore character (_). Variable names
can consist of multiple words and are case sensitive.

My Web Site
WORKING WITH OPERATORS

PHP provides numerous operators that can be used to assign values to


variables, perform calculations, make comparisons and much more. An
operator takes one or more arguments, called operands. A sequence of
operands separated by one or more operators that produces a result in a
PHP script is referred to as an expression.
Types of operators:
 ARITHMETIC OPERATORS

 CONCATENATION OPERATOR
 INCREMENT AND DECREMENT OPERATORS

 ASSIGNMENT OPERATORS

 LOGICAL OPERATORS

 BITWISE OPERATORS

 COMPARISON OPERATORS
USING THE CONDITIONAL STATEMENT

 Using an conditional statement allows you to test a condition to


determine whether the condition is true or false. When the condition
is true, the section of code directly following the condition statement
is executed
WORKING WITH ARRAYS
 An array is a variable that stores a set of related values. The first step in creating an array is to create a
variable to store the array. In PHP, it is possible to store values of different data types in a single array.
 Functions that can be done on arrays are: move through array, add or remove elements, replace
elements, sorting an array.
USING FUNCTIONS
 A function, sometimes referred to as a subroutine, contains a block of code that performs a
specific task, such as displaying a message. Using functions makes it easy to re-use sections of
code in a PHP page. A function is created using the function keyword followed by the name of
the function and a set of parentheses. A function name must start with a letter or an underscore
(_) character. The block of code used in a function is enclosed in braces {}.
FILE OPERATIONS

 Writing data to text files allows you to store data, such as configuration settings and
application information. There are several different access modes you can use when opening
a file. Each access mode places the file position indicator in a specific location.
ACCESS MODE: DESCRIPTION:
 r :Open a file for reading only. Place the file position indicator at the start of the file.
 r+: Open a file for reading and writing. Place the file position indicator at the start of the
file.
 w :Open a file for writing only. Place the file position indicator at the start of the file. Create
the file if it does not exist.
 w+: Open a file for reading and writing. Place the file position indicator at the start of the
file. Create the file if it does not exist.
 a :Open a file for writing only. Place the file position indicator at the end of the file. Create
the file if it does not exist.
 a+: Open a file for reading and writing. Place the file position indicator at the end of the file.
Create the file if it does
CREATE A FORM
 Adding a form to a Web page allows you to gather data
from users who visit the page You use the <form> tag to
create a form and the action attribute to specify the
location and name of the PHP page that will process the
data entered into the form. If the PHP page is not stored
on the same Web server as the Web page containing the
form, you must specify the full URL of the PHP page. You
must also specify which method the form will use to pass
data to the PHP page. There are two methods the form can
use–get and post The get method sends data to the PHP
page by appending the data to the URL of the page. The
post method sends the data and the URL separately
DATABASES
 One of the most useful features of PHP is the ability to
access a database. Databases store and manage large
collections of information. PHP pages can be used to
make this information available to the users who visit
your Web site. Using databases to store information and
then using PHP pages to access that information is an
efficient method of displaying up-to-date information in
a Web site.
SOFTWARES USED
XAMPP 
 XAMPP is a free and open source cross-platform web 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:

X (meaning cross-platform)
Apache HTTP Server
MySQL
PHP
Perl
XAMPP is used to actually serve web pages on the World Wide Web. A special tool
is provided to password-protect the most important parts of the package. XAMPP
also provides support for creating and manipulating databases
in MySQL and SQLite among others.
SOFTWARES USED
Macromedia Dreamweaver

Macromedia Dreamweaver is a web development application originally


created by Macromedia. Dreamweaver allows users to preview websites in
locally installed web browsers. Dreamweaver is supported by a large community
of extension developers who make extensions available (both commercial and
free) for most web development tasks from simple rollover effects to full-
featured shopping carts.

Other softwares are:


• Cute ftp
• Core ftp
• Flash maker
• Flash get
HOW A WEBSITE IS HOSTED ON THE WEB
Steps:
1. A web space is purchased from a web space vendor.

2. A valid domain name is purchased from domain name provider.

3. Website is uploaded in the web space provided.

4. A database is maintained in the web space.

5. A website works fully after 48 to 72 hours after uploading on


the web.
6. The tools that are used for uploading a website on the web site
are: cute ftp and core ftp.
PROJECT:CLINICAL VISTA
It is a website which shows and helps you to collect most of the
information about Hospitality and Medical Services. It can use by
the public to view the list of doctors available in their cities and
take appointments of doctors with the help of this site. This site
will help you to find the blood donators.
FUNCTIONS OF SITE:
 Registration for donors.

 User accounts for doctors.

 User accounts for Hospitals.

 User accounts for dental clinics and Eye clinics etc.

 Appointment for check up.


HOMEPAGE

Homepage contains login counter. A person can login by entering valid


username and password and also specifying in which field the person belongs.
i.e. hospital, clinic or doctor. It also contains links to other pages. List of blood
donors can also be found.
REGISTRATION

Registration page takes information from user using forms. It can be done
for hospital, clinic, doctors & blood donors. This information is processed
using SQL queries and are saved to maintain a database.
APPOINTMENT

Appointment can be taken from the website by filling form details and
submitting. This can also be done for all the three streams.
ABOUT US

This page contains information about the project.


DFD FOR LOGIN MODULE
LEVEL 1 DFD- USER
DATABASE
The tables used are:
 blood_reg: Blood donors are registered. The fields which are used are- bloodgrp,
name, address, city, phone, state, location.
 clinic_details: Clinics in the city are registered. The fields which are used are-
clinicname,specialization,number,street,zip,phone,consult_from,consult_to,online_app
_from,online_app_to,username,password,prefix,fullname.
 clinic_doc_outpatient: Patients are registered for check up. The fields which are used
are- tokenno, patient_name, patient_age, patient_dob, patient_sex, patient_mstatus,
patient_address, patient_email, patient_city, patient_state, patient_country,
patient_phone, patient_mobile, clinic_name, doc_spec, doc_name, app_date,
curr_date.
 clinic_doc_reg: Doctors in the clinic are registered. The fields which are used are-
name, age, qualification, specification, sex, dob, maxop, add_number, add_state,
add_city, add_street, add_zip, add_phone, op_from, op_to, username, password,
prefix, prefix_name, clinic_name, clinic_id.
 departments: Departments are registered. The fields which are used are-
department_name , department_head ,head_nurse.
 doctor_details: Doctors in the city are registered . The fields which are used are-
doctorname,qualification,specification,age.sex,dob,address_number,address_stat
e,address_city,address_street,address_zip,address_phone,consult_from,consult_t
o,online_app_from,online_app_to,username,password,prefix,prefix_name.
 hospital_details: Hospitals are registered. The fields which are used are-
hospitalname,address_no,address_street,address_city,address_state,address_zip,a
ddress_phone,username,password,prefix,fullname.
 hos_doc_reg: Doctors in the hospitals are registered. The fields which are used
are-
name,age,qual,spec,sex,dob,maxop,number,state,city,street,zip,phno,rfrom,rto,op
from,opto,uname,pass,prefix,prefname,hosp_name,username.
THANKS
QUERIES

S-ar putea să vă placă și