Page 1 of 1

ini_set()

Posted: Sun Jul 16, 2006 7:38 pm
by HiddenS3crets
I am trying to turn off safe mode using ini_set()

Code: Select all

ini_set('safe_mode', 'Off');
but I still get errors when trying to execute functions that can be effected by safe mode.

Why isn't ini_set() working? :(

Re: ini_set()

Posted: Sun Jul 16, 2006 7:39 pm
by Chris Corbyn
HiddenS3crets wrote:I am trying to turn off safe mode using ini_set()

Code: Select all

ini_set('safe_mode', 'Off');
but I still get errors when trying to execute functions that can be effected by safe mode.

Why isn't ini_set() working? :(
ini_set() doesn't work on all ini directives. It certainly won't work for safe_mode or it would sort of defeat the object of safe mode on shared hosts 8O

Posted: Sun Jul 16, 2006 7:44 pm
by HiddenS3crets
Damn, safe mode is getting in the way of so much that i'm trying to do. I can't turn it off through php.ini either because I don't have access to restart apache.

I'm assuming there's no other way to turn it off?

Posted: Sun Jul 16, 2006 7:51 pm
by feyd
safe_mode has a PHP_INI_SYSTEM setting which is defined as "[PHP_INI_SYSTEM] entry can be set in php.ini or httpd.conf"

Posted: Sun Jul 16, 2006 7:53 pm
by Chris Corbyn
feyd wrote:safe_mode has a PHP_INI_SYSTEM setting which is defined as "[PHP_INI_SYSTEM] entry can be set in php.ini or httpd.conf"
Does that mean, if it can be set in httpd.conf it might work from a .htaccess file?

Posted: Sun Jul 16, 2006 7:55 pm
by feyd
d11wtq wrote:
feyd wrote:safe_mode has a PHP_INI_SYSTEM setting which is defined as "[PHP_INI_SYSTEM] entry can be set in php.ini or httpd.conf"
Does that mean, if it can be set in httpd.conf it might work from a .htaccess file?
Nope.. it would require PHP_INI_PERDIR to support .htaccess.