eebahoo
30-05-2009, 08:51
That's wicked - thanks for the info!
$handle = fopen('http://213.27.137.219:8080/SMSGateway/SmsGateway2Listener', 'r');
if ($handle)
{
while (!feof($handle))
{
echo fgets($handle);
}
}
else
{
echo 'the rps/firewall is at fault';
}
?>
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, 'http://213.27.137.219/SMSGateway/SmsGateway2Listener' );
curl_setopt( $ch, CURLOPT_PORT, 8080 );
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 5 );
if ( FALSE === curl_exec( $ch ) ) echo curl_error( $ch );