-
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.
-
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.
-
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 ;))
-
no ideas on fixing this? :(
-
I have no idea. I have never worked with IRC bots.
-
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.