Home >Backend Development >PHP Tutorial >iphone call firewall PHP ASP firewall

iphone call firewall PHP ASP firewall

WBOY
WBOYOriginal
2016-07-29 08:33:341193browse

  $ASPservername : This variable must have an IP in
                                                                                                                 ASP file path on the server side.
$ASPfile : ASP file name
$ASPurlredirect: $ASP file parameters.
//Set variables
$ASPservername = "WEB_SQLSERVER";
$ASPport = 80;
$ASPpath = "/development/sqlserver/";
$ASPfile = "storedprocs.asp?";
$ASPurlredirect = "clienthostpage=".strstr($SCRIPT_NAME, "/");
//Connect to IIS/ASP server
$fp=fsockopen($ASPservername, $ASPport, &$errno, &$errstr);
if ($ FP) {/// Get mode to the server
$ srequest = "get". $ asppath. $ aspfile;
$ sprotocol = "http/1.0 nn"; {
         $httpget=$sRequest.$ASPurlredirect.$sProtocol;
                                                                                                                                                                                                                                  $httpget               $ASPurlredirect.
         fputs($fp, $httpget);
                                                                                                                                                                                                                                                       . echo $line;
          } else { 
                                                                                                                                                                                                                                                                 
                                                                                                                                         ($fp);
} else {
echo "$errstr ($errno)
n";
}
?>

The above introduces the iphone call firewall and PHP's ASP firewall, including the iphone call firewall. I hope it will be helpful to friends who are interested in PHP tutorials.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn