Forum Moderators: coopster

Message Too Old, No Replies

Opeing a socket. posting data and moving on

Problem

         

ukgimp

1:14 pm on Aug 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a script that opens a socket and posts some data and closes the socket. When trying to reactivate (loop) the script on the same page it fails due to a time out.

Are there any settings that I am unaware of?

Or suggestions?

Regards

Richard

vincevincevince

1:17 pm on Aug 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



there is a php.ini setting:


;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30

which takes a value in seconds and can be increased.

failing that, you'd best save your values as session variables (or similar) and get the page reloaded after every successful execution, to start the timeout timer again.

panic

5:47 pm on Aug 8, 2003 (gmt 0)

10+ Year Member



Try setting your max execution time as :

max_execution_time = 999999 ;


I think you'll get an error if you set it any higher.

-panic

ukgimp

7:04 am on Aug 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks both. I did extend the time and it worked. Glad to know the top time also.

Cheers