Local php.ini file

Local php.ini file

Postby llay » Tue Feb 20, 2007 10:27 am

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.
Posts: 2
Joined: Tue Jan 09, 2007 11:37 am

Postby kevin » Fri Feb 23, 2007 1:32 pm

Create a blank file called .htaccess and put this:

php_value magic_quotes 0

then upload to your root folder (www/ or public_html/)
CWH Staff
Posts: 245
Joined: Mon Dec 13, 2004 12:48 pm
Location: Vancouver, BC

Return to PHP

Who is online

Users browsing this forum: No registered users and 0 guests