Published on: September 16, 2014 by Vipin R.N
Scenario:
A customer says he needs to turn off PHP magic quotes ( magic_quotes_gpc ) in his account.
PHP version | 5.3.22 |
---|---|
Server API | CGI/FastCGI |
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.
Category : Howtos, Troubleshooting
Add new commentSIGN IN