Is there a way to set (or add to) the PHP include_path from an environment variable when running CLI PHP? I'm looking for the PHP analog to Java's CLASSPATH or Perl 5's PERL5LIB. My gut tells me it should be there, but I can't find it.
If there really is no such thing, then I guess the follow-up is: is there a best practice for achieving this? Keep in mind that, in my case, the include_path should not be the same for all users, or even for every application.
php.ini. If I'm correct, it is loaded when using PHP-CLI.php.inifile.-c <file>arguments or the-d foo[=bar]in whichfoois the name of the key and you set the value (e.g.:php -d include_path='/my/folder/with/files' /file/to/run.php).