PHPº¯ÊýÖ®setcookie()
setcookie("cookiename","cookievalue",time()+3600,"/path",".php100.com",1);
cookiename:
ÊÇcookieµÄÃû×Ö£¬¿ÉÒÔͨ¹ýcookienameµ÷ÓôËcookie£¬$_COOKIE["cookiename"]£»
cookievalue:
ÊÇcookieµÄ³õʼֵ£»
time():
·µ»ØUNIXʱ¼ä´Á£¬¼´´Ó1970Äê1ÔÂ1ÈÕ£¨UTC/GMTµÄÎçÒ¹£©¿ªÊ¼Ëù¾¹ýµÄÃëÊý£¬²»¿¼ÂÇÈòÃë¡£
ËùÒÔ£¬time()+3600 ÊÇÉèÖÃcookie1¸öСʱºóʧЧ£»time()-1 Á¢¼´Ê§Ð§£¬µ±Ç°Ê±¼äµÄÇ°Ò»Ãë¡£
/path:
cookieÔÚ·þÎñÆ÷¶ËµÄÓÐЧ·¾¶£¬ÏòϼæÈÝ£¬(eg:/path=>ÔÚÕû¸öpathĿ¼¼°Æä×ÓĿ¼Ï¾ùÓÐЧ£¬/path/foo=>ÔÚfoo¼°Æä×ÓĿ¼ÏÂÓÐЧ)
.php100.com:
ÉèÖñ£´æÓò£¬·º½âÎö£¬±íʾ´ËcookieÔÚ.php100.com×ÓÓòÃûÏÂÈ«²¿ÓÐЧ(eg:bbs.php100.com,news.php100.com)¡£
secure:
±íʾ´ËcookieÊÇ·ñÔÚhttpsÁ¬½ÓÖд«ËÍ¡£1:true;0:false;
Ïà¹ØÎĵµ£º
»º³å²ã¼¶±ðµÄÓÅ»¯
xCacheÊÇ°Ñ PHP ²Ù×÷Â뻺´æµ½ÄÚ´æÖÐµÄ PHP À©Õ¹ÖУ¬XCache ½«±ÜÃâ´ú¼Û¸ß°ºÇÒ²»±ØÒªµÄ»¨·ÑÀ´ÖØбàÒëÏàͬµÄ PHP ´úÂëÈ¥½»¸¶Ò»¸öÒ³Ã棬ÕâÒ»µãÉϺÍAcceleratorÓеãÏàËÆ£¬ÎÒÒ»Ö±ÈÏΪËûÃǵĻúÀíÊÇÒ»ÑùµÄ£¬²»¹ýxCahceÊÇ¿ªÔ´²úÆ·[opensource].
Zend Accelerator Õ¾ÔÚ½âÎöºÍÖ´ÐеÄÖм䣬µ±Ò³ÃæµÚÒ»´Î±»ÇëÇóʱ£¬Z ......
ʵÀýÒ»£ºÎ޲εĴ洢¹ý³Ì
$conn = mysql_connect('localhost','root','root') or die ("Êý¾ÝÁ¬½Ó´íÎó!!!");
mysql_select_db('test',$conn);
$sql = "
create procedure myproce()
begin
INSERT INTO user (id, username, sex) VALUES (NULL, 's', '0');
end;
";
mysql_query($sql);//´´½¨Ò»¸ömyproceµÄ´æ´¢¹ý³Ì
......
ÓÃPOSTÀ´´«Öµ£¬ÔÚÁíÍâÒ»¸öÒ³Ãæ½ÓÊÕ²ÎÊýÓÃ$_POST["²ÎÊýÃû"]
ÓÃGETÀ´´«Öµ£¬ÓÃ$_GET["²ÎÊýÃû"]À´½ÓÊÕ²ÎÊý¡£
¾ÙÀý³ÌÐò£º
<form action="action.php" method="POST">
POSTÓëGET´«ÖµµÄÇø±ð£º
Post´«ÊäÊý¾Ýʱ£¬²»ÐèÒªÔÚURLÖÐÏÔʾ³öÀ´£¬¶øGet·½·¨ÒªÔÚURLÖÐÏÔʾ¡£
Post´«ÊäµÄÊý¾ÝÁ¿´ó£¬¿ÉÒÔ´ïµ½2M£¬¶øGet·½·¨ÓÉÓÚÊÜ ......
Ò»¡¢ÏµÍ³Ô¼¶¨
¡¡¡¡»·¾³Èí¼þÏÂÔغó´æ·ÅλÖãºX:\Server_Tools
¡¡¡¡»·¾³Èí¼þ°²×°Î»ÖãºX:\Server_Core
¡¡¡¡PHP°²×°Î»ÖãºX:\Server_Core\PHP
¡¡¡¡MySQL°²×°Î»ÖãºX:\Server_Core\MySQL
¡¡¡¡IISÍøÕ¾Õ¾µã¸ùĿ¼£ºX:\wwwroot
¡¡¡¡MySQL Êý¾Ý¿âλÖãºX:\Database
¡¡¡¡Php.ini´æ·ÅλÖãºX:\Windows\php.ini
¡¡¡¡My.ini ´æ· ......
·ÖÎöÍøÕ¾½á¹¹
¼ÈÈ»ÎÒÃÇÒѾ°²×° CI £¬ÎÒÃÇ¿ªÊ¼Á˽âËüÈçºÎ¹¤×÷¡£
¶ÁÕßÒѾ֪µÀ CI ʵÏÖÁËMVCʽÑù¡£ ͨ¹ý¶ÔĿ¼ºÍÎļþµÄÄÚÈݽøÐзÖÀà, ¶ø²»ÊÇÈôúÂë´ó¿é´ó¿éµØ¾À¼¯ÔÚÒ»Æð¡£
ÕâÒ»Õ£¬ÎÒÃǽ«»á¶Ô MVC ÀíÂÛ×ö¸ö¼ò¶ÌµÄ½éÉÜ, È»ºóÔÙ½éÉÜ CI µÄMVCʵÏÖ·½Ê½¡£ÌرðµØ£¬ÒªÁ˽âÄÇЩĿ¼ºÍÎļþÈçºÎ»¥Ïཻ»»ÐÅÏ¢£¿ÍøÕ¾½á¹¹ÊÇÔõÑùµÄ£¿ÒÔ ......