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

PHP»º´æ¼¼ÊõÏê̸

Ò»¡¢ÒýÂÛ
PHP,Ò»ÃÅ×î½ü¼¸ÄêÐËÆðµÄwebÉè¼Æ½Å±¾ÓïÑÔ,ÓÉÓÚËüµÄÇ¿´óºÍ¿ÉÉìËõÐÔ,½ü¼¸ÄêÀ´µÃµ½³¤×ãµÄ·¢Õ¹,phpÏà±È´«Í³µÄaspÍøÕ¾,ÔÚËÙ¶ÈÉÏÓоø¶ÔµÄÓÅÊÆ,Ïëmssqlת6ÍòÌõÊý¾ÝphpÈçÐèÒª40Ãë,asp²»ÏÂ2·ÖÖÓ.µ«ÊÇ,ÓÉÓÚÍøÕ¾µÄÊý¾ÝÔ½À´Ô½¶à,ÎÒÃÇ¿ÊÇóÄܸü¿ìËٵĵ÷ÓÃÊý¾Ý,²»±ØҪÿ´Î¶¼´ÓÊý¾Ý¿âµô,ÎÒÃÇ¿ÉÒÔ´ÓÆäËûµÄµØ·½,±È·½Ò»¸öÎļþ,»òÕßij¸öÄÚ´æµØÖ·,Õâ¾ÍÊÇphpµÄ»º´æ¼¼Êõ,Ò²¾ÍÊÇCache¼¼Êõ.
¶þ¡¢·ÖÎöÉîÈë
Ò»°ãÀ´Ëµ,»º´æµÄÄ¿µÄÊÇ°ÑÊý¾Ý·ÅÔÚÒ»¸öµØ·½È÷ÃÎʵĸü¿ìµã,ºÁÎÞÒÉÎÊ,ÄÚ´æÊÇ×î¿ìµÄ,µ«ÊÇ,¼¸°ÙMµÄÊý¾ÝÄÜÍùÄÚ´æ·Åô?Õâ²»ÏÖʵ,µ±È»,ÓеÄʱºòÁÙʱ·ÅÈç·þÎñÆ÷»º´æ,Èçob_start()Õâ¸ö»º´æÒ³Ã濪ÆôµÄ»°ÔÚ·¢ËÍÎļþͷ֮ǰҳÃæÄÚÈݶ¼±»»º´æÔÚÄÚ´æÖÐ,ÖªµÀµÈÒ³ÃæÊä³ö×Ô¶¯Çå³þ»òÕߵȴýob_get_contentsµÄ·µ»Ø,»òÕß±»ob_end_cleanÏÔʾµÄÇå³ý,ÕâÔÚ¾²Ì¬Ò³ÃæµÄÉú³ÉÖÐÄܺܺõÄÀûÓÃ,ÔÚÄ£°åÖÐÄܵõ½ºÜºÃµÄÌåÏÖ,ÎÒµÄÕâƪÎÄÕÂÉîÈëµÄÌÖÂÛÁË:̸PHPÉú³É¾²Ì¬Ò³Ãæ,ÕâÊÇÒ»ÖÖ·½Ê½,µ«ÕâÊÇÁÙʱÐÔµÄ,²»Êǽâ¾öÎÒÃÇÎÊÌâµÄºÃ·½·¨.
ÁíÍâ,ÔÚaspÖÐÓÐÒ»¶ÔÏóapplication,¿ÉÒÔ±£´æ¹«ÓõIJÎÊý,ÕâÒ²Ëãµã»º´æ,µ«ÔÚphp,ÎÒÖÁ½ñû¿´µ½¿ª·¢Õß²ú³öÕâÖÖ¶ÔÏó,µÄÈ·,û±ØÒª.asp.netµÄÒ³Ã滺´æ¼¼Êõ¾ÍÓõÄÊÇviewstate,¶øcache¾ÍÊÇÎļþ¹ØÁª,(²»Ò»¶¨×¼È·),Îļþ±»ÐÞ¸Ä,¸üлº´æ,Îļþû±»Ð޸ĶøÇÒ²»³¬Ê±(×¢ÊÍ1),¾Í¶ÁÈ¡»º´æ,·µ»Ø½á¹û,¾ÍÊÇÕâ¸ö˼·,¿´¿´Õâ¸öÔ´Âë:
ÏÂÃæÎÒ´ò¶ÏÕâ¸ö´úÂëÖðÐнâÊÍ.
Èý¡¢³ÌÐò͸Îö
Õâ¸ö»º´æÀà(ÀàûʲôºÃŵÄ.Çë¼ÌÐø¿´)Ãû³ÆÊÇcache,ÓÐ2¸öÊôÐÔ:
private $cache_dir;
private $expireTime=180;
$cache_dirÊÇ»º´æÎļþËù·ÅµÄÏà¶ÔÍøվĿ¼µÄ¸¸Ä¿Â¼, $expireTime(×¢ÊÍÒ»)ÊÇÎÒÃÇ»º´æµÄÊý¾Ý¹ýÆÚµÄʱ¼ä,Ö÷ÒªÊÇÕâ¸ö˼·:
µ±Êý¾Ý»òÕßÎļþ±»¼ÓÔصÄʱºò,ÏÈÅжϻº´æÎļþ´æÔÚ²»,·µ»Øfalse ,Îļþ×îºóÐÞ¸Äʱ¼äºÍ»º´æµÄʱ¼äºÍ±Èµ±Ç°Ê±¼ä´ó²»,´óµÄ»°ËµÃ÷»º´æ»¹Ã»µ½ÆÚ,СµÄ»°·µ»Øfalse,µ±·µ»ØfalseµÄʱºò,¶ÁȡԭʼÊý¾Ý,дÈ뻺´æÎļþÖÐ,·µ»ØÊý¾Ý.
½Ó×Å¿´³ÌÐò:
µ±ÀàµÚÒ»´Î±»ÊµÀýµÄʱºò¹¹ÔìĬÈϺ¯Êý´ø²ÎÊý»º´æÎļþÃû³Æ,ÈçÎļþ²»´æÔÚ,´´½¨Ò»¸öÓб༭ȨÏÞµÄÎļþ¼Ð,´´½¨Ê§°ÜµÄʱºòÅ׳öÒì³£.È»ºó°ÑcacheÀàµÄ $cache_dirÊôÐÔÉèÖÃΪÕâ¸öÎļþ¼ÐÃû³Æ,ÎÒÃǵÄËùÓлº´æÎļþ¶¼ÊÇÔÚÕâ¸öÎļþ¼ÐÏÂÃæµÄ.
ÕâÊÇclassÀàµÄÎö¹¹º¯Êý,ΪÁËÑÝʾ,ÎÒÃÇÊä³öÒ»¸ö×Ö·û´®±íʾÎÒÃÇÊÍ·ÅcacheÀà×ÊÔ´³É¹¦.
Õâ¸ö·½·¨Êä³ö´íÎóÐÅÏ¢.
Õâ¸ö·½·¨·µ»Øµ±Ç°urlµÄÐÅÏ¢,ÕâÊÇÎÒ¿´¹úÍâºÜ¶àÈ˵ÄcmsϵͳÕâÑù×ö,Ö÷ÒªÊÇ»º´æx.php?page=1,x.php?page=2,µÈÕâÖÖÎļþµÄ,ÕâÀ


Ïà¹ØÎĵµ£º

php µÄ ajax ʵÏÖ

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<input type="button" onclick="test();" value="Ìá½»"/>
<script type="text/javascript">
    function test(){
            var valid = {
& ......

php²Ù×÷word

<?

//
½¨Á¢Ò»¸öÖ¸ÏòÐÂCOM×é¼þµÄË÷Òý
$word

=

new
COM(”word
.
application”) or
die
(”Can
'
t start Word!”);
// ÏÔʾĿǰÕýÔÚʹÓõÄWordµÄ°æ±¾ºÅ
//echo “Loading Word, v. {$word->Version}<br>”;
// °ÑËüµÄ¿É¼ûÐÔÉèÖÃΪ0£¨¼Ù£©£¬Èç¹ûÒ ......

°²×°image magicµÄphpÀ©Õ¹(Extension) Imagick

  ÔÚwindowsÏ°²×°image magic µÄphpÀ©Õ¹ imagick, Ê×ÏÈÐèÒªÏÂÔØphp_imagick.dllÎļþ.Õâ¸ödllÎļþ·Ç³£¹Ø¼ü.
Èç¹ûÏÂÔØÁË´íÎóµÄphp_imagick.dll.°²×°¾Í»áʧ°Ü.ÎÒ¾ÍÊÇÏÂÔØÁËN¸öÕâÑùµÄdllÎļþ¶¼Î´ÄÜ°²×°³É¹¦.×îºóÖÕÓÚ¸øÎÒÕÒµ½ÕýÈ·µÄdllÎļþÁË
ÏÂÔصØÖ·:http://valokuva.org/outside-blog-content/imagick-windows-builds ......

phpÖмÆËãʱ¼ä²îµÄ¼¸ÖÖ·½·¨

ÔÚphpÖмÆËãʱ¼ä²îÓÐʱºòÊǼþÂé·³µÄÊÂ!²»¹ýÖ»ÒªÄãÕÆÎÕÁËÈÕÆÚʱ¼äº¯ÊýµÄÓ÷¨ÄÇÕâЩҲ¾Í±äµÄ¼òµ¥ÁË:  
Ò»¸ö¼òµ¥µÄÀý×Ó¾ÍÊǼÆËã½èÊéµÄÌìÊý,ÕâÐèÒªphp¸ù¾ÝÿÌìµÄÈÕÆÚ½øÐмÆËã,ÏÂÃæ¾ÍÀ´Ì¸Ì¸ÊµÏÖÕâÖÖÈÕÆÚ¼ÆËãµÄ¼¸ÖÖ·½·¨:
(1) Èç¹ûÓÐÊý¾Ý¿â¾ÍºÜÈÝÒ×ÁË!ÈôÊÇMSSQL¿ÉÒÔʹÓô¥·¢Æ÷!ÓÃרÃżÆËãÈÕÆÚ²îµÄº¯Êýdatediff()±ã¿É ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ