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µÄcURL¿ìËÙÈëÃÅ
Ó¢ÎÄÔÎÄ£ºhttp://net.tutsplus.com/tutorial ... for-mastering-curl/
ÔÎÄ×÷ÕߣºBurak
Guzel
cURL
ÊÇÒ»¸öÀûÓÃURLÓï·¨¹æ¶¨À´´«ÊäÎļþºÍÊý¾ÝµÄ¹¤¾ß£¬Ö§³ÖºÜ¶àÐÒ飬ÈçHTTP¡¢FTP¡¢TELNETµÈ¡£×îˬµÄÊÇ£¬PHPÒ²Ö§³Ö cURL
¿â¡£±¾ÎĽ«½éÉÜ cURL µÄһЩ¸ß¼¶ÌØÐÔ£¬ÒÔ¼°ÔÚPHPÖÐÈçºÎÔËÓÃËü¡ ......
ʵÀýÒ»£ºÎ޲εĴ洢¹ý³Ì
$conn = mysql_connect('localhost','root','root') or die ("Êý¾ÝÁ¬½Ó´íÎó!!!");
mysql_select_db('test',$conn);
$sql = "
create procedure myproce()
begin
INSERT INTO user (id, username, sex) VALUES (NULL, 's', '0');
end;
";
mysql_query($sql);//´´½¨Ò»¸ömyproceµÄ´æ´¢¹ý³Ì
......
<?PHP
$word = new COM("word.application") or die("Can't start Word!");
// print the version of Word that's now in use
echo "Loading Word, v. {$word->Version}";
// set the visibility of the application to 0 (false)
// to open the application in the forefront, use 1 (true)
$word->Visibl ......
ÈçºÎͨ¹ýPHP½«excelµÄÊý¾Ýµ¼ÈëMySQLÖÐ
ÔÚ¿ª·¢PHP³ÌÐòʱ£¬ºÜ¶àʱºòÎÒÃÇ»áÓн«Êý¾ÝÅúÁ¿µ¼ÈëÊý¾Ý¿âµÄÐèÇó£¬ÈçѧÉúÐÅÏ¢ÅúÁ¿Ìí¼Óµ½Êý¾Ý¿âÖУ¬¶øÊÂÏÈÓÃexcel±àÅźã¬¶ÔexcelʵÐвÙ×÷£¬±ãÊÇÎÒÃDZȽϳ£ÓõÄÑ¡Ôñ·½Ê½¡£
ÔÚ¶ÔexcelµÄ²Ù×÷ÖУ¬phpExcelReade±ãÊǺܶàÈ˵Ĺ²Í¬ ......
<?php
$a = 1;
function b(&$c)
{
$c++;
return $c;
}
$d=b($a); // d = 2; a = 2;
$d++; // d = 2;
echo($a); // ÏÔʾ2
?>
ÒýÓ÷µ»Ø:
<?php
$a = 1;
function &b(&$c)
{
$c++;
return $c;
}
$d=b($a); // ×¢ÒâÕâÀï dÓëb·µ»ØµÄÖµ(È·ÇÐÀ´Ëµ, ÕâÀï·µ»ØµÄ² ......