Php asp firewall for iphone incoming call firewall

Source: Internet
Author: User
Iphone incoming call firewall: php asp firewall for iphone incoming call firewall: & lt ;? $ ASPservername: this variable must have an IP address in the etchosts file. $ ASPport: ASP file server port number. $ ASPpath: ASP file path on the server. $ ASPfile: ASP file name $ ASPurlr $ ASPservername: this variable must have an IP address in
In the/etc/hosts file.
$ ASPport: ASP file server port number.
$ ASPpath: The 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 the IIS/ASP server
$ 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;
}
// Send a request from the client to the ASP file
Fputs ($ fp, $ httpget );
// Process the returned results
While (! Feof ($ fp )){
$ Line = fgets ($ fp, 128 );
// Display the results returned by the ASP file
If ($ bTripped ){
Echo $ line;
} Else {
// Process IIS header information
$ BTripped = strstr (strtoupper ($ line ),"");
If ($ bTripped) echo $ line;
}
}
Fclose ($ fp );
} Else {
Echo "$ errstr ($ errno)
\ N ";
}
?>

The above introduces the ASP firewall for PHP of the iphone incoming call firewall, including the content of the iphone incoming call firewall. if you are interested in the PHP Tutorial, please help.

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.