|
-
Aug 6th, 2002, 02:44 PM
#1
Thread Starter
Lively Member
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.
-
Aug 6th, 2002, 03:10 PM
#2
Fanatic Member
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.
-
Aug 6th, 2002, 05:17 PM
#3
Thread Starter
Lively Member
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 )
-
Aug 10th, 2002, 10:16 AM
#4
Thread Starter
Lively Member
no ideas on fixing this?
-
Aug 10th, 2002, 10:19 AM
#5
Fanatic Member
I have no idea. I have never worked with IRC bots.
-
Aug 10th, 2002, 09:27 PM
#6
Thread Starter
Lively Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|