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

php Cookie µÄ·¾¶ÎÊÌâ

./home/a.php  
  ./b.php  
   
  b.php  
  <?php  
  setcookie('name[1]',"aaa");  
  setcookie('name[2]',"bbb");  
  setcookie('name[3]',"ccc");  
  ?>  
  ÔÚa.php   ÖÐ  
  ¿ÉÒÔ½«ÕâЩֵ¶Á³öÀ´  
   
  µ«È´ÎÞ·¨   ×¢ÏûËüÃÇ  
  a.php  
  <?php  
  setcookie('name[1]',"");  
  setcookie('name[2]',"");  
  setcookie('name[3]',"");  
  ?>  
  Öµ»¹ÊÇÔÚ   ²¢ÇÒ²»ÄÜÉ趨ͬÃûµÄcookie  
  setcookie('name[1]',"aaaaaaaaaaa");  
  setcookie('name[2]',"bbbbbbbbbbb");  
  setcookie('name[3]',"ccccccccccc");  
  ÊÇÎÞЧµÄ   ÒªÔÚ   b.php   ÖÐ×¢ÏûÁ˲ÅÐÐ  
   
  ¿´¹ýһЩcookieµÄ×ÊÁÏҲûŪÇå³þ,   °ïæ½²½â¡£


Ïà¹ØÎĵµ£º

½â¾öPHPÖÐÎÄÂÒÂëÎÊÌâ

Ò»£®Ê×ÏÈÊÇPHP ÍøÒ³µÄ±àÂë
1.phpÎļþ±¾ÉíµÄ±àÂëÓëÍøÒ³µÄ±àÂëӦƥÅä
a. Èç¹ûÓûʹÓÃgb2312±àÂ룬ÄÇôphpÒªÊä³öÍ·£ºheader(“Content-Type: text/html; charset=gb2312")£¬¾²Ì¬Ò³ÃæÌí¼Ó<meta http-equiv="Content-Type" content="text/html; charset=gb2312">£¬ËùÓÐÎļþµÄ±àÂë¸ñʽΪANS ......

ÔÚphpÖÐÊä³öxml

<?php
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="GBK" ?>';
echo '<users>';
echo '<user>';
 echo '<name>'; echo 'СС²ËÄñ';
   echo '</name>';
   echo '<age>';
    echo '24';
   ......

CakePHP:php¿ò¼ÜϵÁÐÖ®¿ìËÙµÄCakePHP


CakePHPÊÇÒ»¸ö·Ç³£Ñ¸ËÙPHP¿ò¼Ü£¬ÓÐЧËõ¶Ì¿ª·¢ÖÜÆÚ£¬Äܹ»Áé»îµÄ¼Ü¹¹£¬¿ª·¢£¬Î¬»¤ºÍ²¿ÊðµÄÓ¦ÓóÌÐò¡£Ëü²ÉÓÃÏñMVCÓëORMÒ»ÑùµÄÉè¼Æģʽ£¬ÓÐÖúÓÚ½µµÍ¿ª·¢·ÑÓ㬲»ÐèÒª¿ª·¢ÈËÔ±±àдÁËÌ«¶à´úÂë¡£CakePHPÓµÓкܶà´ó¿Í»§£¬±ÈÈ磺MozillaµÄAddons£¬ÃÀ¹úÂéÊ¡Àí¹¤Ñ§ÔºµÄScratch£¬Ò®Â³´óѧµÄÿÈÕÐÂÎÅ¡£
ÍƼöÖ¸Êý£º6ÐǼ¶
ѧϰ³É±¾£ºÒ» ......

php¼Ç¼

¡¾2010/2/4¡¿
1:
·ÅÁË6¸öÎļþÔÚcÅÌÏÂ(php.ini,php5ts.dll,libmysql.dll ,php_gd2.dll,php_mysql.dll,php_mbstring.dll ),Ò»¸öÔÚwindowsÏÂ,ÁíÎå¸öÔÚwindows/system32ÏÂ
2:
ÅäÖÃÁËpath,c:\phpºÍc:\php\ext,(²»¹ýºÃÏóûʲô×÷ÓÃ)
3:
ÃüÁî:httpd.exe -w -n "Apache2" -k start À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚ뻅 ......

PHPÖÐmicrotime()º¯Êý ÄÏÈý·½

Ê×ÏȽéÉÜһϴ˺¯ÊýµÄÓ÷¨£º
¶¨ÒåºÍÓ÷¨£¨php5£©
microtime() º¯Êý·µ»Øµ±Ç° Unix ʱ¼ä´ÁºÍ΢ÃëÊý¡£·µ»ØµÄ×Ö·û´®µÄ¸ñʽ£ºmsec sec
Óï·¨
microtime(get_as_float)
²ÎÊý ÃèÊö
get_as_float Èç¹û¸ø³öÁË get_as_float ²ÎÊý²¢ÇÒÆäÖµµÈ¼ÛÓÚ TRUE£¬¸Ãº¯Êý½«·µ»ØÒ»¸ö¸¡µãÊý¡£
˵Ã÷
±¾º¯Êý½öÔÚÖ§³Ö gettimeofday() ϵͳµ÷ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ