Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHP IPº¯Êý

<?php
$start = ip2long('192.168.1.1');
$start = sprintf("%u", $start) ;
$end = ip2long('192.168.1.50');
$end = sprintf("%u", $end) ;
for ($start; $start<$end; $start++){
echo long2ip($start)."<br>";
}
?>


Ïà¹ØÎĵµ£º

¹ØÓÚphp дÎļþ ²»»»ÐÐ µÄÎÊÌâ

  ½ñÌìÓöµ½ÁËÒ»¸ö¹ÖÎÊÌ⣬ÎÒÓÃ$fp=fopen("access_log.txt","ab")´ò¿ªÒ»¸öÎļþºó¿ªÊ¼ÍùÀïÃæÐ´Êý¾Ý£¬Ð´µÄÄÚÈÝÊÇ 'XXX\nXXX\n'£»
  µ«ÊÇÆæ¹ÖµÄÊÇ ²»¹ÜÎÒÔõôÍùÀïÃæÐ´ ËûÊDz»»»ÐÐ,¼Çʱ¾Àï¼Ç¼µÄÊý¾Ý ¾ÍÊÇ 'xxx\nxxx\n'£¬
  ºÜÊÇÄÕ»ð£¬È¥ÍøÉÏËѼ¯×ÊÁÏ£¬ÓеÄ˵¸Ä³É'\r\n'ʲôµÄ£¬½á¹ûÊÇд½øÈ¥ºó»¹ÊÇ 'xxx\r\nxx ......

PHP ÎÞÏÞ·ÖÀà

<?php
//×÷Õß:ÁºÎÄÆ½ http://www.tyasp.net
session_start();
if($_SESSION["username"]!="admin")
{
echo("<mce:script type="text/javascript"><!--
alert("²Ù×÷³¬Ê±£¡ÇëÖØÐµÇ½...");window.location.href="../index.php";
// --></mce:script>");
//header("refresh:0;url=../"); ......

IIS6.0+PHP+MYSQLÅäÖÃ

Win2003server Ï¼ÜÉèPHPWind²úÆ·»·¾³
°²×°Ç°×¼±¸:1¡¢°²×°ºÃiis6
            
             
            
&nbs ......

php session

ÍøÉÏ¿´ÁËsession.save_pathºÃÏñÕâ¸ösessionÎÒ»¹Ã»ÓÐÔõôÓùýÄØ£¬¿´À´ÓбØÒªÑо¿Ò»Ï°¡
½ñÌìÌØÒâµÄ¿´ÁËÒ»ÏÂÎĵµ£¬¿´Ò»ÏÂÎĵµÈ·ÊµÓÐÕâô¶«Î÷£¬Ò²Ã»Óп´µ½Ê²Ã´Àý×Ó¾Í×Ô¼ºËæ±ãµÄдÁËÒ»µã¿´¿´
´úÂëÈçÏ     echo session.save_path
´ò¿ªä¯ÀÀÆ÷²é¿´¾¹È»ÏÔʾ sessionsave_path ²»¶Ô°¡£¬Ôõô»áÊÇÕâ¸öÄØ£¬¿´¿ ......

PHP¿ª·¢¹¤³Ìʦ¸ÚλְÔðÓëÈÎÖ°ÒªÇó

¸ÚλְÔð
»¥ÁªÍøÏà¹Ø²úÆ·¿ª·¢£¬ÏîÄ¿¿ª·¢£¬ÏµÍ³Î¬»¤µÈ
 
ÈÎÖ°ÒªÇó
1. ¾«Í¨PHP¿ª·¢ÓïÑÔ£¬ÊìÏ¤ÃæÏò¶ÔÏóµÄÈí¼þÉè¼Æ·½·¨£»
2. ÊìϤUnix/Linux²Ù×÷ϵͳ£¬ÊìϤC/C++±à³Ì£¬ÊìϤShell½Å±¾±à³Ì¼°³£ÓÃUnix¹ÜÀíÃü
   ÁÊìϤbash/python/perl£»
3. ÊìϤHTTPЭÒé¼°W3CÏà¹Ø»¥ÁªÍø¹æ·¶£¬ÊìÁ·ÕÆÎÕXHTML¡¢CSS¡¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ