GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php / shoutcast question (https://gfy.com/showthread.php?t=785065)

Wolfy 11-16-2007 06:58 AM

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!

Brujah 11-16-2007 08:05 AM

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/

Wolfy 11-16-2007 08:48 AM

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.

Brujah 11-16-2007 10:29 AM

Right, you could just change the text it looks for. You know a little php right?

Wolfy 01-04-2008 09:34 AM

Quote:

Originally Posted by Brujah (Post 13380450)
Right, you could just change the text it looks for. You know a little php right?

I can read it a little, but can't write it to save my life. Anybody have any ideas for me here? Or willing to help?


All times are GMT -7. The time now is 04:06 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123