$ASPservername: This variable must have IP in
/etc/hosts in the file.
$ASPport: ASP file Server port number.
$ASPpath: The ASP file path on the server side.
$ASPfile: ASP file name
$ASPurlredirect: $ASP file parameters.
Setting variables
$ASPservername = "Web_sqlserver";
$ASPport = 80;
$ASPpath = "/development/sqlserver/";
$ASPfile = "storedprocs.asp?";
$ASPurlredirect = "clienthostpage=". Strstr ($SCRIPT _name, "/");
Connecting iis/asp servers
$FP =fsockopen ($ASPservername, $ASPport, & $errno, & $errstr);
if ($fp) {
Get mode to Server
$sRequest = "GET". $ASPpath. $ASPfile;
$sProtocol = "http/1.0 \ n";
if (!strlen (Chop ($QUERY _string))) {
$httpget = $sRequest. $ASPurlredirect. $sProtocol;
} else {
$httpget = $sRequest. $QUERY _string. $sProtocol;
}
Sending requests from clients to ASP files
Fputs ($fp, $httpget);
Handling returned results
while (!feof ($fp)) {
$line =fgets ($FP, 128);
Show ASP file return results
if ($bTripped) {
Echo $line;
} else {
Handling IIS Header information
$bTripped =strstr (Strtoupper ($line), "");
if ($bTripped) echo $line;
}
}
Fclose ($FP);
} else {
echo "$errstr ($errno)
\ n ";
}
?>
The above describes the iphone call firewall PHP ASP firewall, including the iphone call firewall content, I hope the PHP tutorial interested in a friend helpful.