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

php´úÀí·ÃÎÊ

×î½üÏëд¸öÈí¼þÍæÍæ£¬×¥È¡ÍøÒ³ÉϵÄÄÚÈÝ
×¥È¡ÍøÒ³ÄÚÈݵÄÎÒ·ÅÔÚÒ»¸öÎļþÖÐд³ÉÀàÁË
ÒÔÏÂÊÇ´úÂë
<?php
class myhttp
{
    var $_host;
    var $_url;
    var $_port;
    var $_errno;
    var $_errstr;
    var $_header;
    var $_body;
   
    function __construct($url)
    {
        if($url) setUrl($url);
    }
   
    function setUrl($url)
    {
        if(preg_match("{http://([^/]+)[:(\\d+)]?(.+)}",$url,$match))
        {
            $this->_host = $match[1];
            if(count($match) == 3)
            {
                $this->_port = 80;
                $this->_url = $match[2];
            }
            else
            {
                $this->_port = $match[2];
                $this->_url = $match[3];
            }
            $this->$_header = array();
            $this->$_body = "";
        }
        else
        {
          &nbs


Ïà¹ØÎĵµ£º

phpʵÏÖ¶àÏß³Ì


ת£ºhttp://blog.iyi.cn/start/
ÎÊÌ⣺
ÓÐûÓа취ÔÚphpÖÐʵÏÖ¶àÏß³ÌÄØ£¿
¼ÙÉèÄãÕýÔÚдһ¸ö»ùÓÚ¶ą̀·þÎñÆ÷µÄphpÓ¦Óã¬ÀíÏëµÄÇé¿öʱͬʱÏò¶ą̀·þÎñÆ÷·¢ËÍÇëÇ󣬶ø²»ÊÇһ̨½Óһ̨¡£
¿ÉÒÔʵÏÖÂð£¿
»Ø´ð£º
µ±ÓÐÈËÏëҪʵÏÖ²¢·¢¹¦ÄÜʱ£¬ËûÃÇͨ³£»áÏëµ½ÓÃfork»òÕßspawn threads£¬µ«Êǵ±ËûÃÇ·¢ÏÖphp²»Ö§³Ö¶àÏ̵߳Äʱºò£¬´ó ......

phpϵÄPOSTÓëGET

ÓÃPOSTÀ´´«Öµ£¬ÔÚÁíÍâÒ»¸öÒ³Ãæ½ÓÊÕ²ÎÊýÓÃ$_POST["²ÎÊýÃû"]
ÓÃGETÀ´´«Öµ£¬ÓÃ$_GET["²ÎÊýÃû"]À´½ÓÊÕ²ÎÊý¡£
¾ÙÀý³ÌÐò£º
<form action="action.php" method="POST">
POSTÓëGET´«ÖµµÄÇø±ð£º
Post´«ÊäÊý¾Ýʱ£¬²»ÐèÒªÔÚURLÖÐÏÔʾ³öÀ´£¬¶øGet·½·¨ÒªÔÚURLÖÐÏÔʾ¡£
Post´«ÊäµÄÊý¾ÝÁ¿´ó£¬¿ÉÒÔ´ïµ½2M£¬¶øGet·½·¨ÓÉÓÚÊÜ ......

һЩ±»ºöÊ PHP º¯Êý£¨ÕûÀí£©

ÕæµÄÊDz»Óò»ÖªµÀ£¬ÆäʵÎÒÃÇÊìϤµÄ PHP »¹ÓкܶàºÃ¶«Î÷ûÓз¢¾ò¡£¿´
µ½ÕâÆªÎÄÕÂ
£¬µ±Ê±¾ÍÀá±¼Á˺ü¸»Ø£¬ÖصãÍÆ¼öÏ£¬Ë³±ãÎÒ×Ô¼ºÒ²×ö¸öÕûÀí¡£
sys_getloadavg()
Õâ¸öº¯Êý
·µ»Øµ±Ç°ÏµÍ³µÄ¸ºÔؾùÖµÐÅÏ¢
£¨µ±È» Windows
ϲ»ÊÊÓã©£¬ÏêϸÎĵµ¿ÉÒÔ·­ÔÄ PHP µÄÏà¹ØÎĵµ¡£ÎĵµÖÐÓжÎʾÀý´úÂ룬»ù±¾ÉÏÒ²¾ÍÄÜ¿´³öËüµÄÓÃ;ÁË¡ ......

ÈçºÎͨ¹ýPHP½«excelµÄÊý¾Ýµ¼ÈëMySQLÖÐ

  ÈçºÎͨ¹ýPHP½«excelµÄÊý¾Ýµ¼ÈëMySQLÖÐ
    ÔÚ¿ª·¢PHP³ÌÐòʱ£¬ºÜ¶àʱºòÎÒÃÇ»áÓн«Êý¾ÝÅúÁ¿µ¼ÈëÊý¾Ý¿âµÄÐèÇó£¬ÈçѧÉúÐÅÏ¢ÅúÁ¿Ìí¼Óµ½Êý¾Ý¿âÖУ¬¶øÊÂÏÈÓÃexcel±àÅźã¬¶ÔexcelʵÐвÙ×÷£¬±ãÊÇÎÒÃDZȽϳ£ÓõÄÑ¡Ôñ·½Ê½¡£
     ÔÚ¶ÔexcelµÄ²Ù×÷ÖУ¬phpExcelReade±ãÊǺܶàÈ˵Ĺ²Í¬ ......

PHP×Ö·û´®¾­µäº¯Êý

<?    
//------------------------    
// PHPÄÚÖÃ×Ö·û´®º¯ÊýʵÏÖ     
//------------------------    
   
//×Ö·û´®³¤¶È    
function strlen ($str)     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ