PHPÉúÈÕ¼ÆËã
ÌÚѶµÄQQ¿Õ¼ä¸ù¾Ý»áÔ±×ÊÁϼÆËãÉúÈÕ²¢ÌáÐѺÃÓÑ·¢ËÍÉúÈÕ×£¸££¬Ò»Ð©ÍøÕ¾Ò²ÓÐÀàËÆµÄ¹¦ÄÜ£¬±ÈÈçÌáǰ¼¸ÌìÏò»áÔ±·¢ËÍ×£¸£Óʼþ¡£
´óÖ¹ý³ÌÈçÏ£ºÉèÖÃÒ»¸ö×Ô¶¯Ö´ÐгÌÐò£¬±ÈÈçLinuxÏ¿ÉÒÔÓÃCronTab ʵÏÖ¡£´Ë³ÌÐòÿÌìÖ´ÐÐÒ»´Î¶ÁÈ¡»áÔ±×ÊÁÏÖеÄbirth_day,
ÅжÏÊÇ·ñ·ûºÏÉèÖõķ¢ËÍÒªÇó¡£¼ÙÈçÉèÖÃÌáǰÈýÌì·¢ËÍÓʼþ£¬ÔòÅжϻáÔ±ÉúÈÕ£¨ÔÂÈÕ£©ÊÇ·ñµÈÓÚµ±Ç°ÔÂÈÕ+3¡£ »ù±¾´úÂëÈçÏ£¬
ÔÎĵØÖ· http://www.phpwell.com/?p=89
˵Ã÷£º´Ë¼ÆËã¹ý³Ì¼Ù¶¨»áÔ±×ÊÁÏÖеÄÉúÈÕÊǹ«Àú¼ÍÄê¡£
Ïà¹ØÎĵµ£º
×öPHP³ÌÐòµÄÈ˶¼ÖªµÀhtmlentitiesºÍhtmlspecialcharsº¯Êý£¬¶¼ÊǸñʽ»¯html´úÂëµÄ£¬µ«ÊÇÕâ¶þ¸öº¯ÊýÊÇ·ñÕæµÄ¹¦ÄÜÒ»ÑùÂ𣿠php³ÌÐòÔ±Ö®¼Ò ÕâÁ½¸öº¯ÊýÔÚ¸ñʽ»¯´øÓÐÓ¢ÎÄ×Ö·ûµÄhtml´úÂëµÄʱºò»ù±¾Ã»É¶ÎÊÌ⣬µ«ÊÇhtmlentities¶ÔÖÐÎÄ×Ö·ûÒ²²»·Å¹ý£¬ÕâÑùµÃ³öÀ´µÄ½á¹ûÊÇÖÐÎÄ×Ö·û²¿·Ö±äΪһ¶ÑÂÒÂë¡£µ±Ê±×öÓ¢ÎÄÕ¾µÄʱºò¸ù±¾¾Íû¾õ²ìµ ......
1,Smarty»º´æµÄÅäÖãº
$smarty->cache-dir="Ŀ¼Ãû"; //´´½¨»º´æÄ¿Â¼Ãû
$smarty->caching=true; //¿ªÆô»º´æ£¬ÎªfalseµÄʱºò»º´æÎÞЧ
$smarty->cache_lifetime=60; //»º´æÊ±¼ä£¬µ¥Î»ÊÇÃë
2,Smarty»º´æµÄʹÓÃÓëÇå³ý
$marty->d ......
<?php
//·ÖÒ³
$link=mysql_connect("localhost","root","root");
$db=mysql_select_db("bustest",$link);
$res=mysql_query("select * from info");
//Ò»¹²¶àÉÙÌõ
$count=mysql_num_rows($res);
//ÿҳ5ÌõÐÅÏ¢
$perpage=5;
//Ò»¹²¶àÉÙÒ³
$pagecount=ceil($count/$perpage);
//´«¹ýÀ´µÄÒ³Êý
$pagenum=$_REQUE ......
ĿǰLAMP (Linux + Apache + MySQL + PHP) ½ü¼¸ÄêÀ´·¢Õ¹Ñ¸ËÙ£¬ÒѾ³ÉΪWeb ·þÎñÆ÷µÄÊÂʵ±ê×¼¡£LAMP
Õâ¸ö´ÊµÄÓÉÀ´×îÔçʼÓڵ¹úÔÓÖ¾“c't Magazine”£¬Michael KunzeÔÚ1990Äê×îÏȰÑÕâЩÏîÄ¿×éºÏÔÚÒ»Æð´´ÔìÁËLAMPµÄËõд×Ö¡£ÕâЩ×é¼þËäÈ»²¢²»ÊÇ¿ª¿ªÊ¼¾ÍÉè¼ÆÎªÒ»ÆðʹÓõ쬵«ÊÇ£¬ÕâЩ¿ªÔ´Èí¼þ¶¼¿ÉÒԺܷ½±ã µÄË ......