It all depends on what you are trying to achieve. Personally, I don't edit the php.ini file directly to set include_paths, instead I use the following construct in the code:
// This will append whichever path you would like to the current include path // And I believe that PHP is smart enough to convert / with \ if on a windoze box // If not you can replace / with DIRECTORY_SEPARATOR set_include_path(get_include_path() . PATH_SEPARATOR . 'my/custom/path');
- Change -
Most likely, your system may have several copies of php.ini and that you are not editing the one used by PHP.
Mike purcell
source share