$ASPservername : 此變項必須有IP在
$ASPport : ASP且檔案伺服器連接埠號碼.
$ASPpath : 伺服器端的ASP檔案路徑.
$ASPfile : ASP且檔名
/設定變數
$ASPservername = "WEB_SQLSERVER";
$ASPport = "storedprocs.asp?";
$ASPurlredirect = "clienthostpage=". strstr($SCRIPT_NAME, "/");
//連接IIS/ASP伺服器
$fp=fsockopen($ASPservername, $ASPport, &$ 🎜> if($fp) {
//GET模式至伺服器
$sRequest = "GET ".$ASP.$ASPfile;
if (!strlen(chop($QUERY_STRING))){
$httpget=$ $httpget=$sRequest.$QUERY_STRING.$sProtocol ;
}
//從客戶端送要求到ASP檔案
> while(! feof($fp)) {
$line=fgets($fp,128);
🎜> echo $line;
} else {
//1中IIS, ;
if ($bTripped) echo $line;
}
}
fclose($fp);
}
?>
http://www.bkjia.com/PHPjc/315914.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/315914.html
TechArticle
? $ASPservername:此變數必須有IP在/etc/hosts檔案內. $ASPport:ASP檔案伺服器連接埠號碼. $ASPpath:在伺服器端的ASP檔案路徑. $ASPfile:ASP檔名$ASPurlredirect...