<?PHPPrint_r($_server);//$_server precompiled variable "array" Output request message, note case Echo"<br/>"; foreach($_server as $key=$val) { Echo $val." <br/> "; } Echo"IP currently in Access:".$_server["REMOTE_ADDR"]; if($_server["REMOTE_ADDR"]== ":: 1") { Echo"<br/>"; Echo $_server[' REMOTE_ADDR ']; }Else { Echo"<br/>"; Echo $_server[' REMOTE_ADDR ']; } ?>
/************************************************************************************************************** *******/
//the difference between get and post1.The data for the security GET request is displayed on the address bar, and the data for the post request is placed on the request message2.look at the size of the data that can be submitted2.The 1http protocol itself does not show the size of the data2.2 Browser restrictions on Get and post requests, get request data 2k+35,Post No Limit<a href= "http://localhost/" > View </a>//anti-theft chain<?PHPif(isset($_server(' Http_referer ')))//determine if there is a value { //removed if(Strpos($_server(' Http_referer '), "http://localhost/") ==0) { ////Strpos indicates that the first occurrence of the string index//represents the Site page access } }?>
PHP Learning Note 37 "http"