agent007 0 Newbie Poster

Hi all

On my test Apache (2.2.11) & PHP (5.2.8) server, as most will be no doubt aware, placing custom php.ini files in individual document root directories override the directives in the master php.ini file which is in "/etc/httpd". Whilst this can be a useful feature, there are certain directives such as the following that I would prefer to be unchangeable or to prevent the maximum values from being exceeded:

memory_limit = 10M
post_max_size = 10M
upload_max_filesize = 10M
safe_mode = Off
register_globals = Off

Is there a way to prevent the settings in the custom files from overriding these server-wide values set in the main file? Also, is there a way to completely disable custom php.ini files?

Thanks for any assistance in this matter

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.