phpinclude-pathset-include-path

Set numerous include paths?


I know how to set an include path:

set_include_path('/path');

But how can I set multiple include paths? For example: in two different directories.


Solution

  • Separate them with colons (:).

    set_include_path("/some/dir:/other/dir:.");
    

    More info on php.net.