Results 1 to 6 of 6

Thread: script being terminated

  1. #1

    Thread Starter
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67

    Unhappy script being terminated

    Im trying to get a script that will basically run untill it is disconnected.

    right now, it works fine untill IE gives up on the file, then it lasts 5 minutes and gets killed. does anyone have a soliution to this? i already set
    php_value max_execution_time "-1"
    php_value ignore_user_abort "True"
    in .htaccess, and max_execution_time keeps it alive untill IE quits, but i need it to run endlessly.

    Leader of the Maxoverkill Mods
    -Fire§lash

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    why? what are you trying to accomplish?
    Also if you have access to setup Cron Jobs I would setup a cron job to run every minute/5 minutes/whatever instead of trying to keep a infinite loop running.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3

    Thread Starter
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67
    Well, its an IRC bot. having it re-connect every 5 minutes is just annoying. In the event it gets stuck in an infinate loop, the bot would eventually time out (since it cant return PONG events) and in which event, the connection is broken and the script ends. (i added a handler to confirm the connection in every loop )

    Leader of the Maxoverkill Mods
    -Fire§lash

  4. #4

    Thread Starter
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67
    no ideas on fixing this?

    Leader of the Maxoverkill Mods
    -Fire§lash

  5. #5
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    I have no idea. I have never worked with IRC bots.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  6. #6

    Thread Starter
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67
    i think i got it. i just made it print out the output from irc (echo) and added flush(); and it seems to stay on now. aparrently as long as it THINKS somthing is being sent client side, it is left alone.

    Leader of the Maxoverkill Mods
    -Fire§lash

Posting Permissions

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



Click Here to Expand Forum to Full Width