|
|
|
|
#1 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
Online checker for website / signature
Okay, I have been working on this for about a week. The only thread close is "Festerhead's Signature" but i dont understand that. Can somebody please help me. I want to put a small window on my website to show if I am broadcasting, what I am broadcasting, or if im not broadcasting. Nothing more, nothing less. Please do not give me a link to another thread beacause i have checked them all and they do not seem to help me at all. This is important to me because I am not broadcasting at all times. Please help.
|
|
|
|
|
|
#2 |
|
Forum Loser
(Forum King) |
have you searched the formus? I know I've posted an example PHP somewhere. All thats needed is to add the meat to the bones.
|
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
Ive tried some php stuff and it just comes in as plain text... is there any way you can give me some meat for the bones?
|
|
|
|
|
|
#4 |
|
Forum Loser
(Forum King) |
do you have a PHP enabled webserver?
|
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
yes i do
|
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
Okay what I have done is I have used asp coding and i seem to have a problem. When I am not broadcasting, It comes up a page cannot be displayed method. I am not running it on the same server as my station... my asp server is running 24/7. My asp code is:
code: is there some kind of code error. The link for my asp is: http://aa.1asphost.com/ruffdawg/RDR.asp it is being used on my web site www.ruffdawgradio.tk Please help, thanks in advance. |
|
|
|
|
|
#7 |
|
Forum Loser
(Forum King) |
I don't know ASP so couldn't exactly tell you your problem...
However an example in PHP would be this PHP Code:
|
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
Thanks for the quick response. I've tried php and its just to hard. I used php codes/progs and it always comes up as text. Asp is just easier for me. in my coding it says:
<% If ServerStatus = 0 Then %> Server is currently down Its something with that part of the code that isnt working. Im getting a "Page cannot be displayed", i should at least get a plain text message, id be happy with that. Is there any html code i can use so if a page does not come up it can be automatically redirected to another. That way i can create a new page with just text. I am using a frame to display my .asp message. is there any coding you can help me with? Thanx |
|
|
|
|
|
#9 |
|
Forum Loser
(Forum King) |
for some reason you must not have PHP enabled on the web service. Actually I find PHP quite eazy to learn lol. It was the first language I learned!
|
|
|
|
|
|
#10 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
actually, i went to this web site: www.clickherefree.com and found a php enabled server there. ... i even checked out some software in the winamp thing and it didnt work. I dunno, i just want something basic. Have you done anything similar that im trying to do? if so what did you do? lol ill take any info i can get
|
|
|
|
|
|
#11 |
|
Forum Loser
(Forum King) |
actually no. I used to have a station and the network I was with required 24/7 station
you may wish to try www.krradio.com which uses the fsock_open() feature to show the current status of his streams, additionally for more fundamental reasons, try using www.festerhead.com from the famous moderator himself
|
|
|
|
|
|
#12 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
Here's my code:
code: |
|
|
|
|
|
#13 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
Thx guys for all your help, I finally got it to work using Ramage's Script. (Thnx DJRampage) But one question still remains, where can I change the font size? My code is listed at http://www.lunchbreak.net/rampageradio/black.txt Thanx in advance.
|
|
|
|
|
|
#14 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
Check out the PHP definitions for imagestring and imagettftext.
|
|
|
|
|
|
#15 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
Hi, I know its something in here:
code: im just note sure what and where to type in. Thnx in Advance. |
|
|
|
|
|
#16 | |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
Quote:
|
|
|
|
|
|
|
#17 |
|
Major Dude
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
|
Oh lol sorry, i thought it meant font type (arial, comic sans MS, Etc.) Next time I won't waste your time with something so obviously stupid. Thnx again!
|
|
|
|
|
|
#18 |
|
Junior Member
Join Date: Jan 2004
Posts: 4
|
I too am interested in adding a simple php script to display not only if the station is online, but hopefully the dj, and track too.
Is there an easy way to do this? I know php fairly well but ihave never used fsock, so If anyone can post a well commented example (showing which variables should contrain which data it would be VERY much appreciated |
|
|
|
|
|
#20 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|