var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
I'm tring to connect to SMS sites using fsockopen().
This is my code. The problem is that, it's working with PHP sites but, it's not working with ASP sites!
Does any one have an idea please.
$fldUsername = "";
$fldPassword = "";
$fldSender = "";
$fldNmb = urlencode($fldNmb);
$fldMsg = urlencode($fldMsg);
$fldLng = urlencode($fldLng);
$varQuery = "POST /page.asp HTTP/1.0\r\n";
$varQuery .= "Host: [url]www.Example.com\r\n[/url]";
$varQuery .= "Content-type: application/x-www-form-urlencoded\r\n";
$varQuery .= "Content-length: ".strlen($varPage)."\r\n\r\n";
$varQuery .= "$varPage\r\n";
$varQuery .= "\r\n";
$varConn = fsockopen("www.Example.com", 80);
$varResult = fread($varConn,1024);
$arrResult = explode("\n", $varResult);
echo "Can't connect!";
Could any one help me please...
What does it return so far?
It might be an idea to use GET instead of POST as it may be easier to use, personal experience, but would require the end SMS script to be changed also.
- A collection of my programmer thoughts
Erm, wtf are you trying to do there?
$varQuery .= "Host: <a href="http://www.Example.com\r\n" target="_blank">www.Example.com\r\n</a>";
that line must be as follows:
$varQuery .= "Host: Example.com\r\n";
echo $varResult ;
Just wondering what are you getting back. It must be something.
I'm getting back either the message has been sent or not.
The problem is: this is not working with asp sites?
Any idea please.