PHP


PHP is an open source general-purpose server-side scripting language originally designed for Web development to produce dynamic Web pages. It is one of the first developed server-side scripting languages to be embedded into an HTML source document rather than calling an external file to process data. PHP stands for Hypertext Preprocessor . The goal of the language is to allow web developers to write dynamically generated pages quickly.

The sytax of php is:
<?php  ?>  OR  <?   ?>(For this tag short open tags should be enabled in your server)

Saving the php file
you must save the php file as extension .php. If you have PHP inserted into your HTML and want the web browser to interpret it correctly, then you must save the file with a .php extension.

<html> 
<head> 
<title>This is my first PHP page</title>
 </head> 
<body> 
<?php echo "Hello I'm PHP page!"; ?> 
</body> 
</html>

No comments:

Post a Comment