Scenario
A customer says he needs to turn off PHP magic quotes (Â magic_quotes_gpc )Â in his account.Â
Pre-Requisite Information
Â
PHP version | 5.3.22 |
---|---|
Server API | CGI/FastCGI |
Solution
An absolute walk in the park if you know it, otherwise ð
PHP.net says “Since PHP 5.3.0, PHP includes support for .htaccess-style INI files on a per-directory basis. These files are processed only by the CGI/FastCGI SAPI. This functionality obsoletes the PECL htscanner extension. If you are using Apache, use .htaccess files for the same effect”Â
In simple words, instead of using .htaccess to set php parameters you must now use .user.ini, (note the dot in front .user.ini) in the public_html directory, which is the root of your web directory.