List/Grid PHP Subscribe RSS feed of category PHP

What is session in php, how to start and stop session

What is session in php, how to start and stop session

Session in PHP Session is a way to store the user information(in variables) to be used across multiple pages. For example, When we work with an application, we may open it,… Read more »

PHP script to find Highest, lowest, count and average numbers in array

PHP script to find Highest, lowest, count and average numbers in array

To find a highest, lowest, count and average numbers in an array Here, we find the sample php programs to find the find he highest number in an array, similarly… Read more »

PHP script to get the user or client IP address

PHP script to get the user or client IP address

To get the client IP address <?php $strCurrentTime = date(“y-m-d h:i:s”,time()); $strIP = $_SERVER[‘REMOTE_ADDR’]; echo $strIP; ?> output 127.0.0.1 Note: IP address is dynamic so output may differ.

PHP script for sample contact page for website

PHP script for sample contact page for website

Contact page for website <?php include(‘config.inc.php’); class ContactUs { var $arrErrors = array(); var $strSuccess = ”; public $strSelect=null; public $objResult=null; var $objConfig = null; var $objDbConn=null; var $intRandSiteLimit =… Read more »

How to create user login, forgot password and logout page using php script

How to create user login, forgot password and logout page using php script

To create a login page in php Note: Create a table tbl_login with uname and pwd //config.inc.php <?php class Config { public $dbHostname = ‘localhost’; public $dbUsername = ‘root’; public $dbPassword… Read more »

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 »

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 »

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