Tuesday, 9 June 2020

php introduction

php
https://www.youtube.com/watch?v=Z3Y8z09dmF4&list=PLC2mgeYbYNm8TRhX27z6JG0DtR8FR_WuO

php
php is php hyper text processor
open source scripting language
php is free to download and use
php file can contain text, html , css, javascript and php code
php code are executed on the server and the result is returned to the browser as plain html
php have extension .php
php can create dynaic page content
php cancreat ,opm ,read write, delete and close file on the server
php.net visit website
php is a web hosting server




<?php
// PHP code goes here
?>





<?php beginning tag and ending tag
?>
index.html this page is called as home page for any website
index.php





the three functions are all same , there is no problem at case insensitive

  1.   echo "Hello world using echo </br>";  
  2.             ECHO "Hello world using ECHO </br>";  
  3.             EcHo "Hello world using EcHo </br>";  




variable declaratioon is case sensitive

three variables are different
  1.   $color = "black";  
  2.             echo "My car is ". $ColoR ."</br>";  
  3.             echo "My dog is ". $color ."</br>";  
  4.             echo "My Phone is ". $COLOR ."</br>";  

No comments:

Post a Comment