Canadian Webhosting Forums Forum Index Canadian Webhosting Forums
Discussion Forums
 
 FAQFAQ   SearchSearch      RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Local php.ini file

 
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> PHP
Author Message
llay



Joined: 09 Jan 2007
Posts: 2

PostPosted: Tue Feb 20, 2007 9:27 am    Post subject: Local php.ini file Reply with quote

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

PostPosted: Fri Feb 23, 2007 12:32 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 


Hosting Plans :: Flash Tutorials :: Contact Us :: Privacy Policy


Powered by phpBB, MySQL and PHP