Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2009-07-14 02:29
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";
    }

?>