[PHP/HTML] inclure fichier html dans php

Sandriine Messages postés 1400 Statut Membre -  
Sandriine Messages postés 1400 Statut Membre -
Bonjour,

Comment faire pour inclure le contenu d'un fichier HTML dans un fichier PHP?

Merci de vos réponses!
Configuration: Windows XP
Internet Explorer 6.0

1 réponse

  1. R1D3M4N
     
    include("chemin du fichier");
    0
    1. Sandriine Messages postés 1400 Statut Membre 283
       
      Non j'ai déjà essayé cela ne marche pas

      Voisi le message d'erreur :

      Warning: include() [function.include]: php_network_getaddresses: getaddrinfo failed: Hôte inconnu. in E:\PortableZMWS\ZMWS\_web.zmwsc\obsdeb\affiquestion.php on line 30

      Warning: include(http://www.cdc.retraites.fr/branche/etude/obsdeb/2008/14748.htm) [function.include]: failed to open stream: No such file or directory in E:\PortableZMWS\ZMWS\_web.zmwsc\obsdeb\affiquestion.php on line 30

      Warning: include() [function.include]: Failed opening 'http://www.cdc.retraites.fr/branche/etude/obsdeb/2008/14748.htm' for inclusion (include_path='.;C:\php5\pear') in E:\PortableZMWS\ZMWS\_web.zmwsc\obsdeb\affiquestion.php on line 30

      Voici la ligne 30 :
      include('http://www.cdc.retraites.fr/branche/etude/obsdeb/2008/14748.htm');

      Mon lien marche lorsque je le copie dans le navigateur
      0