I would like to have a "site.php" file (similar to Python) that is automatically included on every invocation, e.g. command-line execution or HTTP request. This file contains several important replacement functions which need to be available to both existing applications and new.
(I.e. I need to include this file without modifying any files related to the applications in use.)
Is this possible? And if so, how?
In php.ini set
auto_prepend_file="/path/to/site.php"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With