[Info-vax] OS implementation languages
Johnny Billquist
bqt at softjar.se
Thu Sep 14 06:53:50 EDT 2023
On 2023-09-14 10:39, Bob Eager wrote:
> On Thu, 14 Sep 2023 08:39:03 +0000, Bob Eager wrote:
>
>> On Wed, 13 Sep 2023 22:19:29 -0400, Arne Vajhøj wrote:
>>
>>> On 9/13/2023 9:30 PM, gah4 wrote:
>>>> On Tuesday, September 12, 2023 at 5:15:44 AM UTC-7, Simon Clubley
>>>> wrote:
>>>>> On 2023-09-11, gah4 <ga... at u.washington.edu> wrote:
>>>>
>>>>>> Maybe I don't know how everyone uses PHP, but the use I have seen is
>>>>>> inside HTML.
>>>>
>>>>>> It is then processed by PHP before it is seen by the HTML parser.
>>>>
>>>>>> Even more, though PHP has to find its code inside arbitrary HTML,
>>>>>> without actually parsing HTML.
>>>>
>>>>> That's what the PHP open and close tags are for. Anything inside them
>>>>> is treated as PHP code and anything outside them is not.
>>>>
>>>> OK, but here is the part that I don't know. Say that the PHP tags are
>>>> in quoted strings. Does it still see them? If it isn't parsing HTML,
>>>> it has to be sure that it recognizes only the real open and close
>>>> tags.
>>>
>>> Quotes does not have any special meaning in literal text.
>>>
>>> C:\Work>type q.php "'"'<?php echo "Hi from PHP"; ?>'"'"
>>>
>>> C:\Work>php q.php "'"'Hi from PHP'"'"
>>
>> How about:
>>
>> <h2 id="tag<?php>xxxxx</h2> ?
>
> Sorry, should be:
>
> <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.
Johnny
More information about the Info-vax
mailing list