velocity Posted June 22, 2005 Share Posted June 22, 2005 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... Quote Link to comment https://forums.phpfreaks.com/topic/2364-please-help-with-radio-site/ Share on other sites More sharing options...
gizmola Posted June 22, 2005 Share Posted June 22, 2005 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. Quote Link to comment https://forums.phpfreaks.com/topic/2364-please-help-with-radio-site/#findComment-7765 Share on other sites More sharing options...
velocity Posted June 22, 2005 Author Share Posted June 22, 2005 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? Quote Link to comment https://forums.phpfreaks.com/topic/2364-please-help-with-radio-site/#findComment-7766 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.