php / shoutcast question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfy
    Confirmed User
    • Dec 2003
    • 3574

    #1

    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
    Beer Money Baron
    • Jan 2001
    • 22157

    #2
    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/

    Comment

    • Wolfy
      Confirmed User
      • Dec 2003
      • 3574

      #3
      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.

      Comment

      • Brujah
        Beer Money Baron
        • Jan 2001
        • 22157

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

        Comment

        • Wolfy
          Confirmed User
          • Dec 2003
          • 3574

          #5
          Originally posted by Brujah
          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?

          Comment

          Working...