Knowledgebase: Web Hosting Related
How to use php_flag or php_value in .htaccess files
Posted by Support on 07 March 2016 08:08 AM

Some PHP scripts suggest using "php_value" or "php_flag" commands in .htaccess files, as in this example:

php_value include_path ".:/usr/local/lib/php"
php_flag display_errors Off
php_value upload_max_filesize 2M


This can be done within the .htaccess file in your web sites root folder, if the .htaccess file already exists, just edit it using our file manager in our control panel or using a plain text editor on your computer and add the lines to the end of the file.

(0 vote(s))
Helpful
Not helpful

Comments (0)