Problem with "<"
| From: | Paul - Zenith Tech Inc | Date: | Wed, 14 Nov 2001 11:37:04 +0000 |
| Subject: | Problem with "<" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74577@lists.php.net to get a copy of this message | ||
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