[Support] Laufzeit für php erhöhen

Friedhelm Betz holliwell at gmx.net
Sun Feb 11 17:39:33 CET 2007


Hi Gerald,

Gerald Fränkl wrote:

[...]

>> http://www.php.net/manual/en/ref.info.php#ini.max-execution-time
>> entweder in Deiner php.ini oder per ini_set im fraglichen Skript.
> 
> Danke für den Hinweis. Aber wenn wir es per ini_set einbinden, kommt 
> wieder die Meldung max_execution_time of 30 seconds exceeded.
> 
> Geht das nur via CGI?

Nein, aber funktioniert *nur* bei safe_mode off.
Was verwendet Ihr denn? Eigene php.ini (über CGI/eigene httpd.conf) oder 
  das via Debian angebotene mod_php?
Letzteres läuft im safe_mode und da gilt:

http://www.php.net/manual/en/ref.info.php#ini.max-execution-time
You can not change this setting with ini_set() when running in safe 
mode. The only workaround is to turn off safe mode or by changing the 
time limit in the php.ini.

Rückgabewert von ini_set ('max_execution_time', '50') ?
Alternativ set_time_limit (natürlich auch ohne safe_mode)

Schöne Grüße
Friedhelm


More information about the Support mailing list