Introduction to php

7
Introduction to PHP Presenter: Suraj Motee

Transcript of Introduction to php

Page 1: Introduction to php

Introduction to PHPPresenter: Suraj Motee

Page 2: Introduction to php

What is PHP?

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.

A PHP script is executed on the server, and the plain HTML result is sent back to the browser.

Page 3: Introduction to php

Syntax

The default file extension for PHP files is ".php".

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

<?php// PHP code goes here?>

Page 4: Introduction to php

HTML & PHP

A PHP file normally contains HTML tags, and some PHP scripting code.

Show example.

Page 5: Introduction to php

Comments

/* */

#

//

Page 6: Introduction to php

Case sensitive

PHP is not case sensitive except variables name.

Show examples.

Page 7: Introduction to php

Next: Variables