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