[SOLVED] Executing a file for a timer?
Posted: Wed May 25, 2005 1:38 pm
Hi,
I've got a question for you.
I am wondering what is the best way to execute a audio file is. I'm building a timer script that plays a audio file when the time is up. Right now, I can only think of using HTML to embed an audio file if certain conditions are met, but if there's a better way, I would like to try it.
Come to think of it, maybe you could check my theory, and see if it's ok.
Basically, the user selects an amount of time to count (ie. 30 mins). Script gets current time and current time + amount of time selected above. Page refreshes every minute (done by a HTML redirect...if you can think of a better way, I would love to hear it), and if current time is equal or greater to end time, play the file.
Please give me your comments, suggestions, etc.
Thanks,
Sphen001
I've got a question for you.
I am wondering what is the best way to execute a audio file is. I'm building a timer script that plays a audio file when the time is up. Right now, I can only think of using HTML to embed an audio file if certain conditions are met, but if there's a better way, I would like to try it.
Come to think of it, maybe you could check my theory, and see if it's ok.
Basically, the user selects an amount of time to count (ie. 30 mins). Script gets current time and current time + amount of time selected above. Page refreshes every minute (done by a HTML redirect...if you can think of a better way, I would love to hear it), and if current time is equal or greater to end time, play the file.
Please give me your comments, suggestions, etc.
Thanks,
Sphen001