php by virat

30

Upload: virat-raval

Post on 08-Aug-2015

52 views

Category:

Education


1 download

TRANSCRIPT

IndexIntroduction of PHPWhat is MySQL ?System RequirementBasic PHP Syntax PHP Variables Installation of Wampserver 2.0

Introduction of PHPo PHP stand for PHP:Hypertext Preprocessor.o It’s a server-side scripting language that is

used for building dynamic web site..o PHP supports many databases

(MySQL,Oracle,ODBC, etc.).o PHP is an open source softwareo PHP files have a file extension of ".php",

".php3", or ".phtml“.

What is MySQL?

MySQL is a database server.MySQL is ideal for both small and large

applicationsMySQL supports standard SQLMySQL compiles on a number of platformsMySQL is free to download and use

System RequirementServer Software(an operating system such as

window xp, Linux).Web server(such as Wamp , Apache).PHP5(get the download from www.php.net).Database System(such as Mysql).Web browser(such as Internet

Explorer,chrome,Mozilla).Text Editor, such as Notepad,Dreamweaver.

Basic PHP Syntax

A PHP script always starts with <?php and ends with ?>.

A PHP script can be placed anywhere in the document.

PHP program< html>

< body>< ?phpecho "Hello World";?>< /body>< /html>

PHP Variables

PHP variables are used to hold values or expressions.

Rules for PHP variable names:Variables in PHP starts with a $ sign, followed by

the name of the variableThe variable name must begin with a letter or the

underscore characterA variable name can only contain alpha-numeric

characters and underscores (A-z, 0-9, and _ )A variable name should not contain spacesVariable names are case sensitive (y and Y are

two different variables)

Creating (Declaring) PHP Variables

< ?php$txt="Hello World!";$x=16;?>

Installation of Wampserver 2.0

Thank You