Configure PHP INI to load default PHP file

3

How do I configure php.ini to load a PHP file that contains some generic functions where I use all my root projects?

I read something about include_path , but I did not understand it and I believe it does not suppress what I need!

    
asked by anonymous 21.01.2015 / 12:05

1 answer

1

I do not know why you need this, but here it goes:

  • Open the PHP.ini file, and search for "include_path":
  • Change your value:
  

include_path="/ var / my_includes"

Note that you can include more than one directory:

  

include_path="/ var / inc1: / var / inc2: / var / inc3"

  • Finally, restart the server:
  

sudo service apache2 restart

    
21.01.2015 / 13:45