What is a php.ini file? Can I use one?


If your site is running on a UNIX platform, a php.ini file gives you greater control over the PHP environment and the way PHP runs. It enables you to override specific settings and modify the way PHP is built on the server in order to meet your own specifications.

 

Since the php module does not have control over the httpd.conf (or .htaccess files), you need to put a php.ini file with your needed changes in file in the directory your php scripts are running in.

 

It's best to just add the changes in a custom php.ini rather than the whole file. Then add the custom php.ini directly into the folder of the site you have the files in.

Tags: add, custom, ini, php
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.