diff --git a/includes/common.inc b/includes/common.inc index ea1139eee573e0d4ff2ede084db77530daa6d12f..4812e3e528ffc536863564ce2530e00201c9eb89 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -50,6 +50,12 @@ function throttle($type, $rate) { } } +function check_php_setting($name, $value) { + if (ini_get($name) != $value) { + print "
Note tat the value of PHP's configuration option $name
is incorrect. It should be set to '$value' for Drupal to work properly. Either configure your webserver to support .htaccess
files so Drupal's .htaccess
file can set it to the proper value, or edit your php.ini
file directly. This message will automatically dissapear when the problem has been fixed.