...

View Full Version : sleep(), exec() functions & MySQL



insener
01-17-2004, 09:27 AM
Keywords: cron, crontab, exec(), sleep()
Server: Apache, PHP, MySQL

How to create dynamically generated table

time span 12:50:00 to 13:05:00

$start_time = 12:50:00;
$stop_time = 13:05:00;
$interval = 60;
$repeater = 2;

table ‘tasks’

id | time | code | action | status | created | lock
---------------------------------------------------------------------------------
3 | 12:52:00 | 303 | action3.php | idle | 2004-01-17 12:45:00 | false
2 | 12:51:00 | 202 | action2.php | idle | 2004-01-17 12:45:00 | false
1 | 12:50:00 | 303 | action3.php | done | 2004-01-17 12:45:00 | true

tasks
‘id=1’ $starttime (12:50:00)
‘id=2’ $starttime + $interval (60 seconds)
‘id=3’ last time (12:51:00) + $interval (60 seconds)

firepages
01-17-2004, 10:24 AM
How to toast , jam & marmalade

do you have a question ;) if so what is it ?

donmarvin
12-09-2006, 01:39 PM
If I set it to sleep for 24 HOURS, will that cause any problems on my server, having this program sleeping for an entire day?

I want a user to fill out a form and then send them a response in 24 hours. I can't use my autoresponse service b/c the response is customized according to how they answer questions on the form.

TIA for any advice!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum