|
|
|
|
#1 |
|
Junior Member
Join Date: Nov 2004
Posts: 23
|
Shoutcast Stats v2 Error
So I use the code the readme gives me, put it where I want it, write the proper stuff into the config, then upload everything to my server.
When I load the page I see this text where I put the PHP: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. How do I fix this? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Feb 2005
Location: USA
Posts: 4,024
|
Found this thread by searching... maybe that will help
http://forums.winamp.com/showthread....rgument+passed |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2004
Posts: 23
|
Didn't help, I use a completely different file, and the one numbcore wrote didn't work.
|
|
|
|
|
|
#4 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
Suppress the PHP warnings:
error_reporting(E_ERROR); Add this line after the <?php... somewhere. Warnings are ever-present and non fatal (the script keeps running), you only need to see them when you are writing the code and debugging... otherwise you don't need to see them. When you want to see all of the little messages your code produces, comment out the line or use: error_reporting(E_ALL); /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2004
Posts: 23
|
Thanks a lot, it works.... but one question, does the user have to refresh the page to update the php?
If so, is there any way I can make it auto update? I keep it in a CSS div, maybe I could get that to refresh every 30 seconds? |
|
|
|
|
|
#6 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
Do you mean "update" the HTML that the PHP returns?
That is up to the browser's config -- you can add HTTP "expires" headers (if your HTTPd supports them) or HTML META "refresh" and "expires" tags to "ask" or tell the browser when to reload. Everytime the the PHP runs it should return real time current data, that usually means an HTTP request must be made. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Nov 2004
Posts: 23
|
I dont want my entire page to refresh, just the php script.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|