I have this line in php.ini
include_path = “.;C:\xampp\htdocs\zend\library;C:\xampp\php\PEAR”
What exactly is the . in front of the string?
And what does the line do, exactly? I know it includes the paths, but what exactly happens behind the scenes? Maybe this is a dumb question but I’m asking anyway 🙂
. adds the current working path to the include path
What all this does is that if you say:
Include ( ‘some_file.php’ );
PHP will look for that file in the directories specified in the “include_path”. It will look in the order you specify the directories.