What are the contents of your file? You do realize, I hope, that whatever is in the 
file is 
going to be output to the browser, so any HTML tags in the file will be processed 
before 
anything is displayed in the browser. Have a look at the resulting page's source code.


On 20 Feb 2004 at 10:15, php wrote:

> 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