ini_set redundancy
Posted: Wed Nov 24, 2010 9:40 pm
How far down does an ini_set() go? I have a page that gets included on every page at the top and in it, it has some ini_set() commands. Do would those commands apply to each page below it so I would only need to call that command once? or, for instance, in order to display the errors on each page, do I need ini_set(display_errors) on every one that loads during that time?
And don't say, "Why don't you just put it in the php.ini file if they're all set the same?", cause they're not going to be set the same for each page load. It depends on a variable. Sorry, but too many times I go to ask questions on forums and people are like, "Why don't you just do it this way instead?" which is fine to suggest something, but then they don't answer my question.
And don't say, "Why don't you just put it in the php.ini file if they're all set the same?", cause they're not going to be set the same for each page load. It depends on a variable. Sorry, but too many times I go to ask questions on forums and people are like, "Why don't you just do it this way instead?" which is fine to suggest something, but then they don't answer my question.