PDA

View Full Version : Warning: fsockopen()



DJDream
12-27-2006, 10:55 AM
OK, here is my problem. I am an internet radio dj/owner and I'm tryin to get some stats thing to work for my station. well i upload it to the site, load it, and all i get is: Warning: fsockopen() [function.fsockopen]: unable to connect to 72.236.163.72:8675 in /home/jadedkis/public_html/radio_stats.php on line 16
Jaded Kiss Radio is Offline
What does this mean and how do i fix this?
ty for all ur help.

adam-s
12-27-2006, 11:04 AM
Hello. Check http://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&root=17&id=174

Unless this is out of date it may be what is tripping your script up.

DJDream
12-27-2006, 11:19 AM
ummm, see I am really new to php and ports (just starting to learn). :fsockopen does work for connecting to any url that is on port 80. If its using another port it won't work. We have a firewall for our shared ip customers, so we can track banwidth effectively. If you need to connect to ports other than 80, then this requires you buy a dedicated ip from us, which costs an additional $30.00 per year. You can email support along with the last 4 digits of your on file credit card and request the dedicated ip, or give us a call at 888-401-4678.
does this mean i gotta pay more to get my stats on my station's site? Or is there something else I can do? here is the spot im workin on: http://www.jadedkissradio.com/Home_derrick1.htm

thaddius
12-27-2006, 12:39 PM
I have also seen it not work due to absolute links in fopen then just use relative links and it will work.

DJDream
12-27-2006, 01:18 PM
relative links? like i said, i am new to all this, lol. btw, i changed the page to http://www.jadedkissradio.com/Home2.htm