Tuesday, July 12, 2011

The basic concepts

Why do we call PHP scripting language?

Wll you write scripts in a file with php extension like example.php.

PHP code can be embeded within html code in every place you like to do so.  Why is this possible?  Well php is a code that is executed on the server, not on the browser side. So php code is not necessary for the browser.

We add php code with the following start and end delimiters:

-end. Any code between will be considered as php code and will not be shown or either processed by the browser.

Here is an example:
Create a file called example.php and open it with notepad or any text editor and write this code

<?php

echo "Hello world!";

?>

This will print Hello world in the browser.  But to execute this command we will have to install all necessary software in order this to work. Comming up next, Installation.

No comments:

Post a Comment