Old 11th November 2005, 17:17   #1
rileyvrh
Junior Member
 
Join Date: Oct 2005
Posts: 5
Send a message via Yahoo to rileyvrh
PHP Script Question

I found a php script that lists the current song playing but its not doing what i want it to do. I want it to automatically either refresh the page after a certain time or refresh playlist so it shows the new song being played. Is there anyway to make it do that?
rileyvrh is offline   Reply With Quote
Old 11th November 2005, 17:21   #2
dotme
Moderator
 
dotme's Avatar
 
Join Date: Feb 2005
Location: USA
Posts: 4,024
USe meta-refresh tags (Google that) and place them in the HTML of the page. For added convenience, consider iFraming it inside another page, so only the stats reload - not the entire page with graphics etc.
dotme is offline   Reply With Quote
Old 11th November 2005, 18:52   #3
rileyvrh
Junior Member
 
Join Date: Oct 2005
Posts: 5
Send a message via Yahoo to rileyvrh
Ok googled it

Quote:
Originally posted by dotme
USe meta-refresh tags (Google that) and place them in the HTML of the page. For added convenience, consider iFraming it inside another page, so only the stats reload - not the entire page with graphics etc.
Ok i googled it but nothing came up for php ..
can you show me where i need to add the tag in php if i copy and past the code?

****

<?php

Header("Content-type: image/png");


$host = "70.173.181.27";
$port = "8000";
$listenlink = 'http://70.173.181.27:8000/listen.pls';

$fp = fsockopen("$host", $port, &$errno, &$errstr, 30);
if(!$fp) {
$success=2;
rileyvrh is offline   Reply With Quote
Old 12th November 2005, 05:41   #4
baseballbrad3
Junior Member
 
Join Date: Jun 2005
Location: My House
Posts: 45
try an iframe. it would be in html, but just point that iframe to the picture. it should work.
baseballbrad3 is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump