ajax wrote:Possibly you xampp experts would know if such an override is something that php allows and if so maybe provide reference to some documentation which might explain how it is done.
Come on, thats really poor! You're a thinking creature, aren't you? I'm gonna go over this with you now, but you're gonna be embarrassed.
What is the context? Clearly php.ini - we wanna know about PHP configuration. Gladly, we have internet and we have Google. Simple enough, we enter "php.ini" into Google. Full success - already the first hit is a direct hit:
php.ini configuration fileThe documentation about php.ini opens (evtly. choose your own language). On the right side is a small menu with a couple of topics, two of them are exactly what we are looking for:
Where a configuration setting may be setHow to change a configuration settingClick on the first topic (do it!) and read it. You will learn, that php configuration settings can be set per USER, per SYSTEM, per Directory or anywhere (depends on the option). And there is already mentioned, how to change an option within a php script (what you are looking for):
"For example, some settings may be set within a PHP script using ini_set(), whereas others may require php.ini or httpd.conf."
Aha! There is a function ini_set() which allows to manipulate (some) options at runtime. Anyway, now we click on the second topic, in order to find out, how to change configuration options. Do it! Read it!
Ok, i will skip that (but you MUST read it!), as we already know, that we possibly may use ini_set() in a php script. What we still dont know: does this apply for our configuration? What are we looking for? We are looking for the setting of error_log, we need to know, where can i change this setting. Only in php.ini? Or (hopefully) also at runtime in scripts?
If you read the second topic, there is a link to
List of php.ini directives. Very nice! Again, we click on that and then we proceed to... error_log (whereelse?)! Where can error_log be changed? Anywhere! Thats what PHP_INI_ALL means. Ok, now we know for sure: a php script (like wordpress) can change the setting of error_log at runtime. And how? With a call to the function ini_set(), but which parameters?
Nothing easier than that, we proceed to the documentation of ini_set() (there are already a couple of links to it in the documentation we already read). Or simply enter "ini_set" into the search box in the upper right corner and proceed to the function ini_set(). Very intuitive and very easy, still! ini_set() requires two arguments, the name of the option, the value of the option. Not a big surprise, isnt it?
Youre done! Congratulations! I have good news for you: you are an Xampp expert now! Because you think, one must be an Xampp expert for finding/knowing documentation about manipulation php.ini settings at runtime. Only experts can find this hidden treasure, the documentation about php.ini. You found it - so you are an expert! Welcome on board!