Orionsbelter Posted May 7, 2008 Share Posted May 7, 2008 is it possiable to have a script which will do something at a certerin time for example if ($time =="2 Oclock"){echo"hello";} am sure this isn't how i do it but am sure there is a way can you help? many thanks? Quote Link to comment https://forums.phpfreaks.com/topic/104585-php-script-for-time/ Share on other sites More sharing options...
$username Posted May 7, 2008 Share Posted May 7, 2008 Not to much to work off of, but you could set it up so you have a scheduled task go to a url that will run the script. Lets say you wanted a email to be sent at a time/date. Just setup the PHP script that would check the time when the script is executed. I hope that helps. I know its rough. Brett Quote Link to comment https://forums.phpfreaks.com/topic/104585-php-script-for-time/#findComment-535318 Share on other sites More sharing options...
Adam Posted May 7, 2008 Share Posted May 7, 2008 you can use cron if you've got a linux web server... Quote Link to comment https://forums.phpfreaks.com/topic/104585-php-script-for-time/#findComment-535344 Share on other sites More sharing options...
neoform Posted May 7, 2008 Share Posted May 7, 2008 http://ca.php.net/date if (intval(date('g')) == 2) { echo 'hello; } Quote Link to comment https://forums.phpfreaks.com/topic/104585-php-script-for-time/#findComment-535347 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.