Php : lire un fichier externe
Résolu
mob220
Messages postés
11
Date d'inscription
Statut
Membre
Dernière intervention
-
kilian Messages postés 8732 Date d'inscription Statut Modérateur Dernière intervention -
kilian Messages postés 8732 Date d'inscription Statut Modérateur Dernière intervention -
Bonjour,
j'ai besoin d'aide, chez mon hébergeur web, allow_url_fopen = off (dans le fichier php.ini).
pour lire un fichier externe j'utilise la fonction get_file_contents (exp. http://www.example.com/monfichier.txt), mais j'obtient un message d'erreur a cause de "allow_url_fopen = off" , je n'est pas accès au fichier php.ini.
Je voudrai savoir s'il existe un autre moyen pour lire un fichier externe, merci d'avance.
code php :
<?php
echo file_get_contents("http://www.example.com/monfichier.txt");
?>
j'ai besoin d'aide, chez mon hébergeur web, allow_url_fopen = off (dans le fichier php.ini).
pour lire un fichier externe j'utilise la fonction get_file_contents (exp. http://www.example.com/monfichier.txt), mais j'obtient un message d'erreur a cause de "allow_url_fopen = off" , je n'est pas accès au fichier php.ini.
Je voudrai savoir s'il existe un autre moyen pour lire un fichier externe, merci d'avance.
code php :
<?php
echo file_get_contents("http://www.example.com/monfichier.txt");
?>
A voir également:
- Php : lire un fichier externe
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP