Re: Leer URL o ficheros con fopen
| From: | Julio Garcia | Date: | Tue, 19 Sep 2000 14:15:27 +0000 |
| Subject: | Re: Leer URL o ficheros con fopen | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-1699@lists.php.net to get a copy of this message | ||
Hello Devta,
Tuesday, September 19, 2000, 12:46:14 PM, you wrote:
DS> Como en PHP se pueden abrir conexiones via FTP y HTTP de forma automática,
DS> $nomfich="http://127.0.0.1/index.html";
DS> if(is_readable($nomfich)){
DS> $fhandle=fopen($nomfich,"r");
DS> if(!$fhandle){
DS> die("No existe el fichero $nomfich");
DS> }else{
DS> $fichero=readfile($fhandle);
DS> print $fichero;
DS> }
Deberia de funcionar sin mayores problemas.
Tambien deberia de poder funcionar asi:
include("http://url.com/filename");
--
Best regards,
Julio mailto:julio@masbytes.es