home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / xamp / xampp-win32.exe / xampp / include.inc < prev    next >
Encoding:
Text File  |  2004-10-01  |  1.1 KB  |  38 lines

  1. <?php
  2.  
  3. error_reporting(E_ALL);
  4.  
  5. if (!defined('PATH_SEPARATOR')) {
  6.     if (stristr(PHP_OS, 'WIN')) {
  7.         define('PATH_SEPARATOR', ';');
  8.     } else {
  9.         define('PATH_SEPARATOR', ':');
  10.     }
  11. }
  12.  
  13. /*
  14.  * If the path to your PEAR installation is found in the left hand
  15.  * portion of the if() expression below, that means this file has
  16.  * come from the PEAR installer.  Therefore, let's use the
  17.  * installed version of DB, which should be found via the
  18.  * computer's default include_path.  Add '.' to the include_path
  19.  * to ensure '.' is in there.
  20.  * 
  21.  * If the path has not been substituted in the if() expression,
  22.  * this file has likely come from a CVS checkout or a .tar file.
  23.  * Therefore, we'll assume the tests should use the version of
  24.  * DB that has come from there as well.
  25.  */
  26. if ('C:\xarelease149\xampp\php\pear' != '@'.'include_path'.'@') {
  27.     ini_set('include_path', ini_get('include_path')
  28.             . PATH_SEPARATOR . '.'
  29.     );
  30. } else {
  31.     ini_set('include_path', realpath(dirname(__FILE__) . '/..')
  32.             . PATH_SEPARATOR . '.' . PATH_SEPARATOR
  33.             . ini_get('include_path')
  34.     );
  35. }
  36.  
  37. ?>
  38.