Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-24-2009, 11:52 AM   #1
Member (10 bit)
 
faint545's Avatar
 
Join Date: Mar 2006
Location: Maryland
Posts: 550
Update File Read In Using PHP

Here is my situation. I have a website with an online radio stream. On the webpage, I have a small section where it tells visitors, what song is currently playing on the radio stream. Problem is, when a song is changed, the ticker doesn't until you refresh the page. My question is, is there a way to get this ticker to refresh on it's own (without refreshing the page) using PHP? Here's how I have everything set up.

Website is set up using Drupal.

Radio stream is setup using edcast, icecast2, zararadio, and fling ftp. Zararadio is used to play the songs I want played on the radio, as well as write the current song metadata to a text file and then I have fling ftp set up to FTP that text file to my website's server whenever the text file is updated. I then have a snippet of php code that read from that file and prints the contents on the web page.
__________________
Kerberos2:
Corsair Obsidian 700D
ASUS M4A89TD
Radeon HD 5850
A-DATA 8GB DDR3 1333
AMD Phenom II x6 1055T @ 2.8GHz w/ Corsair H50
Corsair 850HX PSU
WD Blue 160GB 7200 RPM SATA HDD
WD Black 640GB 7200 RPM SATA HDD
ASUS DVD/CD Drive
faint545 is offline   Reply With Quote
Old 05-24-2009, 03:26 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
You may need to look at AJAX or Flash for something to be updated after a page has already been loaded.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:41 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2