Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fsockopen errors - Shoutcast Now Playing script
#11
[Solved]
Ohh, just create one in your public_html :) using notepad ++ or similar program.
[-] The following 1 user Likes GigaGreg's post:
  • NoelF1
#12
[Solved]
(04-27-2014, 10:21 AM)jaran Wrote: As I said before at above you had the error because "&" variable at line 16
Your script,
PHP Code:
$scfp fsockopen("$scip"$scport, &$errno, &$errstr30); 
It should be,
PHP Code:
$scfp fsockopen("$scip"$scport$errno$errstr30); 

Thanks a lot Jaran, seems like half of the problem is solved.

but now I still got the fsockopen error. I still can't find my php.ini anywhere and don't know how I am going to enable the thing. :/
I've done a phpinfo page though.
Code:
http://noelborg.com/testing/phpinfo.php

Code:
Warning: fsockopen(): unable to connect to free-shoutcast.com:18536 (Connection timed out) in /home/noelpro/public_html/testing/stats/radio_stats.php on line 16
NoelBorg.com // Radio is Offline

Code:
http://noelborg.com/testing/stats/radio_stats.php

(04-27-2014, 11:22 AM)igdesigner Wrote: Ohh, just create one in your public_html :) using notepad ++ or similar program.

Just created one.

added the following code only;

Code:
allow_url_fopen = On

Still ain't working Sad:sorry
#13
[Solved]
I have no idea then, wait for DJB or Un4saken Sad
#14
[Solved]
(04-27-2014, 11:53 AM)igdesigner Wrote: I have no idea then, wait for DJB or Un4saken Sad
Thanks for the help though ! :)

Hopefully either one of the techie's will help me fix it :)
#15
[Solved]
(04-27-2014, 11:27 AM)NoelF1 Wrote:
(04-27-2014, 10:21 AM)jaran Wrote: As I said before at above you had the error because "&" variable at line 16
Your script,
PHP Code:
$scfp fsockopen("$scip"$scport, &$errno, &$errstr30); 
It should be,
PHP Code:
$scfp fsockopen("$scip"$scport$errno$errstr30); 

Thanks a lot Jaran, seems like half of the problem is solved.

but now I still got the fsockopen error. I still can't find my php.ini anywhere and don't know how I am going to enable the thing. :/
I've done a phpinfo page though.
Code:
http://noelborg.com/testing/phpinfo.php

Code:
Warning: fsockopen(): unable to connect to free-shoutcast.com:18536 (Connection timed out) in /home/noelpro/public_html/testing/stats/radio_stats.php on line 16
NoelBorg.com // Radio is Offline

Code:
http://noelborg.com/testing/stats/radio_stats.php

(04-27-2014, 11:22 AM)igdesigner Wrote: Ohh, just create one in your public_html :) using notepad ++ or similar program.

Just created one.

added the following code only;

Code:
allow_url_fopen = On

Still ain't working Sad:sorry

Again, the problem is not coming from the hosting. To remove all error reporting, you can add this code at the top of line.
PHP Code:
ini_set('display_errors','OFF');
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
ini_set('max_execution_time'300); //300 seconds = 5 minutes

//YOUR SCRIPT....... 
HOT MUSIC VIDEO | Video Music Knowledgebase
[-] The following 2 users Like jaran's post:
  • DJB, NoelF1
#16
[Solved]
(04-28-2014, 12:52 AM)jaran Wrote:
(04-27-2014, 11:27 AM)NoelF1 Wrote:
(04-27-2014, 10:21 AM)jaran Wrote: As I said before at above you had the error because "&" variable at line 16
Your script,
PHP Code:
$scfp fsockopen("$scip"$scport, &$errno, &$errstr30); 
It should be,
PHP Code:
$scfp fsockopen("$scip"$scport$errno$errstr30); 

Thanks a lot Jaran, seems like half of the problem is solved.

but now I still got the fsockopen error. I still can't find my php.ini anywhere and don't know how I am going to enable the thing. :/
I've done a phpinfo page though.
Code:
http://noelborg.com/testing/phpinfo.php

Code:
Warning: fsockopen(): unable to connect to free-shoutcast.com:18536 (Connection timed out) in /home/noelpro/public_html/testing/stats/radio_stats.php on line 16
NoelBorg.com // Radio is Offline

Code:
http://noelborg.com/testing/stats/radio_stats.php

(04-27-2014, 11:22 AM)igdesigner Wrote: Ohh, just create one in your public_html :) using notepad ++ or similar program.

Just created one.

added the following code only;

Code:
allow_url_fopen = On

Still ain't working Sad:sorry

Again, the problem is not coming from the hosting. To remove all error reporting, you can add this code at the top of line.
PHP Code:
ini_set('display_errors','OFF');
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
ini_set('max_execution_time'300); //300 seconds = 5 minutes

//YOUR SCRIPT....... 

Superb help Jaran ! Finally that line 16 error is gone !
But the script still ain't working... all I see is radio is offline... no image no nothing... even when the server is on Sad ...this getting to be tedious to set up... :/
#17
[Solved]
@NoelF1

I think you should ask it with your radio station. Maybe your port is wrong or missing something configuration.
HOT MUSIC VIDEO | Video Music Knowledgebase
#18
[Solved]
(04-28-2014, 09:50 AM)jaran Wrote: @NoelF1

I think you should ask it with your radio station. Maybe your port is wrong or missing something configuration.

Well my script config file has the ip, port and password all good. So the config should be good.
I think it's something to do with the script. Although I've managed to get the script working before without all this mess.
#19
[Solved]
(04-28-2014, 10:23 AM)NoelF1 Wrote:
(04-28-2014, 09:50 AM)jaran Wrote: @NoelF1

I think you should ask it with your radio station. Maybe your port is wrong or missing something configuration.

Well my script config file has the ip, port and password all good. So the config should be good.
I think it's something to do with the script. Although I've managed to get the script working before without all this mess.

I have no experienced with shoutcast configuration. But I have other link maybe you would test it for your project. Its using jquery for configuration.

https://github.com/Wavestreaming/jquery-shoutcast
HOT MUSIC VIDEO | Video Music Knowledgebase
#20
[Solved]
Fixed yessir
Please do not email or PM me with private support requests - Use Support Section.
Don't forget to read TOS.
Never argue with idiots.
First, they'll bring you down to their level and then beat you with their experience!
[-] The following 2 users Like un4saken's post:
  • Genesis, NoelF1
  




Users browsing this thread:
2 Guest(s)

fsockopen errors - Shoutcast Now Playing script444