Re: Question reading a file
| From: | Tedd Sperling | Date: | Thu, 27 Oct 2011 22:02:50 +0000 |
| Subject: | Re: Question reading a file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315464@lists.php.net to get a copy of this message | ||
On Oct 27, 2011, at 5:14 PM, Daniel Brown wrote:
> On Thu, Oct 27, 2011 at 15:25, Tedd Sperling <tedd.sperling@gmail.com> wrote:
>> -snip my confusion -
>
> No need to review the code. The first hunch I had proved correct.
> PHP opens with a less-than (left carat, or 'less-than') symbol, as do
> HTML tags. As a result, the browser interprets both as tags and tries
> to parse them.
>
> -snip-
>
> --
> </Daniel P. Brown>
Daniel:
But of course. I never considered that the "<" in both the HTML (<!doctype html>)
and the PHP (<?php) would cause the browser to wig-out and not display the contents of the file
-- good catch!
I knew there was something wrong -- I just didn't realize that the Browser was trying to think
for me. That'll teach me to use a Browser as a hex-viewer.
Thanks,
tedd
_____________________
tedd@sperling.com
http://sperling.com