|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
php / shoutcast question
I'm using php pages for my html site. I have no problem donating to your station or your beer fund or whatever if you can help me get my problem sorted!
I'm using SAM on a dedicated windows server. Shoutcast is running from that server as well. Then, on my dedicated linux server, I am using vbulletin for my forum and the pages are php output. To go into a little more detail - I have a flash chatroom that is only open from 8-midnight. I would like to open a link to it when the live DJs are on, so people can hop in chat and discuss the show. With that in mind, I'm hoping to come up with a way to php check the stream for keywords like "LIVE DJ NOW" and then echo a link to the chatroom. If the words are not present in the stream, the link is not present on the php page. If there's a better way to accomplish this, I'm open to suggestions. Thanks! |
|
|
|
|
|
#2 |
|
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
This has code you can use to check it. It'll display 1 thing if the stream is down, or another with info about the stream and tune-in links if it's live.
http://www.wesleyevans.net/shoutcast-sidebar-widget/
__________________
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
that gives me the links if the stream is up - I need to check the stream for certain text to determine if it's a live DJ or the auto DJ. Only if a live DJ is on do I want to display the chat link.
|
|
|
|
|
|
#4 |
|
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
Right, you could just change the text it looks for. You know a little php right?
__________________
|
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
|
|
|
|