Seeking alternatives for Crone Jobs
Hi
I have a site in PHP on IIS 6 and need some sort of scheduling
functionality for sending emails via php scripts, running scripts on
database etc.
I worked a bit with Crone Jobs for this however I was wondering if there
is something better then that. Site is developed in PHP / MySQL and
running on Windows 2003 with IIS 6.
Any help!
mayo0 posted this at 09:24 — 15th August 2005.
They have: 9 posts
Joined: Oct 2004
I had a similar problem where my web host did not give me much choice of when I could run a Cron job.
The way I got around it was to use the date function to run a script at certain hours e.g see below
$cronTime = date("H"); // lets say the hour is 8
if ($cronTime ==
{
// run a script
}
this is only going to help you if you receive traffic every hour though or you could change the code to suit your needs or traffic.
Thanks Kirk
Free mobile text messaging.
http://www.textagroup.com
Mobile Ringtones and logos.
http://mobile.textagroup.com
Tell a friend service
http://affiliates.textagroup.com
mayo0 posted this at 14:47 — 15th August 2005.
They have: 9 posts
Joined: Oct 2004
in the above example you will also want to consider amending a value in a database or a file so it only runs once.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.