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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-16-2007, 06:58 AM   #1
Wolfy
Confirmed User
 
Wolfy's Avatar
 
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!
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2007, 08:05 AM   #2
Brujah
Beer Money Baron
 
Brujah's Avatar
 
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/
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2007, 08:48 AM   #3
Wolfy
Confirmed User
 
Wolfy's Avatar
 
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.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2007, 10:29 AM   #4
Brujah
Beer Money Baron
 
Brujah's Avatar
 
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?
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2008, 09:34 AM   #5
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
Originally Posted by Brujah View Post
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?
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.