View Single Post
Old 7th July 2010, 23:52   #2
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
Your problem is most likely the line if($ip=$scip), it should be if($ip==$scip) - note, TWO = !!

One thing I noticed with that code. You're reading the whole ibf_sessions table for every listener in the shoutcast - e.g., 5 listeners, 5 reads of the full table - depending on the size of the table, and number of listeners, that could be a big unnecessary hit on your sql server

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote