Re: Question reading a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Oct 27, 2011, at 5:14 PM, Daniel Brown wrote:
> On Thu, Oct 27, 2011 at 15:25, Tedd Sperling <tedd.sperling@xxxxxxxxx> 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@xxxxxxxxxxxx
http://sperling.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux