salut, J'ai créer des fonctions en php. Elles st placées dans un réperoire nommé var/www/scripts/fonctions.php. Je souhaite les appeller à partir d'un script nommé test.php situé dans un autre répertoire(/var/www/test/) Dans le script test.php j'appelle ces fonctions avec require('fonctions.php'). Cependant, comme ces fonctions ne sont pas dans le meme réperoire j'ai vu qu'il fallait spécifier le chemein où elles se trouvaient avec la fonction include_path= .:/chemin où se trouve fonctions.php MAIS ca n'a pas l'air de marcher. HEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLP!!!! Merci. Jeff
i'd just use a relative path.
require('../scripts/fonctions.php');
quick and easy. i'm not a fan of changing the include_path
Speak english or post on a french forum.