I need a working radio script, asap, with my new site the one i have no longer fits my requirements, i have searched the forum and Google, nothing i can find seems to work
+Rep for all helpful answers
Printable View
I need a working radio script, asap, with my new site the one i have no longer fits my requirements, i have searched the forum and Google, nothing i can find seems to work
+Rep for all helpful answers
See if this works:
So the port need opening again? or? because i can DJ? +Rep :)
Sometimes web hosts filter outgoing connection from PHP scripts, contact your web host support and ask if there are any restrictions in effect.
is there another way to do it without doing that? Ive heard about exploding 7.HTML but i don't know how to go about it and would it actually work?
The trouble is the PHP script cannot connect to the shoutcast server status page at all because it's being restricted, so 7.html would face the same problem. I think also 7.html contains less info but can't remember what.
You could always find someone you trust and ask them to host the script for you.
Were would it be restricted from, my host of my shoutcast host?
No, your webhost is restricting PHP usage on your account, most likely blocking access to ports other than port 80.Quote:
Were would it be restricted from, my host of my shoutcast host?
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);
?>
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)
Either you've got the address / port wrong for your shoutcast host, or your php access is restricted ;)
Don't ask them if it's a PHP limitation. Ask them if they are blocking port (insert your port here).