Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

PHP Server-Side Scripting language for Website Development

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:

  • Windows
  • Linux
  • Unix
  • Mac OS X etc.
  • it is usable for almost every server like
  • Apache
  • IIS etc.
  • It also supports the various type of databases.

PHP Syntax

 PHP script starts with

         <?php 

         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:

 Example

<!DOCTYPE html>
<html>
<body>
<h2>PHP Page</h2>
<?php
echo "Script Language";
?>
</body>
</html>

Output

                PHP Page

           Script Language

Code Comments
<html>Starting with HTML tags
<h2></h2>Head (heading 2)opening and closing of head
<?phpStarting php
echoBuilt in function to print the text
 ?>Closing of php

 

Fazal Rehman Shamil Click Here to Know More
Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325
Dear Professors and Resarchers!You are welome to Cite these tutorials in your research or slides etc. Please don't forget to mention the reference of website. Copy Paste of text is strcitly forbidden. Images can be reuse because images are protected with watermark.

Leave a Reply

Your email address will not be published. Required fields are marked *