[Info-vax] OS implementation languages
Arne Vajhøj
arne at vajhoej.dk
Tue Sep 12 16:05:00 EDT 2023
On 9/12/2023 8:15 AM, Simon Clubley wrote:
> On 2023-09-11, gah4 <gah4 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.
And it is a pretty standard mechanism.
PHP use <?php ... ?> but other web template systems use
different syntax.
ASP use:
<% ... %> for code snippets
<%= ... %> for expressions
JSP use:
<% ... %> for code snippets
<%= ... %> for expressions
<%! ... %> for type declarations
<%@ ... %> for processor directives
Arne
More information about the Info-vax
mailing list