Having PHP code run when no one's looking at your site
Moderator: General Moderators
Having PHP code run when no one's looking at your site
Is it possible to have a php script run every day, or like set it to run at a certain time, or even have it always running?
Depending on the type of server you are hosted on, you may not have access to cron. If don't have a shell access on a *nix type server then you wil have to do something else.smpdawg wrote:Do a search on this site for cron.
A way around not having access to cron is to put the script on your site that you wish to run once a day then use a cron-type program on your own computer to trigger the script on the site.