Hi.

Running PHP via ISAPI on Sambar Server.

I have a script which is allowed to take a long time.

The user has an Abort option and via clever use of sessions, the
script can be terminated.

All fine.

Sometimes, the user is too dumb to abort it when it has to do a LOT
more work than they expect.

In looking at the server threads, I see many of these scripts loaded,
all doing their job correctly but without ever being able to send
there details anywhere.

I understand that I can't just terminate the PHP isapi.dll as that
would bugger up the server, but does PHP have a mechanism by which a
thread that it is looking after can be terminated by the server making
a call to the isapi.dll.

I was thinking that if the max_exec_time could be "manipulated"
externally for a single thread within the dll, then the engine would
suddenly realise it had taken too long and would terminate.

Ideas?

Regards,

Richard Quadling.

--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to