Using One php.ini for the Whole Website

I don’t want to copy php.ini in every folder with the scripts. Is there any other way to copy the parameters?

 

Sure there is. It’s applicable only for PHP5 on our hosting. In the .htaccess file, write the SetEnv PHPRC string

 

/home/YourLogin/public_html/php.ini

Was this answer helpful? 0 Users Found This Useful (0 Votes)