J'ai fais un programme qui permet de parcourir une arborescence basé sur opendir et readdir.
Pour certains répertoires, ca marche très bien, par contre pour l'un d'entre eux, impossible. file_exists m'indique que le fichier ou le répertoire n'existe pas. Le problème se produit uniquement pour un seul des sous-répertoires que je parcours dans la meme exécution.
Les répertoires et les fichiers ont les autorisations 777. Je commence à la racine de mon site.
Voila le résultat :
Code : Tout sélectionner
/home/srv/localhost/php/data : 1 (dir)
/home/srv/localhost/php/data/index.en.php : (file) (ko)
/home/srv/localhost/php/data/robots.txt : (file) (ko)
/home/srv/localhost/php/data/galerie : (file) (ko)
/home/srv/localhost/php/data/catalogues : (file) (ko)
/home/srv/localhost/php/data/divers : (file) (ko)
/home/srv/localhost/php/data/artistes : (file) (ko)
/home/srv/localhost/php/data/presentation : (file) (ko)
/home/srv/localhost/php/data/include : (file) (ko)
/home/srv/localhost/php/data/index.php : (file) (ko)
/home/srv/localhost/php/images : 1 (dir)
/home/srv/localhost/php/images/pix.gif : (file) (exits)
/home/srv/localhost/php/admin : 1 (dir)
/home/srv/localhost/php/admin/charge.php : (file) (exits)
/home/srv/localhost/php/admin/phpinfo.php : (file) (exits)
/home/srv/localhost/php/include : 1 (dir)
/home/srv/localhost/php/include/config.php : (file) (exits)
/home/srv/localhost/php/include/tools.php : (file) (exits)
/home/srv/localhost/php/include/page.php : (file) (exits)
(/home/srv/localhost/php/index.php : (file) (exits)