|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
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 |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
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.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|