Re: Problem with "<"

From: Date: Wed, 14 Nov 2001 13:48:24 +0000
Subject: Re: Problem with "<"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74599@lists.php.net to get a copy of this message
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 > > > >

« previous php.general (#74599) next »