Page 1 of 1

Local php.ini file

PostPosted: Tue Feb 20, 2007 10:27 am
by llay
Do you have a mechanism for providing a local or custom php.ini file? I seem to recall reading something about that somewhere, but I'm not sure if it was CWH or another host.

The issue is that you have magic quotes turned on in your php.ini file for PHP 5.x. This is causing me grief in my scripts and I prefer to handle the slashes myself when necessary. I can't override this setting at runtime because the variables are already parsed, so the only way to disable it is to change the setting in the php.ini file.

PostPosted: Fri Feb 23, 2007 1:32 pm
by kevin
Create a blank file called .htaccess and put this:

php_value magic_quotes 0

then upload to your root folder (www/ or public_html/)