note 13535 added to function.passthru.php
| From: | sidney at jigsaw dot nl | Date: | Wed, 20 Jun 2001 21:25:17 +0000 |
| Subject: | note 13535 added to function.passthru.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14500@lists.php.net to get a copy of this message | ||
PJ's ulimit example is nice; however, if you include multiple commands in the script after the
ulimit command, each gets its own, seperate 60 second time slot!<br>
Furthermore, these sixty seconds are *CPU* time. Most programs hang for other reasons than CPU
hogging (for example, waiting for a database connection) so for most purposes the number 60 is
rather too high.<br>
Try "ulimit -t 1" first, which will give you about 10^9 cycles on modern hardware -- quite
enough to get a lot of work done!
http://www.php.net/manual/en/function.passthru.php