Warning: fsockopen() [function.fsockopen]: unable to connect to alertbox.in:80
(A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\wamp\www\pro\SendSMS.php on line 45
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\pro\SendSMS.php on line 45
Th code Used is:
Expand|Select|Wrap|Line Numbers
- $fp = fsockopen("alertbox.in", 80);
- if (!$fp)
- {
- echo "$errstr ($errno)<br />\n";
- }
- else
- {
- // $out = "GET / HTTP/1.1\r\n";
- // $out .= "Host: $host\r\n";
- // $out .= "Connection: Close\r\n\r\n";
- $out .=$host."?".$request."\r\n";
- echo $out;
- fwrite($fp, $out);
- while (!feof($fp))
- {
- echo fgets($fp, 128);
- }
- fclose($fp);
- }