TimUSA Posted December 31, 2007 Share Posted December 31, 2007 I would like to automate this script using php, dont even know where to begin ??? so lets say I want it to run starting two hours before every: Sunday at 1:00 AM UTC, 6:00 AM UTC, 9:00 AM UTC, and 8:00 PM UTC Wednesday at 1:00 AM UTC, 6:00 AM UTC, 9:00 AM UTC, and 8:00 PM UTC Friday at 1:00 AM UTC, 6:00 AM UTC, 9:00 AM UTC, and 8:00 PM UTC <center><script language="JavaScript"> TargetDate = "12/28/2007 8:00 PM UTC"; ForeColor = "black"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes until Zone D."; FinishMessage = "Zone races have started."; </script> <script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script></center> Quote Link to comment https://forums.phpfreaks.com/topic/83840-automate-my-countdown-script/ Share on other sites More sharing options...
jos. Posted December 31, 2007 Share Posted December 31, 2007 A) That is javascript. not php B) If you were useing php you could set up a Cron Job to handle the PHP script at those times C) <center> is deprecated. Jos. Quote Link to comment https://forums.phpfreaks.com/topic/83840-automate-my-countdown-script/#findComment-426699 Share on other sites More sharing options...
TimUSA Posted December 31, 2007 Author Share Posted December 31, 2007 dont even know where to begin ??? guess i will do some more digging. though maybe there was a way i could create some variables to insert into the script. Quote Link to comment https://forums.phpfreaks.com/topic/83840-automate-my-countdown-script/#findComment-426700 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.