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.