[Info-vax] OS implementation languages

gah4 gah4 at u.washington.edu
Thu Sep 14 12:28:32 EDT 2023


On Thursday, September 14, 2023 at 3:53:54 AM UTC-7, Johnny Billquist wrote:
> On 2023-09-14 10:39, Bob Eager wrote: 

(snip)

> > <h2 id="tag<?php">xxxxx</h2> ?

> I would say it's not the quotes that are the most relevant in this. The 
> fact that you are already inside a tag blocks it from being interpreted 
> as a tag. Quotes or not. 
 
> Until the terminating bracken for the <h2, nothing is parsed, unless it 
> is the specific parsing of the h2 tag. 

As well as I know it, PHP doesn't know anything about HTML.
It doesn't know any HTML tags, what is inside and what isn't.

That does make it interesting to write an HTML page about PHP.

<title> The <?php and ?> tags.</title>

It reads along until it finds <?php which might be inside something else.

Next question, though, how does it know where the end is?  How about:

"'"'<?php echo "closing PHP?>"; ?>'"'" 

Once it is parsing PHP, I presume it knows what PHP quotes look like.





More information about the Info-vax mailing list