The lines are not missed, they are simply not visible when you echo the 
stuff to the browser because your browser thinks these are HTML tags.  Try 
doing a "View Source" in your browser and I bet you will discover that 
they are actually there.

-Rasmus

On Wed, 14 Nov 2001, Paul - Zenith Tech Inc wrote:

> Hi,
> 
> I have a text file, which is acting as a template for apache config.
> I open the file, and read it in using this bit of code:
> 
>    $filename = DIR_TEMPLATES."/apache/subdom.txt";
>    $fd = fopen ($filename, "r");
>    $template = fread ($fd, filesize ($filename));
>    fclose ($fd);
> 
> However, the first line is missed off, along with any line beginning with
> "<"
> 
> For example, this line is missed out:
> 
>     <VirtualHost xxx.xxx.xxx.xxx>
> 
> Does anybody know the way round this??
> Or does anybody know why this is happening?
> 
> Thanks,
> Paul
> 
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to