[Info-vax] OS implementation languages
Bob Eager
news0009 at eager.cx
Thu Sep 14 04:39:40 EDT 2023
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> ?
More information about the Info-vax
mailing list