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

dz̸php²å¼þÀ©Õ¹

 ×î½üÍ»·¢ÆæÏ룬.net¶¼ÓÐÃüÃû¿Õ¼ä»úÖÆ£º
       using System.data;.......,
  ÎÒÃÇÔÚ¿ª·¢phpʱ£¬ÊÇ·ñÒ²ÄÜʵÏÖÕâÖÖ»úÖÆÄØ£¬ÎÒÃÇÖªµÀÏÖÔÚµÄphp v5.2.9»¹²»Ö§³ÖÃüÃû¿Õ¼äµÄ¸ÅÄ
  µ«Ïà¹Øphp v5.3µÄ ×ÊÁϱíÃ÷ ÒѾ­Ê¹ÓÃÃüÃû¿Õ¼äµÄ¸ÅÄî £º
        namespace Foo
 ÎÒÃÇ¿ÉÒÔ°ÑphpµÄÃüÃû¿Õ¼ä¸ÄдΪ
  using  ÕâÖÖ ÐÎʽÂð ^_^ ÕâÊǺó»°........
  ÔÚ²âÊԵĹý³ÌÖб¾ÈË×öÁËÕâÑùÒ»¸ö²âÊÔ Ê¹ÓÃphp ½øÐÐÀ©Õ¹±àÒëµÄdll Îļþ£¨º¯Êý self_concat£©  ͬÑùÊÊÓÃphp дһ¸ö»¹ÊÇ(self_concatx())
php ²¿·Ö´úÂëÈçÏ£º
<?php
function self_concat($str,$n){
 $result=null;
 while($n--){
   $result.=$str;
 }
 return $result;
}
function get_microtime(){
 list($usec, $sec) = explode(' ', microtime());
 return ((float)$usec + (float)$sec);
}
$start=get_microtime();
echo self_concat("phpinfo()",200000);
echo get_microtime()-$start;
?>
copy phpinfo ×Ö·û´® 20W ´Ë ×ܺÄʱ¼ä£º 0.14761400222778
ʹÓà phpÀ©Õ¹ µ÷Óà self_concatx("phpinfo()",200000) ×ܺÄʱ¼ä£º0.012831926345825
ƽ¾ùʹÓÃËÙ¶ÈÒª¸ß 11.50 ±¶£¬
 Í¬Ê±»¹×öÁËÒ»¸öСÊý¾ÝÁ¿²âÊÔ£¬·¢ÏÖ Êý¾ÝÁ¿Ô½Ð¡ ʹÓÃʱ¼äÔ½¶Ì ƽ¾ùʱ¼äÔÚ 10 ±¶ÒÔÉÏ£¡


Ïà¹ØÎĵµ£º

PHP CookieÓëSession¿çÓò·ÃÎÊ¡¢´«µÝ


ÍíÉÏÌØÒ⻨Á˸öʱ¼ä£¬×Ô¼º¶¯ÊÖÊÔÁËÏ¡£
ÔÚÏîÄ¿ÖÐÒ»Ö±Åöµ½Cookie¿çÓò·ÃÎʼ°SessionId¿çÓò´«µÝÎÊÌâ
·¶Àý£º
index.php
<?php
include_once('a.php');
session_start();
$_SESSION['k'] = uniqid();
setcookie("sess", session_id(), time()+3600, "/", ".ipggg.com");
echo "index.php<br />\n";
echo $ ......

ÈçºÎÔÚPHPÏÂÔØÎļþÃûÖнâ¾öÂÒÂë


ÈçºÎÔÚPHPÏÂÔØÎļþÃûÖнâ¾öÂÒÂë
CND8ѧԺ
¡¡PHP½Ì³Ì
¡¡·¢²¼ÈÕÆÚ£º2009Äê05ÔÂ23ÈÕ

ͨ¹ý°ÑContent-TypeÉèÖÃΪapplication/octet-stream£¬¿ÉÒ԰Ѷ¯Ì¬Éú³ÉµÄÄÚÈݵ±×÷ÎļþÀ´ÏÂÔØ£¬ÏàÐÅÕâ¸ö´ó¼Ò¶¼»á¡£ÄÇôÓÃContent-DispositionÉèÖÃÏÂÔØµÄÎļþÃû£¬Õâ¸öÒ²Óв»ÉÙÈËÖªµÀ°É¡£»ù±¾ÉÏ£¬ÏÂÔØ³ÌÐò¶¼ÊÇÕâôдµÄ£º
< ......

26¿î¹úÍ⿪ԴPHP½¨Õ¾³ÌÐò

 
 
¿ªÔ´½¨Õ¾³ÌÐòÈñà³Ì¸ßÊÖºÍÖ»¶®´ò×ÖÉÏÍøµÄÈ˶¼¿ÉÒÔ¿ìËÙ½¨Á¢Ò»¸ö¹¦ÄÜÇ¿´ó¡¢½çÃæÆ¯ÁÁµÄÍøÕ¾¡£²»¹ÜÄãÊÇÏ뽨һ¸ö²©¿Í¡¢ÂÛ̳¡¢CMS¡¢µç×ÓÉÌÎñÍøÕ¾£¬»òÊÇWiki¡¢Ïà²á¹ÜÀí¡¢RSS¾ÛºÏºÍÀàDiggÍøÕ¾¡£Äã¶¼¿ÉÒÔͨ¹ýÕâЩ½¨Õ¾¹¤¾ß¿ìËÙ½¨Á¢¡£
ÎÒÃÇ֮ǰ½éÉܹý23¸ö¿ªÔ´µÄCMS¹ÜÀíϵͳ£¬ÏÖÔÚÔòÈÃÎÒÃÇÀ´¿´Ò»ÏÂ26¿î¿ªÔ´½¨Õ¾³ÌÐò¡£ ......

Äã²»Á˽âPHPµÄ10¼þÊÂÇé

1.ʹÓà ip2long() ºÍ long2ip() º¯ÊýÀ´°Ñ IP µØÖ·×ª»¯³ÉÕûÐÍ´æ´¢µ½Êý¾Ý¿âÀï¡£ÕâÖÖ·½·¨°Ñ´æ´¢¿Õ¼ä½µµ½Á˽ӽüËÄ·ÖÖ®Ò»£¨char(15) µÄ 15 ¸ö×Ö½Ú¶ÔÕûÐ뵀 4 ¸ö×Ö½Ú£©£¬¼ÆËãÒ»¸öÌØ¶¨µÄµØÖ·ÊDz»ÊÇÔÚÒ»¸öÇø¶ÎÄÚÒ³¸ü¼òµ¥ÁË£¬¶øÇÒ¼Ó¿ìÁËËÑË÷ºÍÅÅÐòµÄËÙ¶È£¨ËäÈ»ÓÐʱ½ö½öÊÇ¿ìÁËÒ»µã£©¡£
2.ÔÚÑéÖ¤ email µØÖ·µÄʱºòʹÓà checkdnsrr() º ......

php½Ì³Ì£ºmysqlµÄ³£ÓÃÓï¾ä

¹ØÓÚ PHP ½Ì³ÌµÄÎÄÕÂÒѾ­ºÜ¶àÁË£¬½ñÌì¸ø´ó¼Ò½éÉܼ¸¸ö³£ÓõÄMYSQLÓï¾ä¡£
ÏÔʾÊý¾Ý¿â»ò±í:
show databases;//È»ºó¿ÉÒÔuse database_name;
show tables;
¸ü¸Ä±íÃû:
alter table table_name rename new_t;
Ìí¼ÓÁÐ :
alter table table_name add column c_n column attributes;
ɾ³ýÁÐ:
alter table table_name ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ