Posts: 251
Location: Belgium, Antwerp, Zoersel
|
On most servers there is a maximum execution time of 30 seconds. Resizing big images takes a lot of time, so I wouldn't be surprised if your script wasn't ready when the server terminated it. To change this time, you have 2 possibilities:
through .htaccess for php:
Code:
AddType application/x-httpd-php .php
<IfModule mod_php4.c>
php_value max_execution_time 600
php_value max_input_time 600
</IfModule>
Possibly, you'll have to use a different name instead of "mod_php4.c".
In the script itself:
PHP Code:
<?php $sec=600; #max execution time in seconds, 10 minutes in this case set_time_limit($sec); ?>
This doesn't work in Safe Mode however.
If that doesn't help, maybe you could try to use ImageMagick, which is probably installed on your server.
|