> Is there a way to define a 'per script' limit on php/PG, or anything > else in order to avoid these problems ? You can set a maximum time for execution. This is set for every script in php.ini with max_execution_time (default is 30 seconds). You can re-define your ini value though using ini_set("max_execution_time",$max_time) in every script that has special needs. You can check http://www.php.net/manual/en/function.ini-set.php for more info on ini_set and setting values. Adrian Tineo