iphone call firewall php ASP Firewall

Source: Internet
Author: User
$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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.