Zitat Zitat von jpwfour Beitrag anzeigen
Wenn dir aber ini_get on bzw. off als String zurückliefert?

PHP-Code:
if(!ini_get('safe_mode')) 
der ! Operator in PHP testet zwar nicht nur auf "false", sondern auch 0 /NULL usw. aber afaik noch nicht auf den String "off".

Sprich in dem Fall wertet der Ausdruck, egal ob der safe_mode nun auf On oder off steht, immer zu "false" aus.

Sprich besser/richtig wärs so:
PHP-Code:
if(!ini_get('safe_mode') || strtolower(ini_get('safe_mode'))=='off'



Returns the value of the configuration option as a string on success, or an empty string on failure or for null values.
Demnach sollte es auf jedem Server so laufen

PHP-Manuall ist hier: http://php.net/manual/de/function.ini-get.php