Afficher un .php en .txt
Camille
-
avion-f16 Messages postés 19252 Date d'inscription Statut Contributeur Dernière intervention -
avion-f16 Messages postés 19252 Date d'inscription Statut Contributeur Dernière intervention -
Salut,
J'ai un fichier .php que je voudrais lire en .txt, voici mon script :
$fichier = file("..\article\news_02\index.php");
$total = count($fichier);
for($i = 0; $i < $total; $i++)
{
echo $fichier[$i];
}
Le problème est qu'il ne m'affiche pas le code mais le résultat du fichier...
Aidez moi !
J'ai un fichier .php que je voudrais lire en .txt, voici mon script :
$fichier = file("..\article\news_02\index.php");
$total = count($fichier);
for($i = 0; $i < $total; $i++)
{
echo $fichier[$i];
}
Le problème est qu'il ne m'affiche pas le code mais le résultat du fichier...
Aidez moi !
A voir également:
- Afficher un .php en .txt
- Afficher appdata - Guide
- Afficher google en page d'accueil - Guide
- Afficher taille dossier windows - Guide
- Windows 11 afficher d'autres options - Guide
- Afficher mot de passe wifi android - Guide