Forum Home
Press F1
 
Thread ID: 122145 2011-12-04 09:02:00 Running PHP script in background bot (15449) Press F1
Post ID Timestamp Content User
1247035 2011-12-04 09:02:00 Is there a way to do this? I have heard of using a "cron job" to do this, but I cannot seem to set one up... 3420

Basically, my script accesses an API, gets a value and stores the value into a MySQL database. I want this script to be executed every 10 minutes. Is there another/easier way to do this?

EDIT: Problem solved! was fixed by changing 10 to */10.
bot (15449)
1247036 2011-12-04 10:39:00 Oh dear, it still doesn't seem to be working... bot (15449)
1247037 2011-12-05 22:19:00 Not sure whether this is still relevant if you execute your script via the php command, but is the script file marked as executable? - eg chmod +x myscript.php. MushHead (10626)
1