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
Ïà¹ØÎĵµ£º
»º³å²ã¼¶±ðµÄÓÅ»¯
xCacheÊÇ°Ñ PHP ²Ù×÷Â뻺´æµ½ÄÚ´æÖÐµÄ PHP À©Õ¹ÖУ¬XCache ½«±ÜÃâ´ú¼Û¸ß°ºÇÒ²»±ØÒªµÄ»¨·ÑÀ´ÖØÐ±àÒëÏàͬµÄ PHP ´úÂëÈ¥½»¸¶Ò»¸öÒ³Ãæ£¬ÕâÒ»µãÉϺÍAcceleratorÓеãÏàËÆ£¬ÎÒÒ»Ö±ÈÏΪËûÃǵĻúÀíÊÇÒ»ÑùµÄ£¬²»¹ýxCahceÊÇ¿ªÔ´²úÆ·[opensource].
Zend Accelerator Õ¾ÔÚ½âÎöºÍÖ´ÐеÄÖм䣬µ±Ò³ÃæµÚÒ»´Î±»ÇëÇóʱ£¬Z ......
ÓÃPOSTÀ´´«Öµ£¬ÔÚÁíÍâÒ»¸öÒ³Ãæ½ÓÊÕ²ÎÊýÓÃ$_POST["²ÎÊýÃû"]
ÓÃGETÀ´´«Öµ£¬ÓÃ$_GET["²ÎÊýÃû"]À´½ÓÊÕ²ÎÊý¡£
¾ÙÀý³ÌÐò£º
<form action="action.php" method="POST">
POSTÓëGET´«ÖµµÄÇø±ð£º
Post´«ÊäÊý¾Ýʱ£¬²»ÐèÒªÔÚURLÖÐÏÔʾ³öÀ´£¬¶øGet·½·¨ÒªÔÚURLÖÐÏÔʾ¡£
Post´«ÊäµÄÊý¾ÝÁ¿´ó£¬¿ÉÒÔ´ïµ½2M£¬¶øGet·½·¨ÓÉÓÚÊÜ ......
ÕæµÄÊDz»Óò»ÖªµÀ£¬ÆäʵÎÒÃÇÊìϤµÄ PHP »¹ÓкܶàºÃ¶«Î÷ûÓз¢¾ò¡£¿´
µ½ÕâÆªÎÄÕÂ
£¬µ±Ê±¾ÍÀá±¼Á˺ü¸»Ø£¬ÖصãÍÆ¼öÏ£¬Ë³±ãÎÒ×Ô¼ºÒ²×ö¸öÕûÀí¡£
sys_getloadavg()
Õâ¸öº¯Êý
·µ»Øµ±Ç°ÏµÍ³µÄ¸ºÔؾùÖµÐÅÏ¢
£¨µ±È» Windows
ϲ»ÊÊÓã©£¬ÏêϸÎĵµ¿ÉÒÔ·ÔÄ PHP µÄÏà¹ØÎĵµ¡£ÎĵµÖÐÓжÎʾÀý´úÂ룬»ù±¾ÉÏÒ²¾ÍÄÜ¿´³öËüµÄÓÃ;ÁË¡ ......
·ÖÎöÍøÕ¾½á¹¹
¼ÈÈ»ÎÒÃÇÒѾ°²×° CI £¬ÎÒÃÇ¿ªÊ¼Á˽âËüÈçºÎ¹¤×÷¡£
¶ÁÕßÒѾ֪µÀ CI ʵÏÖÁËMVCʽÑù¡£ ͨ¹ý¶ÔĿ¼ºÍÎļþµÄÄÚÈݽøÐзÖÀà, ¶ø²»ÊÇÈôúÂë´ó¿é´ó¿éµØ¾À¼¯ÔÚÒ»Æð¡£
ÕâÒ»Õ£¬ÎÒÃǽ«»á¶Ô MVC ÀíÂÛ×ö¸ö¼ò¶ÌµÄ½éÉÜ, È»ºóÔÙ½éÉÜ CI µÄMVCʵÏÖ·½Ê½¡£ÌØ±ðµØ£¬ÒªÁ˽âÄÇЩĿ¼ºÍÎļþÈçºÎ»¥Ïཻ»»ÐÅÏ¢£¿ÍøÕ¾½á¹¹ÊÇÔõÑùµÄ£¿ÒÔ ......
<?
//------------------------
// PHPÄÚÖÃ×Ö·û´®º¯ÊýʵÏÖ
//------------------------
//×Ö·û´®³¤¶È
function strlen ($str)   ......