|
![]() |
#1 |
Junior Member
Join Date: Jul 2010
Posts: 8
|
help with radio script
hi im writing a radio script to view current listners name from the ipb database but im stuck i was hoping someone could help me
here is my code code: im trying to get it to match up 2 ip addresses one from database and one from shoutcast xml but atm its jumbling up the member to the ip i was woundering if anyone could help here is the code when its run radio link please could someone help tom |
![]() |
![]() |
![]() |
#2 |
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 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jul 2010
Posts: 8
|
ahhhh thanks for you help its all working, i have sorted the sql bit aswell
![]() |
![]() |
![]() |
![]() |
|
Tags |
ip shoutcast xml online |
Thread Tools | Search this Thread |
Display Modes | |
|
|