Bonjour à tous,
voila j'ai un serveur dédié Apache/2.0.54 (Fedora) & PHP Version 5.0.4

j'ai modifié mon php.ini avec safe mode off
mon include_path = .:/php/includes:/var/www/vhosts/MONSERVEUR/httpdocs/include

et j'ai modifié mon httpd.include pour modifié le open_basedir
/var/www/vhosts/MONSERVEUR/httpdocs:/tmp:/var/www/vhosts/MONSERVEUR/httpdocs:/include

donc j'ai créé un repertoire include contenant toutes les class que j'utilise au meme niveau que httpdocs

je cherche à changer tous mes include('../../toto.class.php')
en include('toto.class.php')

Ca marche pour une class n'appelant pas d'autre class. Je vous explique si j'ai mon index.php qui a include('bdd.class.php') -->ca marche
par contre quand je fais include('page.class.php')-->marche pas, car page.class.php appel bdd.class.php avec un include.

Message d'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/php/includes/bdd.class.php) is not within the allowed path(s): (/var/www/vhosts/MONSERVEUR/httpdocs:/tmp:/var/www/vhosts/MONSERVEUR/httpdocs:/include) in /var/www/vhosts/MONSERVEUR/httpdocs/contenu/centre/scripts/recherche/indexRecherche.php on line 3
La ligne 3 correspond au include('page.class.php');

Merci de votre aide...