What's New Here?

Simple PHP script for practice to learners and students

Simple PHP script for practice to learners and students

To print a string using php <?php echo “Welcome to learn PHP”; print “Enjoy it”; ?> output Welcome to learn PHP Enjoy it Note: Using echo and print, you can display… Read more »

How to output or print the array results in php

How to output or print the array results in php

To print an array result using var_dump() <?php $a = array(1, 2, array(“a”, “b”, “c”)); var_dump($a); ?> Note: var_dump() is used to dumb the information about the variable output array 0 => int 1 1 =>… Read more »

How to include Captcha in php program / script

How to include Captcha in php program / script

sample captcha code //captcha.php <?php session_start(); if(isset($_REQUEST[‘submit’])) { if(isset($_REQUEST[“captcha”])&&$_REQUEST[“captcha”]!=””&&$_SESSION[“code”]==$_REQUEST[“captcha”]) { echo “Correct Code Entered”; //Do you stuff } else { echo “wrong code try again”; } } ?> <html> <body>… Read more »

Php script or program to find square root of a given number

Php script or program to find square root of a given number

Simple program to find square root of a given number <?php $num=9; $root=0; $odd=1; while($num>0) { $num-=$odd; $root++; $odd+=2; } echo $root; ?> output  3 Program to find square root… Read more »

PHP script to find the odd or even numbers

PHP script to find the odd or even numbers

Here, we find simple php script to find the given number is odd or even. These are the basic programs used during PHP training for students. Simple program to find… Read more »

How to install, setup and configure Wamp server

How to install, setup and configure Wamp server

WAMP WAMP is an acronym, where W stands for Windows, A stands for Apache, M stands for MYSQL,  P stands for PHP, which refers to set of open source application combined… Read more »

how to install set up or configure Xampp server

how to install set up or configure Xampp server

XAMPP XAMPP is an acronym, where X stands for cross platform or any other operating system ,where A stands for Apache, M stands for MYSQL,  P stands for PHP and… Read more »

How to get random number in php program or script

How to get random number in php program or script

To get a random number using PHP function rand() function generates the random number Here is the code to print the random numbers from 1 t0 19 using array <?php… Read more »

© 2017 Expert Shout. All rights reserved. XHTML / CSS Valid.