Hola! intente lo que me dices y me retorna esto:
/home/a1823538/public_html
PHP Error Message
Warning: file_get_contents(/home/a1823538/public_html/subfolder/archivo.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /home/a1823538/public_html/ReadTextFile.php on line 6
Free Web Hosting
PHP Error Message
Warning: fopen() [function.fopen]: Filename cannot be empty in /home/a1823538/public_html/ReadTextFile.php on line 9
Free Web Hosting
PHP Error Message
Warning: fread(): supplied argument is not a valid stream resource in /home/a1823538/public_html/ReadTextFile.php on line 10
Free Web Hosting
PHP Error Message
Warning: fclose(): supplied argument is not a valid stream resource in /home/a1823538/public_html/ReadTextFile.php on line 11
Free Web Hosting
php:
<?php
echo $dir;
echo $ruta;
$handle = fopen($ruta,"r");
echo $content;
?>
Mi host el gratuito de 000webhost puede que sea el problema? he intentado infinidades de cosas llevo unas horas con el problema y buscando y no logro entender porque no puede leer el archivo