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

¸øPHP¼ÓËÙ£¬eAcceleratorÅäÖúÍʹÓÃÖ¸ÄÏ


Show All   1 2 3 4 5
±¾ÎÄÓÉMichaelÔ­´´ºÍÕûÀí£¬×ªÔØÇë±£Áô³ö´¦£¡http://www.toplee.com/blog/?p=100
Trackback URL: http://www.toplee.com/blog/wp-trackback.php?p=100
¶ÔÓÚ±¾ÎÄÖгöÏֵĴíÎóµ¼ÖÂÄúµÄËðʧ£¬Michael²»³Ðµ£ÔðÈΡ£
Ç°Ò»¶Îʱ¼äÍê³ÉÁË·þÎñÆ÷´ÓFreeBSD4.10µ½6.1µÄÉý¼¶£¬Í¬Ê±°ÑPHPÒ²Éý¼¶µ½ÁË×îеÄPHP5.1.4£¬ApacheÒ²Éý¼¶µ½ÁË×îеÄApache2.2£¬ÎªÁ˸üºÃµÄÌá¸ßϵͳµÄÐÔÄÜ£¬¿¼ÂǶÔPHPÔÙ½øÐÐһЩÓÅ»¯£¬Ç°Á½Äê½Ó´¥¹ýMMCacheºÍeAccelerator£¬ÓÈÆä¶ÔeAccelerator·Ç³£Ï²»¶£¬Õâ´ÎÓÅ»¯Ò²Ñ¡ÔñÁËËü£¬ÏÂÃæÕûÀíһЩÎĵµºÍ´ó¼Ò·ÖÏí¡£
Ŀ¼£º
Ò»¡¢eAccelerator½éÉÜ
1¡¢±³¾°
2¡¢Ô­Àí
¶þ¡¢°²×°ºÍÅäÖÃ
1¡¢Ö§³Öƽ̨
2¡¢ÏµÍ³ÒªÇó
3¡¢°²×°
4¡¢php.iniÎļþÅäÖÃ
5¡¢ÑéÖ¤°²×°
Èý¡¢Ê¹ÓÃeAccelerator¿ª·¢PHP´úÂë
1¡¢APIÎĵµºÍ½Ó¿Ú˵Ã÷
2¡¢¿ª·¢·¶Àý
ËÄ¡¢¸½Â¼ºÍ²Î¿¼×ÊÁÏ
Ò»¡¢eAccelerator½éÉÜ
1¡¢±³¾°
eAccelerator ÊÇÒ»¸öÃâ·Ñ¿ªÔ´µÄPHP¼ÓËÙ¡¢ÓÅ»¯¡¢±àÒëºÍ¶¯Ì¬»º´æµÄÏîÄ¿£¬Ëü¿ÉÒÔͨ¹ý»º´æPHP´úÂë±àÒëºóµÄ½á¹ûÀ´Ìá¸ßPHP½Å±¾µÄÐÔÄÜ£¬Ê¹µÃÒ»ÏòºÜ¸´ÔÓºÍÀëÎÒÃǺÜÔ¶µÄPHP½Å±¾±àÒëÎÊÌâÍêÈ«µÃµ½½â¾ö¡£Í¨¹ýʹÓÃeAccelerator£¬¿ÉÒÔÓÅ»¯ÄãµÄPHP´úÂëÖ´ÐÐËٶȣ¬½µµÍ·þÎñÆ÷¸ºÔØ£¬¿ÉÒÔÌá¸ßPHPÓ¦ÓÃÖ´ÐÐËÙ¶È×î¸ß´ï10±¶¡£
eAccelerator ÏîÄ¿µ®ÉúÓÚ2004Ä꣬µ±Ê±ËüÊÇ×÷Ϊ Turck MMCache ÏîÄ¿µÄÒ»¸ö·ÖÖ§Ìá³ö²¢Í¶È뿪·¢µÄ¡£ Turck MMCache ÓÉ Dmitry Stogov ¿ª·¢£¬ÊǸö·Ç³£ÓÅÐãµÄPHPÄڴ滺´æ¼ÓËÙϵͳ£¬Èç½ñÈÔÈ»ÓÐºÜ´ó²¿·Ö eAccelerator µÄ´úÂëÓ¦Óõ½¸ÃÏîÄ¿ÖУ¬Ä¿Ç°¸ÃÏîÄ¿Óкܳ¤Ê±¼äûÓиüÐÂÁË£¬¶ÔÓÚ×îеÄPHP5.xµÄÖ§³Ö»¹Î´ÍƳö¡£
2¡¢Ô­Àí
eAccelerator ͨ¹ý°Ñ¾­¹ý±àÒëºóµÄPHP´úÂ뻺´æµ½¹²ÏíÄÚ´æÖУ¬²¢ÔÚÓû§·ÃÎʵÄʱºòÖ±½Óµ÷ÓôӶøÆ𵽸ßЧµÄ¼ÓËÙ×÷Óá£ËüµÄЧÂʷdz£¸ß£¬´Ó´´½¨¹²ÏíÄÚ´æµ½²éÕÒ±àÒëºóµÄ´úÂ붼Ôڷdz£¶ÌµÄʱ¼äÄÚÍê³É£¬¶ÔÓÚ²»ÄÜ»º´æµ½¹²ÏíÄÚ´æÖеÄÎļþºÍ´úÂ룬eAccelerator»¹¿ÉÒÔ°ÑËûÃÇ»º´æµ½ÏµÍ³´ÅÅÌÉÏ¡£
eAccelerator ͬÑù»¹Ö§³ÖPHP´úÂëµÄ±àÒëºÍ½âÊÍÖ´ÐУ¬Äã¿ÉÒÔͨ¹ýencoder.php½Å±¾À´¶Ôphp´úÂë½øÐбàÒë´ïµ½±£»¤´úÂëµÄÄ¿µÄ£¬¾­¹ý±àÒëºóµÄ´úÂë±ØÐëÔËÐÐÔÚ°²×°ÁËeAcceleratorµÄ»·¾³Ï¡£eAccelerator±àÒëºóµÄ´úÂë²»Äܱ»·´±àÒ룬Ëü²»ÏóÆäËûһЩ±àÒ빤¾ßÄÇÑù¿ÉÒÔ½øÐз´±àÒ룬Õ⽫ʹµÃ´úÂë¸ü¼Ó°²È«ºÍ¸ßЧ¡£
¶þ¡¢eAccelerator°²×°ÅäÖÃ
1¡¢Ö§³Öƽ̨
ÓÉÓÚaAcceleratorÌṩÁ˴󲿷ֻùÓÚ¹²ÏíÄÚ´æµÄAPI£¬ËùÒÔÔÚ*nixµÄƽ̨ÉϽ«µÃµ½¸üºÃµÄÖ§³Ö£¬ËäȻҲ·¢²


Ïà¹ØÎĵµ£º

php±í¸ñÊä³ö

<?
//ÐÂÎÅÀà±ð
$query_cat="select * from $dbtable1";
$result_cat=mysql_query($query_cat) or die("<mce:script type="text/javascript"><!--
alert('Ìáʾ£º²éÑ°ÐÂÎÅÀà±ðʧ°Ü£¬Çë¸ú¹ÜÀíÔ±ÁªÏµ')
// --></mce:script>");
if(!$resul ......

PHP/MYSQLʵÏÖ°´×Öĸ¼ìË÷

·½·¨Ò»£º½¨Ò»¸öÆ´Òô±í t_cosler £¬´æ·Åÿ¸ö×Öĸ¿ªÍ·µÄµÚÒ»¸öºº×ֵıàºÅºÍ×îºóÒ»¸öºº×ֵıàºÅ¡£
BatchFile code+------+--------+-------+
| f_PY | cBegin | cEnd |
+------+--------+-------+
| A | 45217 | 45252 |
| B | 45253 | 45760 |
.....
| Z | 54481 | 55289 |
+------+--------+-------+ ......

ÀûÓÃWindows Schedule TaskÔËÐÐphp³ÌÐò

¼Æ»®ÈÎÎñ£¨Schedule Task£©ÊÇwindowsƽ̨ÉϺÍcronÀàËƵÄÒ»¸ö³ÌÐò£¬µ±È»¹¦ÄÜÉϲîÁ˺ܶàÁË¡£
ÒòΪÐèҪÿ¸öСʱÔËÐÐÒ»¸öPHP³ÌÐò£¬ÊÖ¶¯²Ù×÷²»ÏÖʵÁË¡£
Ê×ÏÈÔÚcmdϲâÊÔ£¬ÀýÈ磺 c:\appserv\php5\php.exe "C:\AppServ\www\temp2.php"
ÓÐÒ»µãҪעÒâ¾ÍÊÇÈç¹ûÄǸöPHPÒýÓÃÁËÆäËûÒ³Ã棬ÐèÒªÌṩ¾ø¶Ô·¾¶ÁË£¬ÖÁÉÙÎҵIJâÊÔ ......

php ¼¸ÖÖÅÅÐò·½Ê½

1.ðÅÝÅÅÐò
function m_sort($arr)
{
    $l = count($arr);
    if($l==0) return false;
  
    for($i=0;$i<$l-1;$i++)
    {
        for($j=$i+1;$j<$l-1;$j++)
     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ