PDA

View Full Version : php file wont work on bluehost yet will on my vps


debz
02-18-2008, 12:21 PM
Hi ive got a php script to show shoutcast info but when i run it on my bluehost server i get this error

Warning: fsockopen() [function.fsockopen]: unable to connect to swu.internet-radio.org.uk:11608 (Connection timed out) in /home/mrthrze1/public_html/mydomain.net/radio_stats.php on line 16
swu radio is Offline

ive ran this file from my vps server and it works fine, any ideas why this doesnt work on blue host?

cheers

fwerginz
02-18-2008, 01:22 PM
My guess is that the port 11608 is being blocked. Possibly on the outbound side (from Bluehost to swu.internet-radio.org.uk).

You might want to contact Bluehost support and ask if you can connect to that port from the Bluehost server.

areidmtm
02-18-2008, 03:03 PM
You'll have to get a dedicated IP address to open up ports. It's $30/year. Contact bluehost support.

debz
02-20-2008, 04:11 AM
ok ive spoke to blue host, i now have a dedicated IP address.

i transferd the fully working code to my bluehost server and now i get this error message, any one make head or tail from this?





Warning: include(config_radio.php) [function.include]: failed to open stream: No such file or directory in /home/mrthrze1/public_html/southwestunderground.net/forum/cache/tpl_acidtechgreen_overall_header.html.php on line 210

Warning: include() [function.include]: Failed opening 'config_radio.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mrthrze1/public_html/southwestunderground.net/forum/cache/tpl_acidtechgreen_overall_header.html.php on line 210

Warning: fsockopen() [function.fsockopen]: unable to connect to :0 (Failed to parse address "") in /home/mrthrze1/public_html/southwestunderground.net/forum/cache/tpl_acidtechgreen_overall_header.html.php on line 212

Basil
02-20-2008, 04:17 AM
Include failed because it can't find config_radio.php.

debz
02-20-2008, 04:36 AM
eddit: random has just started working!?!?>!?!

Basil
02-20-2008, 05:07 AM
I should mention that the file's permissions keep changing, and the server keeps trying to compensate for it.

Dangerously writable: [/home/mrthrze1/public_html/southwestunderground.net/forum/cache/tpl_acidtechgreen_overall_header.html.php]

The server automatically fixes this by changing the permissions, but something else must keep changing it back because it is happening repeatedly.

(This is from accessing the file directly)