Aide include en php

Bonjour,

J'ai un problème avec mon include dans ce fichier /httpdocs/web-gallery/js/index.php j'ai mit <?php inclide(".../header-error.php); ?> qui doit aller chercher ce fichier dans /httpdocs/header-error.php

Et sa me mais comme erreur :

Warning: include(.../header-error.php): failed to open stream: No such file or directory in /httpdocs/web-gallery/js/index.php on line 1 Warning: include(.../header-error.php): failed to open stream: No such file or directory in /httpdocs/web-gallery/js/index.php on line 1 Warning: include(): Failed opening '.../header-error.php' for inclusion (include_path='.:/usr/lib/php') in /httpdocs/web-gallery/js/index.php on line 1

Pouvez vous me dire comment résoudre se problème svp ?

2 réponses

  1. Bonjour,

    <?php include("../../header-error.php); ?>

    Cordialement
    1. Merci tu a oublier un " dans le code <?php include("../../header-error.php); ?> je les rajouter sa marche très bien merci pour ta réponse rapide.