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
Ïà¹ØÎĵµ£º
×÷ÕߣºMartin Streicher, Èí¼þ¿ª·¢ÈËÔ±, Pixel, Byte, and Comma
¾¡¹Ü±àдһ¸ö PHP À©Õ¹²¢²»ÊǺÜÀ§ÄÑ£¬¶ø SWIG µÄÈ·½øÒ»²½¼ò»¯ÁËÕâÏîÈÎÎñ£¬ÕâÖ÷ÒªÊÇÒòΪËü×Ô¶¯»¯Á˽áºÏ PHP Óë C »ò C++ ËùÐèµÄ¹¤×÷¡£Èô¸ø¶¨¶ÔÒ»¸öº¯ÊýµÄÃè»æ — º¯ÊýµÄÃû³Æ¼°ÆäÐβΠ— SWIG ¾Í»áÉú³ÉÒ»¸ö°ü×°³ÌÐòÀ´½« PHP ÓëµÍ²ã´úÂëÁ¬½ÓÆðÀ´¡£
......
Ò»¡¢ÏµÍ³Ô¼¶¨
¡¡¡¡»·¾³Èí¼þÏÂÔØºó´æ·ÅλÖãºX:\Server_Tools
¡¡¡¡»·¾³Èí¼þ°²×°Î»ÖãºX:\Server_Core
¡¡¡¡PHP°²×°Î»ÖãºX:\Server_Core\PHP
¡¡¡¡MySQL°²×°Î»ÖãºX:\Server_Core\MySQL
¡¡¡¡IISÍøÕ¾Õ¾µã¸ùĿ¼£ºX:\wwwroot
¡¡¡¡MySQL Êý¾Ý¿âλÖãºX:\Database
¡¡¡¡Php.ini´æ·ÅλÖãºX:\Windows\php.ini
¡¡¡¡My.ini ´æ· ......
ÓÉÓÚÏÖÔÚµÄä¯ÀÀÆ÷ÒѾ¿ÉÒÔʶ±ð¸ñʽΪtxtµÄÎĵµ¸ñʽ£¬ËùÒÔÈç¹ûÖ»ÊǸøtxtÎĵµ×öÒ»¸öÎÄ×ÖÁ´½ÓµÄ»°£¬¿ÉÄÜÖ»ÊÇ´ò¿ªÒ»¸öд°¿ÚÏÔʾtxtÎļþµÄÄÚÈÝ£¬²¢²»ÄÜʵÏÖµã»÷ÏÂÔØµÄÄ¿µÄ¡£We have to do something else.
µ±È»Õâ¸öÎÊÌâµÄ½â¾ö°ì·¨Ò²¿ÉÒÔÊÇÄ㽫ÄãµÄtxtÎļþ¸ÄÃûΪä¯ÀÀÆ÷²»ÈÏʶµÄÎļþ£¬±ÈÈçrar,ÕâÑùµÄ»°µã»÷£¬ ......
¶Ô CodeIgniter µÄ½éÉÜ
´ó¶àÊýPHPer¶¼Ïëд³öÔËÐÐ״̬Á¼ºÃµÄÓ¦ÓóÌÐò£¬¶øÇÒÏ£Íû¾¡¿ÉÄÜ×öµÃ¼òµ¥ÇÒ²»·ÑÊ¡£ÕâÆªÎÄÕÂÊÇÓÐ¹Ø CodeIgniterµÄ£¨ÒÔºó¼ò³ÆCI£©,CIÊÇÒ»¸ö´ï³ÉÉÏÃæÄ¿µÄµÄËùν¿ò¼Ü¡£
Èç¹ûÄãÖ»ÊÇÒª´ï³ÉÒ»¸ö×îÖյĽá¹û£¬¶ø°ÑÖмäËùÓеıàÂëϸ½ÚºÍ¸´ÔÓͳͳ¶ª¸øÒ»¸ö¿ò¼Ü£¬CIÊÇÄã×îºÃµÄÅóÓÑ¡£
CIÓкܶàÓŵ㣺Ãâ·Ñ, ÇáÁ¿¼¶, ......