3. α Initially Personal Home Page
α Now PHP Hypertext Preprocessor.
α PHP is free software.
α Syntax based on Perl, Java, and C and
have object oriented functionality
α PHP code is interpreted by a web server
with a PHP processor module, which
generates the resulting web page.
α PHP commands can be embedded directly
into an HTML source document rather
than calling an external file to
process data
4. α Syntax based on Perl, Java, and C.
α PHP was started in 1994 by Rasmus
Lerdorf.
α Early non-released versions were used
on his home page to keep track of who
was looking at his online resume.
α First Version in 1995 as Personal Home
Page Tool
α PHP is in use on over 1,000,000 sites
around the world.
α Latest release PHP 5.5 20 June 2013.
5. α PHP performs system functions, i.e.
from files on a system it can create,
open, read, write, and close them.
α PHP can handle forms, i.e. gather data
from files, save data to a file, thru
email you can send data, return data
to the user.
α You add, delete, modify elements
within your database thru PHP.
α It can encrypt data.
α Create dynamic and flexible website
7. α PHP files have extension ".php“.
α PHP file/code are executed on the
server, and the result is returned to
the browser as plain HTML.
α Create text file and type php code
inside and save with .php.
α All php code goes inside
<?php
//type your code here
?>
8. α There are two way to use php
α Inside the html as embedded html
α Outside the html or in separate php
file
9. α Second mostly used Open Source
Database management system
α It is named after co-founder Michael
Widenius's daughter, My and SQL is the
Structured Query Language.
α MySQL is a popular choice of database
for use in web applications. and is a
central component of the widely used
LAMP open source web application
software stack
α LAMP is an acronym for
"Linux, Apache, MySQL, Perl/PHP/Python
."
11. α Requirement
1. Web Host with database support
2. PC with browser
α Use following link to download web
host for computer
1. Apache (Web Server) apache.org/
2. Mysql dev.mysql.com/downloads
3. PHP php.net/downloads.php
α All in all platform
XAMPP www.apachefriends.org/
Wamp Server wampserver.com/
13. α After Installation configure the path
of the installed software.
α A Control panel open that is used to
start and stop servers.
α Click on Button of Apace to start
server
α Click on button of Mysql to start
database server
α Open web browser and type
α Localhost or 127.0.0.1
α Select Language finally you did
16. α Requirement
1. Text editor or IDE
2. Server Connected started
3. Browser
4. And Most important Mind.
α Type the following code in text file
<?php
Phpinfo();
?>
Save insite the x:xampphtdocs with
.php extenstion.-> type this in
browser localhost/file.php