PHP»ñÈ¡IPµØÖ·µÄ¶àÖÖÓÐЧ·½·¨
<?php
echo "<br>";
?>
<?php
function GetIP()
{
if(!empty($_SERVER["HTTP_CLIENT_IP"]))
$cip = $_SERVER["HTTP_CLIENT_IP"];
else if(!empty($_SERVER["HTTP_X_FORWARDED_FOR"]))
$cip = $_SERVER["HTTP_X_FORWARDED_FOR"];
else if(!empty($_SERVER["REMOTE_ADDR"]))
$cip = $_SERVER["REMOTE_ADDR"];
else
$cip = "ÎÞ·¨»ñÈ¡£¡";
return $cip;
}
echo "<br>";
?>
·½·¨¶þ£º
<?php
echo "<br>";
?>
<?
error_reporting (E_ERROR | E_WARNING | E_PARSE);
if($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"])
{
$ip = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
}
elseif($HTTP_SERVER_VARS["HTTP_CLIENT_IP"])
{
$ip = $HTTP_SERVER_VARS["HTTP_CLIENT_IP"];
}
elseif ($HTTP_SERVER_VARS["REMOTE_ADDR"])
{
$ip = $HTT
Ïà¹ØÎĵµ£º
http://www.juqng.com/articles/php/php-kai-fa-kuang-jia-jie-shao/
PHP¿ª·¢¿ò¼Ü½éÉÜ
×÷Õß: juqng.com
2009-12-08
phpÊǷdz£Á÷ÐеĿªÔ´Ãâ·ÑÓïÑÔ£¬ËüµÄ¿ª·¢¿ò¼ÜÒ²ÊǷdz£¶àµÄ£¬ÕâÀï½éÉÜһЩÓÅÐãµÄPHP¿ª·¢¿ò¼Ü¡£
CodeIgniter
ÊÇÒ»¸öÇ¿´óµÄPHPÓëÌå»ý·Ç³£Ð¡µÄ¡£ÎªPHP³ÌÐòÔ±£¬Ìṩһ¸ö¼òµ¥¶øÓÅÑÅ´´½ ......
¡¾PHPϵÁн̡̳¿(4)½²ÊöÁËPHPµÄ±äÁ¿£ºhttp://blog.csdn.net/rocket5725/archive/2010/01/08/5159704.aspx
±¾½ÚÖ÷Òª½éÉÜPHPÖеij£Á¿£¬Ö÷Òª°üÀ¨ÆäÓï·¨ºÍÔ¤¶¨Òå³£Á¿µÄ½éÉÜ¡£
³£Á¿ÊÇÒ»¸ö¼òµ¥ÖµµÄ±êʶ·û£¨Ãû×Ö£©¡£ÈçͬÆäÃû³ÆËù°µÊ¾µÄ£¬Ôڽű¾Ö´ÐÐÆÚ¼ä¸ÃÖµ²»Äܸı䣨³ýÁËËùνµÄħÊõ³£Á¿£¬ËüÃÇÆäʵ²»Êdz£Á¿£©¡£³£Á¿Ä¬ÈÏΪ´óСдà ......
¡¡ÎÒÃÇ°ÑÏÂÔصÄÈý¸öÈí¼þ°ü·Åµ½/var/localĿ¼Ï£¨ÕâÊDZÊÕ߸öÈ˵ÄÏ°¹ß£©£¬ËüÃǶ¼ÊÇtar.gz°ü£¬¿ÉÒÔÓÃÃüÁîtar -xzpvf °üÃû£¬°ÑËüÃÇÔÚµ±Ç°Ä¿Â¼£¨/var/local/£©Öн⿪£º
cd /var/local
tar -xzpvf mysql-4.0.15.tar.gz
tar -xzpvf php-4.3.3.tar.gz
tar -xzpvf httpd-2.0.47.tar.gz
¡¡¡¡½â°üºó¿ÉÒÔ¿ªÊ¼½øÈëÕýʽ°²×°¡£ ......
¾¹ý2¸öÐÇÆڵļè¿à·Ü¶·£¬ÖÕÓÚСÓгɾ͡£ÏêϸµÄÁ÷³ÌÎÒ֮ǰҲÓÐ˵¹ý¡£ËùÒÔ²»ÔÙÌá³ö¡£Ö±½ÓÉÏ´úÂ룬ϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1.LOGIN.php
<?php
include_once"conn2.php";
$uname=$_POST['uname'];//½ÓÊÕ´«¹ýÀ´µÄÓû§Ãû
$upwd=$_POST['upwd'];//½ÓÊÕ´«¹ýÀ´µÄÃÜÂë²¢md5()
$sql="SELECT * from pv_master WH ......