Upload
vijay-kumar-verma
View
153
Download
5
Embed Size (px)
DESCRIPTION
Understand What is PHP and how to start learning PHP?
Citation preview
PHP & MySql
Configure, Insta
ll and Run
Vijay Kumar Verm
a (VJY)
18-April-2014
OBJECTIVE
Introduction
Installation
Configuration
Run
What is PHP and M
ySqlα 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
α 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.
α 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
α Simplicityα Efficiencyα Securityα Flexibilityα Familiarity
α 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 ?>
α There are two way to use phpα Inside the html as embedded htmlα Outside the html or in separate php file
α 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."
NOW
Installation
Introduction
Configuration
Run
α 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/downloads3. PHP php.net/downloads.phpα All in all platform
XAMPP www.apachefriends.org/ Wamp Server wampserver.com/Insta
llatio
n of PHP, S
erver, Mysql
NOW
Configuration
Introduction
Installation
Run
α 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 didConfiguratio
n of PHP and M
ySql
NOW
Run
Introduction
Installation
Configuration
α 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:\xampp\htdocs\ with .php extenstion.-> type this in browser localhost/file.php
Run Sample PHP Webpage
Thank You