[Info-vax] OS implementation languages
Arne Vajhøj
arne at vajhoej.dk
Wed Sep 13 22:19:29 EDT 2023
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'"'"
Arne
More information about the Info-vax
mailing list