| Author |
Message |
llay
Joined: 09 Jan 2007 Posts: 2
|
Posted: Tue Feb 20, 2007 9:27 am Post subject: Local php.ini file |
|
|
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. |
|
| Back to top |
|
 |
kevin CWH Staff
Joined: 13 Dec 2004 Posts: 206 Location: Vancouver, BC
|
Posted: Fri Feb 23, 2007 12:32 pm Post subject: |
|
|
Create a blank file called .htaccess and put this:
php_value magic_quotes 0
then upload to your root folder (www/ or public_html/) |
|
| Back to top |
|
 |
|