Bonjour,

Je ne comprends pas ceci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
set_include_path('.'
    . PATH_SEPARATOR . '/web/offline-shared' 
    . PATH_SEPARATOR . '/web/offline-sites/test' 
    . PATH_SEPARATOR . get_include_path());
dans le code de yogui.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
 
// set_include_path modifie la valeur de la directive de configuration include_path.
 
set_include_path('.'
    . PATH_SEPARATOR . '/web/offline-shared' 
    . PATH_SEPARATOR . '/web/offline-sites/test' 
    . PATH_SEPARATOR . get_include_path());
 
//situé dans "/web/offline-sites/test/config.php"
include 'config.php';
 
//situé dans "/web/offline-shared/session-start.php"
include 'session-start.php';
 
//situé dans "/web/offline-sites/test/header.php"
include 'header.php';
?>
En suivant les directives ici :
http://fr.php.net/set_include_path

J'aurais plutôt écrit : set_include_path ('/web/offline-shared');
mais cela ne fonctionne pas.

Merci.