PHP Introduction
PHP is the abbreviation of Hypertext Preprocessor.
HTML pages could be checked on the local computer, PHP pages can not be verified unless they are hosted on a web server that has PHP installed.
Example: The simplest PHP script is:
<?php
echo "This is a PHP script."; // output: This is a PHP script.
?>
echo "This is a PHP script."; // output: This is a PHP script.
?>
More PHP simple script example - how to create
If the script is not written correctly, PHP will display the error by indicating where it is. Errors are displayed only if the server is set properly (php.ini is set to display_errors = On and error_reporting = E_ALL).
Example: The PHP file may contain between <html> and </ html> PHP blocks delimited by <? Php // your php code here ?>
<HTML>
<head>
<title>
Example of HTML code and
PHP script</ title>
</ head>
<body>
Example of HTML code and PHP script. <br>
This is the second line of HTML code. <br>
<?php
echo "Here we have PHP script <br> and this is the second line of PHP script";
?>
</ body>
</ HTML>
Output of above script in your browser:
Example of HTML code and PHP script.
This is the second line of HTML code.
Here we have PHP script
and this is the second line of PHP script
<head>
<title>
</ head>
<body>
Example of HTML code and PHP script. <br>
This is the second line of HTML code. <br>
<?php
echo "Here we have PHP script <br> and this is the second line of PHP script";
?>
</ HTML>
Output of above script in your browser:
Example of HTML code and PHP script.
This is the second line of HTML code.
Here we have PHP script
and this is the second line of PHP script
Note: Under PHP script you can also add HTML code.
PHP simple script
The simplest PHP script - php tutorial
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.