if(!empty($urls["port"])){
$this->m_port = $urls["port"];
}
if(!empty($urls["path"])) $this->m_path = $urls["path"];
$this->m_urlpath = $this->m_path;
if(!empty($urls["query"]))
{
$this->m_query = $urls["query"];
$this->m_urlpath .= “?”.$this->m_query;
}
}
}
//打开指定网址
function OpenUrl($url)
{
//重设各参数
$this->m_url = “”;
$this->m_urlpath = “”;
$this->m_scheme = “http”;
$this->m_host = “”;
$this->m_port = “80 ;
″
$this->m_user = “”;
$this->m_pass = “”;
$this->m_path = “/”;
$this->m_query = “”;
$this->m_error = “”;
$this->m_httphead = “” ;
$this->m_html = “”;
$this->Close();
//初始化系统
$this->PrivateInit($url);
$this->PrivateStartSession();
}
//获得某操作错误的原因
function printError()
{
echo “
”
错误信息: .$this->m_error;
echo “具体返回头:<br>”;
foreach($this->m_httphead as $k=>$v)
{