////////////////Get the visitor’s ip address//// ////////////////////////// function getip() { $IP=getenv('REMOTE_ADDR'); $ IP_ = getenv('HTTP_X_FORWARDED_FOR'); if (($IP_ != "") && ($IP_ != "unknown")) $IP=$IP_; return $IP; } function goback($num,$saying){ echo"
$saying"; } /////////////////////Determine whether the string contains a certain value in the array ////////////////// function InString($array,$string){ while(list(,$value)=each($array)){ if(eregi($value,$string)){ return true; exit; } } } ////////// //////////Link to a page////////////////////////////////////// //// function GoIn($addr,$saying){ echo"
http://www.bkjia.com/PHPjc/317885.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317885.htmlTechArticleCopy the code as follows: ?php /**************** *************************************************** *** *List of public functions*ubb,getip,GoIn,goback,IsInt,InString *OurHome:http://iwi...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn