Jump to content

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


centerwork

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".

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.