19
PHP & MySql Configure, Install and Run Vijay Kumar Verma (VJY) 18-April-2014

Php introduction and configuration

Embed Size (px)

DESCRIPTION

Understand What is PHP and how to start learning PHP?

Citation preview

Page 1: Php introduction and configuration

PHP & MySql

Configure, Insta

ll and Run

Vijay Kumar Verm

a (VJY)

18-April-2014

Page 2: Php introduction and configuration

OBJECTIVE

Introduction

Installation

Configuration

Run

Page 3: Php introduction and configuration

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

Page 4: Php introduction and configuration

α 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.

Page 5: Php introduction and configuration

α 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

Page 6: Php introduction and configuration

α Simplicityα Efficiencyα Securityα Flexibilityα Familiarity

Page 7: Php introduction and configuration

α 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 ?>

Page 8: Php introduction and configuration

α There are two way to use phpα Inside the html as embedded htmlα Outside the html or in separate php file

Page 9: Php introduction and configuration

α 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."

Page 10: Php introduction and configuration

NOW

Installation

Introduction

Configuration

Run

Page 11: Php introduction and configuration

α 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

Page 12: Php introduction and configuration

NOW

Configuration

Introduction

Installation

Run

Page 13: Php introduction and configuration

α 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

Page 14: Php introduction and configuration
Page 15: Php introduction and configuration

NOW

Run

Introduction

Installation

Configuration

Page 16: Php introduction and 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

Page 17: Php introduction and configuration
Page 18: Php introduction and configuration

Have Any Question?

facebook.com/groups/sviet.mca

[email protected]

Page 19: Php introduction and configuration

Thank You