Strength includes in php.ini?

Is there anything I can change in php.ini that includes a php file before running any other file? Equivalent to adding "require ('somefile.php"); before each file?

+5
source share
2 answers

You can use the directive auto_prepend_file.

+6
source

Search auto_prepend_file = [path/to/file]in php.ini. Replace with [path/to/file]your file

+2
source

All Articles