Custom PHP Application—Quickly Modify PHP setting

Posted: February 22, 2013 in Web Design and Development
Tags:

Many times we require some tweaks in the PHP setting particularly during custom PHP application development and in most cases we do that by modifying the .htacees file but when PHP is running in CGI module we can do that and we have to take another route to make PHP setting. At this juncture php.ini files can help you but there is a big restriction that php.ini files only work on a per folder basis, so in other words if we want to make any modification in PHP setting during  custom PHP application development we have to decide where we want to apply modification and in which folders then you have to place a separate php.ini files in each folder.

That is good that you need to make modification in a few countable folders so you can manually place the php.ini files in each folder but what about for a big custom PHP application development project where modification is essential in numbers of folders and if go through manual placements you can’t place such vast numbers of files in their respective folders so we have to take help of some automated  scrip that allows you make modification in such large numbers of folders. Luckily we have a workaround and that can be applied on most of the applications.

Here you need not to copy php.ini files recursively but you can specify the needed value only once. This magic can happens when you allow remote file inclusion with a PHP setting like allow_url_include and you have probabilities of two ways, one you can specify it in may php.ini files in all needed directories and second is that you have to specify it in the main configuration.php file with a function ini_set and this configuration file would be included in your PHP application so it affect the all directories at a time in custom PHP application development.

 

Leave a comment