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 st
Ïà¹ØÎĵµ£º
<?php
// ½«Êý×éת»»³ÉJson¸ñʽ£¬ÖÐÎÄÐèÒª½øÐÐURL±àÂë´¦Àí
function Array2Json($array) {
arrayRecursive($array, 'urlencode', true);
$json = json_encode($array);
$json = urldecode($json);
// extÐèÒª²»´øÒýºÅµÄboolÀàÐÍ
&n ......
¸ÚλְÔð
»¥ÁªÍøÏà¹Ø²úÆ·¿ª·¢£¬ÏîÄ¿¿ª·¢£¬ÏµÍ³Î¬»¤µÈ
ÈÎÖ°ÒªÇó
1. ¾«Í¨PHP¿ª·¢ÓïÑÔ£¬ÊìϤÃæÏò¶ÔÏóµÄÈí¼þÉè¼Æ·½·¨£»
2. ÊìϤUnix/Linux²Ù×÷ϵͳ£¬ÊìϤC/C++±à³Ì£¬ÊìϤShell½Å±¾±à³Ì¼°³£ÓÃUnix¹ÜÀíÃü
ÁÊìϤbash/python/perl£»
3. ÊìϤHTTPÐÒé¼°W3CÏà¹Ø»¥ÁªÍø¹æ·¶£¬ÊìÁ·ÕÆÎÕXHTML¡¢CSS¡¢ ......
¸öÈ˱ȼÛÈÏ¿É£¬ÏÖÔÚÊÇÓà netbean 6.8 ¹Ù·½Ìṩ²å¼þºÜÆëÈ«¡£
http://www.ibm.com/developerworks/cn/opensource/os-php-ide/
http://www.pusuo.net/2009-09-19/110884581.html
ÔÙÓбȽϹØ×¢vs 2010µÄÕýʽ°æ£¬ÏëÒªºÍvs.net£¬ÔÀ´ÊÇ°²×°ÔÚvs2008 ÒÔÉÏ°æ±¾µÄ£¬ÏÖÔÚ²»ÖªµÀÊDz»ÊÇ¿ÉÒÔÕûºÏµ½vs 2010
Èç¹û¿ÉÒÔÕûºÏµÄ»°£¬ÄÇôΠ......
×î½üÒ»ÄêÀ´Ò»Ö±ÔÚʹÓÃfedora£¬·¢ÏÖlinuxÕæÊÇÌ«ÊʺÏÎÒÁË£¬Ï²»¶Ð´³ÌÐò£¬×Ô¼ºÏ¹µ¹ÌÚ£¬°¦windowsÎóÎÒ´óºÃÄ껪……
ÓÃPHPдÁËÒ»¶Î³ÌÐòÓÃÓÚÌáÈ¡ÍøÒ³ÖеÄÊý¾Ý£¬ÏàÐÅËÑË÷ÒýÇæÒ²ÊDz¶àµÄÏë·¨£¬Ö»²»¹ýËûÃÇÊý¾Ý¶à£¬Ëã·¨ºÃЩ£¬ºÇºÇ
[php]
<?php
/*
*´ËÎļþµÄÄ¿±êÊÇ×Ô¶¯ËѼ¯´æ´¢8684ÉϵÄÉîÛÚÊй«½»Êý¾Ý
*
*ÓÉ ......
phpÓʼþ¶ÁÈ¡£º
³ÌÐò¿ª·¢µÄ˼·£ºmailÎļþ£ºÏÈÁ¬½Óµ½pop3£¬¶ÁÈ¡Óû§µÄÓʼþÁÐ±í£¬ÅжÏÓʼþÊÇ·ñ¶ÁÈ¡¹ý£¬Èç¹ûû¶ÁÈ¡¹ý¾Í°ÑÓʼþ¼Óµ½ÖÐתµÄÊý¾Ý¿âÖС£get_mail£¨£©º¯Êý£¬¶ÁÈ¡Êý¾Ý¿âÖеÄÓʼþÁÐ±í£¬¶ÁÍêºó¶ÔÊý¾Ý¿â½øÐÐÇå³ý¡£ÒÔ±ãÄÜÒ»Ö±¶ÁÈ¡µÄ¶¼ÊÇеÄÓʼþ¡£
´úÂë³ÌÐò£ºmailÎļþ£º
header("content-type:text/html; charset=utf-8 ......