Old 12th October 2005, 03:06   #1
muphin
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?
muphin is offline   Reply With Quote
Old 12th October 2005, 03:10   #2
dotme
Moderator
 
dotme's Avatar
 
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
dotme is offline   Reply With Quote
Old 12th October 2005, 03:23   #3
muphin
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.
muphin is offline   Reply With Quote
Old 12th October 2005, 06:21   #4
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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);
djSpinnerCee is offline   Reply With Quote
Old 12th October 2005, 19:21   #5
muphin
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?
muphin is offline   Reply With Quote
Old 12th October 2005, 19:29   #6
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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.
djSpinnerCee is offline   Reply With Quote
Old 12th October 2005, 19:46   #7
muphin
Junior Member
 
Join Date: Nov 2004
Posts: 23
I dont want my entire page to refresh, just the php script.
muphin is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump