Check if it is Localhost or server:
{
$whitelist = array( '127.0.0.1', '::1' );
return in_array( $_SERVER['REMOTE_ADDR'], $whitelist);
}
just call the function LIke,
$isLocalhost = is_localhost();
echo $isLocalhost;
Here, In below code, user can enter two numbers to find the odd and even numbers between them. The number must be in between 1000 and 3000...
No comments:
Post a Comment