Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force include in php.ini?

Is there anything I can change in php.ini that includes a php file before running any other file? The equivalent of adding "require('somefile.php');" before every file?

like image 596
user1032861 Avatar asked Jan 25 '13 11:01

user1032861


1 Answers

You can use the auto_prepend_file directive.

like image 105
AgentConundrum Avatar answered Oct 31 '22 11:10

AgentConundrum