Table of Contents
PHP (Server-Side Scripting language)
PHP language stands for “PHP: Hypertext Preprocessor” The most widely-used, open source and script language. All PHP scripts are executed on the server.
It can be run on different platforms like:
- Mac OS X etc.
- it is usable for almost every server like
- IIS etc.
- It also supports the various type of databases.
PHP script starts with
Code written here…
The extension for PHP files is “.php”. Normally a PHP FILE contains HTML tags, and some PHP scripting code. Below, there is an example of a code, with a PHP script that uses a built-in PHP function “echo” for print out the text “Script Language” on a web page:
<!DOCTYPE html> <html> <body> <h2>PHP Page</h2> <?php echo "Script Language"; ?> </body> </html>
|<html>||Starting with HTML tags|
|<h2></h2>||Head (heading 2)opening and closing of head|
|echo||Built in function to print the text|
|?>||Closing of php|