Merci,
http://xxx/~bertrand/svip/spip/plugins/cfg/tests/lire_config.php
donne
*Warning*: require(../tests/test.inc) [function.require <http://ancilla.toggg.net/~bertrand/svip/spip/plugins/cfg/tests/function.require>\]: failed to open stream: No such file or directory in */home/bertrand/public_html/svip/spip/plugins/cfg/tests/lire_config.php* on line *7*
*Fatal error*: require() [function.require <http://ancilla.toggg.net/~bertrand/svip/spip/plugins/cfg/tests/function.require>\]: Failed opening required '../tests/test.inc' (include_path='.:/usr/share/pear') in */home/bertrand/public_html/svip/spip/plugins/cfg/tests/lire_config.php* on line *7*
Il le sait bien, plugins/cfg/tests/lire_config.php où il est dans l'arborescence !
Pas besoin de ce paramètre GET b.
Il est absoluement nécessaire que le test de cfg, et tout autre test d'ailleurs, puisse tourner de façon autonome.
--
toggg
fil@rezo.net wrote:
Author: fil@rezo.net
Date: Sun Jan 21 01:45:59 2007
New Revision: 9041Log:
test avec une base differenteModified:
_plugins_/_dev_/cfg/tests/lire_config.phpModified: _plugins_/_dev_/cfg/tests/lire_config.php
--- _plugins_/_dev_/cfg/tests/lire_config.php (original)
+++ _plugins_/_dev_/cfg/tests/lire_config.php Sun Jan 21 01:45:59 2007
@@ -1,7 +1,10 @@
<?php
+// nom du test
$test = 'cfg:lire_config';
-require '../../../tests/test.inc';
+
+// chemin vers test.inc
+require str_repeat('../',intval(@$_GET['b'])).'../tests/test.inc';
include_spip('cfg_options');_______________________________________________
Spip-zone-commit@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone-commit