PHP example or small projects
In this section, you can learn a lot of PHP examples of that are very use full for us. In other word, you can say that they all examples are the small project like a Simple captcha script, page counter script, creation of random numbers and manipulate form data.
PHP 5 Example
|01||PHP 5 Example|
All of the above PHP script is explained very easily and step by step with a live demo and you can also download the script from the Download section of every page.
Random Number example
<?php $r=rand(0,1520); printf("Unique number =%d
<?php session_start(); $total=$_SESSION['count']=$_SESSION['count']+1; Echo "you are visited this site ". $total. " times"; ?>
ASCII value example
<?php $ascii1 = chr(65); echo "ASCII value of 65 is : $ascii1
"; $ascii2 = chr(97); echo "ASCII value of 97 is : $ascii2
"; $ascii3 = chr(61); echo "ASCII value of 61 is : $ascii3
"; $ascii4 = chr(42); echo "ASCII value of 42 is : $ascii4