示例#1
1
文件: iptest.php 项目: umaxfun/x4m
function iptocountry($ip)
{
    debugbreak();
    $numbers = preg_split("/\\./", $ip);
    include "ip_files/" . $numbers[0] . ".php";
    $code = $numbers[0] * 16777216 + $numbers[1] * 65536 + $numbers[2] * 256 + $numbers[3];
    foreach ($ranges as $key => $value) {
        if ($key <= $code) {
            if ($ranges[$key][0] >= $code) {
                $country = $ranges[$key][1];
                break;
            }
        }
    }
    if ($country == "") {
        $country = "unkown";
    }
    return $country;
}
示例#2
1
 public function mytest()
 {
     debugbreak();
 }
示例#3
1
 function debugger()
 {
     debugbreak();
 }
示例#4
1
 function mytest($vals)
 {
     debugbreak();
 }
<?php
debugbreak();
echo "PHPEdit test ok";
?>