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ÖеÄ×Ö·û´®²Ù×÷¹¦ÄÜÊDZȽ϶àµÄ,ÖØÒªµÄÓÐÒÔÏÂÕâЩ:
¡¡¡¡(1)echo,print,printf,sprintf
¡¡¡¡Ç°Á½¸öº¯ÊýÊÇÊä³ö×Ö·û´®.×Ö·û´®ÖÐÈç¹ûÓбäÁ¿ÃûÔò±»Ìæ»»³ÉÆäÖµ. ºóÁ½¸öº¯ÊýÀàËÆÓÚCµÄͬÃûº¯Êý.
¡¡¡¡(2)strchr,strlen,strtok,strrchr,strrev,strstr,strtolower, strtoupper,substr,ucfirst
¡¡¡¡ÕâЩÊdz£ÓõÄ×Ö·û´®²Ù×÷º¯Êý, ......
¼¸ÌìûÓиüеÄblogÕâÁ½ÌìÔÚд¸öС¶«Î÷ÍæÍæ
ÏÖÔÚÊÇ»ù±¾ÄÜÓÃÁË
×î½üûʲôÊÂ×ö£¬¾ÍÏëµ½Á˲鿴·þÎñ¶ËĿ¼µÄС³ÌÐòÍæÍæ
ÏÖÔڲ鿴ÒѾдÍêÁË·¢ÉÏÀ´¸ø´ó¼Ò¿´¿´
demoµØÖ·
http://www.web-jia.com/demo/folder/demo.html
ÎÒ·ÖÏíµÄ´úÂ뻶Ӵó¼ÒÀ´ÏÂÔØ°¡
ÏÂÔØ¿ÉÒÔµ½
http://www.web-jia.com/viewthread.php?tid=2832&ext ......
ÓÐÖÖ˵·¨£ºPHPÊÇ×î¼òµ¥µÄÍøÕ¾¿ª·¢ÓïÑÔ£¬ÕâÖÖ¹ÛµãÊÇ´íµÄ¡£
ľͷ±È»ýľ¼òµ¥£¬µ«Ä¾½³ºÍº¢×ӵIJî±ðÊÇľ½³ÄÜ°ÑľͷºÍ»ýľ¶¼±ä³É·¿×Ó£¬º¢×ÓÖ»ÄÜ°Ñ»ýľ±ä³É·¿×Ó£¬¶ÔÓÚľͷËûÃÇÖ»ÄÜÔÚÉÏÃ滸ö·¿×Ó¶øÒÑ¡£
PHP¾ÍÏñľͷ£¬²ËÄñÖ»ÄÜÓÃËü×öµã¼òµ¥µÄÊÂÇ飬¸ßÊ־ͻá°ÑËü±ä³ÉÎÞËù²»ÄÜ¡£
¼ÈÈ»PHP¼òµ¥ÓÖÊǸßÊÖìÅÒ«µÄ¶«Î÷£¬ÄÇÔõôѧ²ÅÄܱä³É¸ ......
¸ãÁ˺ܾᣡ£ÖÕÓÚ·¢ÏÖÔÀ´ÊÇȨÏÞÎÊÌâ¡£¡£
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
¾µäÁË¡£¡£¡£
ħÁ¦Ë½·þÍøÒ³¶Ë¸ã¶¨¿©~~ ......