php - What does the punctuation in include_path mean? -


in php menue http://php.net/manual/en/ini.core.php#ini.include-path

example #1 unix include_path

include_path=".:/php/includes" 

. means current directory , : mean here?

example #2 windows include_path

include_path=".;c:\php\includes" 

. means current directory , ; mean here?

it path separator in php can access path_separator constant. possible extend include path regardless of operating system. can used in autoload(php):

    define("application_path",realpath("."));     $include_path = array(         application_path,         realpath(application_path."/controller"),         get_include_path()     );     set_include_path(implode(path_separator,$include_path)); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -