PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of biswajit Singh   IP address checking   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Test script
Class: IP address checking
Determine whether an IP address is within a range
Author: By
Last change:
Date: 15 years ago
Size: 295 bytes
 

Contents

Class file image Download
<?php
 
require_once('IPAddressChecking.php');

// If your IP address is in this range then it prints IP Address is right
 
$Obj=new IPAddressChecking("127.0.0.0-127.0.0.50");

    if (
$Obj->checkIPorRange()) {
    print
"IP Address is right";
    }
    else{
    print
"IP address is not in right range";
    }

?>