Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖÐempty()£¬is_null()£¬isset()£¬boolÖ®¼äµÄÇø±ð


´ÓÕâ¸öͼÖУ¬¿ÉÒÔºÜÇå³þµÄ¿´µ½Ò»ÖÖÁªÏµ£º
¼ÙÉè $var ÊÇÈκÎtype¡£
µ± empty($var) Ϊ true ʱ£¬ (bool)($var) Ϊ false ¡£·´Ö®ÒàÈ»¡£
ͬÑù£¬
µ± is_null($var) Ϊ true ʱ£¬ isset($var) Ϊ false ¡£·´Ö®ÒàÈ»¡£
¼ÙÈç:
$i=$j+1;
ÕâÀïµÄis_null($j)Ϊtrue
¿É¼û£º
issetÓÃÓÚÅжÏ䶨ÒåµÄÇé¿ö¡£
Empty¿ÉÒÔÅжÏδ¶¨Ò ......

linuxÖÐÉý¼¶phpºÍGD¿â±Ê¼Ç


linuxÖÐÉý¼¶phpºÍGD¿â±Ê¼Ç
php-5.1.2.tar.gz
°²×°phpËùÐèµÄÈí¼þ°ü
£¨ÆäÖÐlibxml2ÊÇ°²×°php5±ØÐëµÄ£¬ÎªÊ²Ã´»¹ÐèÒªperl´ô»á˵Ã÷Ô­Òò¡££©
libxml2-2.6.19.tar.gz
libxslt-1.1.15.tar.gz
ActivePerl-5.8.8.817-i686-linux-2.2.17-gcc-257965.rpm
curl-7.15.0.tar.gz
GD¿âËùÐèÒªÈí¼þ°ü
£¨ÓÐÈË˵PHPÔ´Âë°üÀï×Ô ......

³¬Ç¿PHP·ÖÒ³Àà

ʵÀýÓ¦Óãº
1<?
2require_once('../libs/classes/page.class.php');
3$page=new page(array('total'=>1000,'perpage'=>20));
4echo 'mode:1<br>'.$page->show();
5echo '<hr>mode:2<br>'.$page->show(2);
6echo '<hr>mode:3<br>'.$page->show(3);
7echo '&l ......

ÂÌÉ«php×ÊÔ´ÍøÕ¾Õýʽ³ÉÁ¢

 ÖйúµÚÒ»µµÂÌÉ«PHP×ÊÔ´·ÖÏíÃÅ»§,רעÓÚ´´ÐºÍÔ­´´ÀàÔ´Âëphp×ÊÔ´£¬Ô­´´ÊÓƵphp×ÊÔ´£¬Ô­´´µäÐÍÄ£¿éphp×ÊÔ´£¬Ô­´´php¿ªÔ´×ÊÔ´£¬Ô­´´php½Ì³Ì×ÊÔ´£¬Ô­´´Íøվģ°å×ÊÔ´ ¡£ÍøÕ¾µØÖ· http://www.phpzy.com/
ÂÌÉ«php×ÊÔ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ