Código:
Me da problemas con la longitud del archivo. Y os aseguro que tiene escrito por dentro. <?php $archivo= "http://www.DOMINIO.com/archivo.txt"; $abre= fopen($archivo, "r"); $total= fread($abre, filesize($archivo)); echo $total; fclose($abre); ?>
Warning: filesize(): Stat failed for http://www.DOMINIO.com/archivo.txt (errno=2 - No such file or directory) on line 78
Warning: fread(): Length parameter must be greater than 0. on line 78
PD: Por cierto, si lo abro mediante ruta local, me funciona. El fallo está cuando lo intento hacer HTTP
Qué pasa???? Muchas gracias y un saludo