A Breif Introduction to PHP

Views:
 
Category: Education
     
 

Presentation Description

The slides gives breif introduction of PHP, a simple PHP program is given to understand PHP.

Comments

Presentation Transcript

A brief Introduction to PHP : 

A brief Introduction to PHP Nitin RakeshLecturer-CSE/IT Dept.Jaypee University of Information Technology

PHP : 

PHP PHP: Hypertext Preprocessor. Server-side scripting languages for creating dynamic Web pages. Platform-independent (implementations exist for all major UNIX, Linux, and Windows operating systems). Also supports a large number of DB’s including MySQL. PHP was written specifically for interacting with the Web. PHP code is embedded directly into XHTML document. PHP script file names usually ends with .php PHP always can be downloaded from www.php.net/downloads.php

Simple PHP Program : 

Simple PHP Program <! DOCTYPE html PUBLIC “-//W3C/DTD XHTML 1.0 Strict//EN” http://www.w3.org/TR/xhtml1/DTD/XHTML~strict.dtd> <? php $name = “5th Sem IT”; //declaration ?> <html xmlns = http://www.w3.org/1999/xhtml> <head> <title> A Simple PHP document </title> </head> <body style = “font-size: 2em”> <p> <strong> Welcome to PHP, <? php print(“&name”); ?>! </strong> </p> </body> </html>