php3-list | 199807
Date: 07/31/98
- Previous message: Harmony: "[PHP3] external program execution timeout"
- In reply to: Harmony: "[PHP3] external program execution timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'd like to ask how to set a timeout value for running
> an external program (either by exec() or system()) in
> PHP script?
>
> e.g. escape from system($cmd) if it doesn't give any
> output within 10 seconds
Wrap your command in a shell or perl wrapper that will do an alarm. We
can't set an alarm within the Apache module because it would interfere
with the signal handling of the web server itself.
-Rasmus
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Previous message: Harmony: "[PHP3] external program execution timeout"
- In reply to: Harmony: "[PHP3] external program execution timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

