configuration - How to include a file automatically in PHP? -


i have "site.php" file (similar python) automatically included on every invocation, e.g. command-line execution or http request. file contains several important replacement functions need available both existing applications , new.

(i.e. need include file without modifying files related applications in use.)

is possible? , if so, how?

in php.ini set

auto_prepend_file="/path/to/site.php" 

Comments