I'm writing a shell script under Red Hat 9 that will process some thousand
records from a database so it'll normally take several minutes. According
to manual I can override the max_execution_time directive using the -d
switch. However, that switch seems to be ignored:
#!/usr/bin/php -d max_execution_time=1 -q
<?
........
?>
No matter what value I write (0, 1, 9999...) the script stops after 30
seconds:
Maximum execution time of 30 seconds exceeded
The scripts runs as root and PHP is not using safe mode. I'm probably
missing something but I can't figure out what it is. Thank you in advance
for any clue,
--
--
-- Álvaro G. Vicario - Burgos, Spain
--