[ Index ] |
|
Code source de SPIP Agora 1.4 |
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 ('@include_path@' != '@'.'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 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |