[PHP] Lire Page après execution PHP

Utilisateur anonyme -  
 Utilisateur anonyme -
Bonjour,

j'aimerai savoir si avec la fonction fopen() (ou autre chose) on arriverait à ouvrir et lire une page .php APRES l'execution php.

Pas Comprit ? Un Exemple

page1.php :

<html>
<body>
<?php
echo "Bonjour";
?>
</body>
</html>

lecture.php :

<?php

$Ouverture=fopen("page1.php","a");
while($Lecture = fgets($ouverture))
{
echo $Lecture ."<br/>";
}
?>

Ce qui donnerait :

<html>
<body>
<?php
echo "Bonjour";
?>
</body>
</html>

Mais est-il possible que PHP lise :

<html>
<body>
Bonjour
</body>
</html>


Merci d'avance

--
Fait comme Moi, n'imite Personne.
Configuration: Windows Vista
Internet Explorer 7.0

3 réponses

  1. Tiller Messages postés 783 Statut Membre 211
     
    avec file_get_contents oui, sinon non.
    Ou avec un include..
    0
  2. Utilisateur anonyme
     
    file_get_contents j'ai pas essayer,
    mais include ça affiche la page au lieu d'afficher le code html

    Merci, je le testerais demain
    0
  3. Utilisateur anonyme
     
    A désolé, file_get_contents affiche comme include la page...

    Une autre Idée ?
    0