I have a bit problem with following script in php:


<?php
$fichero = "/var/www/php/fichero/fichero1.txt";


if ($fp=fopen($fichero,"r")) {

print ( "El fichero ha podido abrirse." );

fpassthru($fp);



}

else {

print ("El fichero no ha podido abrirse.");

}
?>



fpassthru doesn't work.


I can see:

El fichero ha podido abrirse.

on the navigator, but I can't see the content of:

/var/www/php/fichero/fichero1.txt


I have php 4.1.2 on debian-woody.


Could you help me with this problem?


Thank you in advance.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to