My host will not allow some actions to be taken. Is there any way of turning 'OFF' the warnings that appear when permissions are not allowed?

(EX: Warning: chmod() has been disabled for security reasons in /mnt/www/isi_chicago1-www1/www/j/o/sample.com/html/drupal/includes/file.inc on line 381.)

Comments

VMII’s picture

goto

administer -> settings -> error handling

set: Error reporting: to write errors to the log

journaltimes’s picture

Happy New Year!

Morbus Iff’s picture

php_value error_reporting 0
php_value display_errors 0

in your .htaccess file should do it. This assumes that your PHP is running as a module - if it's not (ie., it's a CGI under FastCGI or something similar), you'd have to use the equivalent ini_set()s in settings.php.

http://www.disobey.com/
http://www.gamegrene.com/
Developer of Drupal's GameAPI

journaltimes’s picture

Hmmmm.

Morbus Iff’s picture

Your host is weird. You'll have to make them ini_sets in the settings.php then.

http://www.disobey.com/
http://www.gamegrene.com/
Developer of Drupal's GameAPI

nareshss66’s picture

its really good information

yes add this code in
php_value error_reporting 0
php_value display_errors 0

# PHP 5, Apache 1 and 2.

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
php_value error_reporting 0
php_value display_errors 0

patiljivan’s picture

Its realy help full to us