Jump to content


Photo

please help with radio site!!!


  • Please log in to reply
2 replies to this topic

#1 velocity

velocity
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 June 2005 - 01:03 AM

hi, i am in the process of creating a site for a radio station, and they want a line of text to load from the timetable showing what show is currently on that updates dynamically depending on what time it is.... is there an easy way to do this? the timetable is in .txt format ...please help, my deadline is fast approaching.....Thanks...



#2 gizmola

gizmola
  • Administrators
  • Advanced Member
  • 4,664 posts
  • LocationLos Angeles, CA USA

Posted 22 June 2005 - 01:32 AM

Certainly. You can load a file into an array using the file function. You could parse each line into further pieces using explode, if for example it was in the format:

Starttime, Endtime, Name

From there, you simply are left with the exercise of writing a function that determines which program is currently on the air.

#3 velocity

velocity
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 June 2005 - 03:31 AM

Hi, thanks for your reply... sorry for my stupidity , but i am an absolute novice at php, i am using dreamweaver, could you please give me an example of the script?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users