clock  Mon - Sun 8.00 AM - 8.00 PM
mail  edu@teknowize.com
fb
instagram
play store
pinterest

More

Introduction to PHP

Imperial Advance Hero Image

Introduction to PHP

What is PHP

  • PHP is a server scripting language,
  • PHP is a powerful tool for making dynamic web pages.
  • Hypertext processor (In earlier it is called as Personal Home Page).
  • PHP latest version is 8.

 

PHP installation

To start using PHP, you need:

  • Need web host with PHP and MySQL support (online).

                    Or

  • Install a web server on your own PC, and then install PHP and MySQL ( in local).

 

Set PHP on Your PC

  • Install a web server (xampp)
  • Install PHP
  • Install a database, such as MySQL

 

PHP Syntax

  • We can place PHP script anywhere in the document.
  • We need to start PHP script with <? and ends with ?>:
<?php
 // PHP code goes here
?>
  • Extension for PHP files is ".php".
  • A PHP file contains HTML tags, and PHP scripting code.

 

For example 

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Document</title>
</head>

<body>

<h4>hello all of you</h4> 

<?php
echo " welcome to teknowize"
?>

</body>

</html>

 

Output 


introduction to php

PHP