Yawd website

Articles Tagged php-ini

  1. Scan additional PHP 5 .ini files in Eclipse PDT

    Although Windows systems seem to load all PHP 5 variables & extensions from a single php.ini file, there might be system configurations -especially Linux systems (Ubuntu in my case)- that use multiple .ini files. In such systems, PHP configuration is usually located inside the /etc/php5 directory: When running in cli mode, /etc/php5/cli/php.ini gets loaded along with all .ini files located in the /var/php5/cli/conf.d directory.. When using Apache, /etc/php5/apache2/php.ini and /etc/php5/apache2/conf.d/*.ini files are all loaded. The same is true for php-cgi. To load the additional .ini files, either a PHP_INI_SCAN_DIR environmental variable or the --with-config-file-path option can be used. So far so good.

    When it comes to Eclipse PDT, it seems that the additional .ini files are not loaded when PHP runs as script...

    Posted on June 16th, 2011 by Pantelis Petridis