Jump to content

[SOLVED] PHP script activated by the server not a browser, on a specific date or time?


Recommended Posts

I am looking for a way to have a script run on my server with out the browser requesting it.

 

The script's purpose is to select a winner from my customer database. Then when the winner is selected the script will email them.

 

Writing the script is not the problem just finding a way to have it run on a specific date with out having someone request the page in order for the script to run.

 

I have looked over all the net trying to find a way to accomplish this but have so far come up empty handed, can anyone suggest a way for me to accomplish this?

You need to setup a cron job. You can usually set them up from your hosts control panel. Some hosts don't offer these, so you need to check if they do or not. You can probably find loads of information on google if you search "cron job".

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.