WilmotS Posted February 19, 2011 Share Posted February 19, 2011 I have created my lottery script. At the moment i simply have the time() function being used where the draw will happen. Im wondering if your able to get rid of that and just choose a particular time where i want the draw to happen. I want the draw to be done at 4pm everyday. (in GMT) Is this possible? and what would the right code be for it. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 19, 2011 Share Posted February 19, 2011 You would need to set up a cron job to run the script at a certain time of the day. The script can't invoke itself, so the server would have to do that. Quote Link to comment Share on other sites More sharing options...
silkfire Posted February 19, 2011 Share Posted February 19, 2011 Let your webhost do a cron job for you. Set the URL to execute to be the address of your lottery script. Quote Link to comment 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.