Why is require_once so bad to use?

This thread makes me cringe, because there’s already been a “solution posted”, and it’s, for all intents and purposes, wrong. Let’s enumerate: Defines are really expensive in PHP. You can look it up or test it yourself, but the only efficient way of defining a global constant in PHP is via an extension. (Class constants … Read more