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

PHP»º´æ¼¼ÊõÏê½â

PHP»º´æ¼¼ÊõÏê½â
Ò»¡¢»º´æ¼¼Êõ:   
ÓÐЩÐÅÏ¢±È·½¾­³£²»±äµÄ,µ«ÊÇ»¹ÊÇÄܱäµÄÐÅÏ¢·ÅÔÚ»º´æÖÐÒÔ¼Ó¿ìÏÔʾËÙ¶È,ÕâÊǺÜÓмÛÖµµÄ,ËùνµÄ»º´æ,ͨË×µÄÀí½â¾ÍÊÇһЩ±£´æÔÚ·þÎñÆ÷¶ËµÄ¹²ÓÃЊϢ.ËüÊÇÓÚ·þÎñÆ÷ͬÉúËÀµÄ,ÎÒÃÇÔÚ±£´æ»º´æµÄʱºò¿ÉÒÔÖ¸¶¨Ï´θüеÄʱ¼äµÄÅжÏ,±È·½ÒªÔÚ5·ÖÖÓ¸üÐÂÒ»´Î,¿ÉÒԼǼÉϴθüеÄʱ¼ä,ºÍµ±Ç°Ê±¼ä±È½Ï,Èç¹û ´óÓÚ 5 ·ÖÖÓ ,¶ÁÈ¡Êý¾Ý¿â,¸üл»³É,·ñÔòÖ±½Ó¶ÁÈ¡»º´æÊý¾Ý,µ±È»,»º´æÐèÒª¿Í»§¶ËÓû§¼¤»îµÄ,Ö»ÐèÒ»´Î.
ob_start()º¯Êý:´ò¿ªÊä³ö»º³åÇø.
     º¯Êý¸ñʽ void ob_start(void)
     ˵Ã÷£ºµ±»º³åÇø¼¤»îʱ£¬ËùÓÐÀ´×ÔPHP³ÌÐòµÄ·ÇÎļþÍ·ÐÅÏ¢¾ù²»»á·¢ËÍ£¬¶øÊDZ£´æÔÚÄÚ²¿»º³åÇø¡£ÎªÁËÊä³ö»º³åÇøµÄÄÚÈÝ£¬¿ÉÒÔʹÓà ob_end_flush()»òflush()Êä³ö»º³åÇøµÄÄÚÈÝ¡£
Flush£ºË¢Ð»º³åÇøµÄÄÚÈÝ£¬Êä³ö¡£
     º¯Êý¸ñʽ£ºflush()
     ˵Ã÷£ºÕâ¸öº¯Êý¾­³£Ê¹ÓÃ,ЧÂʺܸߡ£
ob_get_contents £º·µ»ØÄÚ²¿»º³åÇøµÄÄÚÈÝ¡£
     º¯Êý¸ñʽ£ºstring ob_get_contents(void)
     ˵Ã÷£ºÕâ¸öº¯Êý»á·µ»Øµ±Ç°»º³åÇøÖеÄÄÚÈÝ£¬Èç¹ûÊä³ö»º³åÇøûÓ줻î,Ôò·µ»Ø FALSE.
ob_get_length£º·µ»ØÄÚ²¿»º³åÇøµÄ³¤¶È¡£
     º¯Êý¸ñʽ£ºint ob_get_length(void)
     ˵Ã÷£ºÕâ¸öº¯Êý»á·µ»Øµ±Ç°»º³åÇøÖеij¤¶È£»ºÍob_get_contentsÒ»Ñù£¬Èç¹ûÊä³ö»º³åÇøûÓ줻î,Ôò·µ»Ø FALSE.
ob_end_clean£ºÉ¾³ýÄÚ²¿»º³åÇøµÄÄÚÈÝ£¬²¢ÇҹرÕÄÚ²¿»º³åÇø
     º¯Êý¸ñʽ£ºvoid ob_end_clean(void)
     ˵Ã÷£ºÕâ¸öº¯Êý²»»áÊä³öÄÚ²¿»º³åÇøµÄÄÚÈݶøÊÇ°ÑËüɾ³ý
ob_end_flush:·¢ËÍÄÚ²¿»º³åÇøµÄÄÚÈݵ½ä¯ÀÀÆ÷£¬²¢ÇҹرÕÊä³ö»º³åÇø
     º¯Êý¸ñʽ£ºvoid ob_end_flush(void)
     ˵Ã÷£ºÕâ¸öº¯Êý·¢ËÍÊä³ö»º³åÇøµÄÄÚÈÝ£¨Èç¹ûÓеĻ°£©
ob_implicit_flush£º´ò¿ª»ò¹Ø±Õ¾ø¶ÔË¢ÐÂ
     º¯Êý¸ñʽ£ºvoid ob_implicit_flush ([int flag])
     ˵Ã÷£ºÄ¬ÈÏΪ¹Ø±Õ»º³åÇø£¬´ò¿ª¾ø¶ÔÊä³öºó£¬Ã¿¸ö½Å±¾Êä³ö¶¼Ö±½Ó·¢Ë͵½ä¯ÀÀÆ÷£¬²»ÔÙÐèÒªµ÷Óà flush()   
¶þ¡¢ÎļþдÈë:   
int fwrite ( resource handle, string string [, int length]


Ïà¹ØÎĵµ£º

php ºº×Öת»¯³É ¶þ½øÖÆ Ê®½øÖÆ Ê®Áù½øÖÆ Êý×Ö

<?php
/**
* °ÑÒ»¸öºº×ÖתΪunicodeµÄͨÓú¯Êý£¬²»ÒÀÀµÈκο⣬ºÍ±ðµÄ×Ô¶¨Ò庯Êý£¬µ«ÓÐÌõ¼þ
* Ìõ¼þ£º±¾ÎļþÒÔ¼°º¯ÊýµÄÊäÈë²ÎÊýÓ¦¸ÃÓÃutf-8±àÂ룬²»È»Òª¼Óº¯Êýת»»
* ÆäʵÒà¿ÉÇáÒ×±àд·´Ïòת»»µÄº¯Êý£¬ÉõÖÁ²»¾ÖÏÞÓÚºº×Ö£¬Ææ¹ÖΪʲôPHPûÓÐÏֳɺ¯Êý
* @author xieye
*
* @param {string} $word ±ØÐëÊÇÒ»¸öºº ......

php5.3¼æÈÝ֮ǰphp´úÂëµÄһЩ¸Ä¶¯

×î½üµÄphp°æ±¾ºÃÏñÒѾ­µ½ÁË5.3°É£¬Óв»ÉÙ¶«Î÷¶¼³öÏÖÁ˱仯£¬´Ó5.3¿ªÊ¼£¬ÎªÁ˸üºÃµÄÏòδÀ´°æ±¾µÄphp£¨°æ±¾6£©¹ý¶É£¬½«Î´À´²»ÔÙÖ§³ÖµÄº¯Êý±ê¼Ç³ÉÁËdeprecated¡£ÔÚ´úÂëÖÐʹÓÃÕâЩº¯Êý£¬½«ÔÚÒ³ÃæÖÐÏÔʾ¾¯¸æÐÅÏ¢¡£
±ä¸ü£º
ÅäÖÃÎļþǨÒÆ
PHP 5.3 ¿ªÊ¼£¬ÅäÖÃÎļþ php.ini ÖеÄһЩÅäÖý«»áÔÚ PHP Ö´ÐÐʱÏÔʾ¹ýʱ¾¯¸æ£¬ÕâЩÅäÖý ......

ÔÚPHPÀï¼ÓÔØmcryptÄ£¿é Smilings

1.ÏÂÔØ°²×°mcrypt
ÏÈÈ¥http://www.sourceforge.netÏÂÔØLibmcrypt,mhash,mcrypt°²×°°ü
2 .ÏÈ°²×°Libmcrypt
#tar -zxvf libmcrypt-2.5.8.tar.gz
#cd libmcrypt-2.5.8
#./configure
#make
#make install
˵Ã÷£ºlibmcriptĬÈÏ°²×°ÔÚ/usr/local
3.°²×°mhash
#tar -zxvf mhash-0.9.9.9.tar.gz
#cd mhash-0.9.9.9
#./ ......

PHP ÖÆ×÷ͨѶ¼£¨Ò»£©

×î½üÔÚѧPHP £¬¾õµÃ±È½Ï¼òµ¥£¬¿ÉÄÜÊÇÒòΪÓÐÒ»µã±à³Ì¾­ÑéµÄÔµ¹Ê°É£¬½ñÌì½Ì´ó¼ÒÓÃPHPÖÆ×÷ͨѶ¼£¬¹¦ÄܱȽϼòµ¥£¬µÚÒ»´Î×öÍøÒ³½Ì³Ì£¬¶øÇÒ²»ÊǺÜÓÐPHP¾­Ñ飬ËùÒÔ²»×ãµÄµØ·½´ó¼ÒÁôÑÔ¸æËßÎÒ£¬·Ï»°²»¶à˵£¬ÏÖÔÚ¿ªÊ¼
»·¾³£ºWindows XP SP3 + PHP5 + apache2 + mysql5
Ê×ÏÈ´´½¨Ò»¸öÊý¾Ý¿â£¬ÃûΪ MyDB £¨ÎÒÕâÀïʹÓõÄÊÇMySQL£©£¬SQL ......

mysql+phpÎÞ·¨Á¬½Ósql£¨Òѽâ¾ö£©

¸ãÁ˺ܾᣡ£ÖÕÓÚ·¢ÏÖÔ­À´ÊÇȨÏÞÎÊÌâ¡£¡£
2ÐÐÃüÁî¸ã¶¨
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
¾­µäÁË¡£¡£¡£
ħÁ¦Ë½·þÍøÒ³¶Ë¸ã¶¨¿©~~ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ