problem handling files.
| From: | php | Date: | Fri, 20 Feb 2004 10:15:16 +0000 |
| Subject: | problem handling files. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178325@lists.php.net to get a copy of this message | ||
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.