Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sleep(), exec() functions & MySQL

    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)

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    How to toast , jam & marmalade

    do you have a question if so what is it ?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New Coder
    Join Date
    Feb 2006
    Location
    Bronx, New York
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts

    For how long can I set the sleep() function?

    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!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •