
Try this very simple socket connection test.
If it doesn't work, it's your host's fault (it's harder for them to deny when they see such a basic script =])
PHP Code:<?php
$host = ""; // Shoutcast server address
$port = ""; // Shoutcast server port
$fp = fsockopen($host,$port,$errno,$errstr,30);
if (!$fp) die("Error: $errstr ($errno)");
echo "Connection successful! :)";
fclose($fp);
?>
Last edited by Apolva; 22-07-2010 at 04:47 PM.
Warning: fsockopen() [function.fsopen]: unable to connect to *REMOVED*:8003 (Connection timed out) in /home/REMOVED/public_html/tunesfm/stats.php on line 5
Error: Connection timed out (110)
Last edited by Jack!; 22-07-2010 at 05:34 PM.
Either you've got the address / port wrong for your shoutcast host, or your php access is restricted![]()
Want to hide these adverts? Register an account for free!