Re:25 Years of PHP
by TedDoesntTalk on Wednesday June 10, 2020 @10:55AM
(#23477658)
ColdFusion, Java Server Pages, and other languages copied this syntax. I don’t see it anymore except with php. Does anyone know of any other languages still in use that have this?
[ Parent
| on HN ]
As the other comments say, it's not what the syntax is but the way it managed to get itself integrated into the webserver, originally via Apache mod_php. (mod_perl and even mod_tcl existed but were nowhere near as popular)
Re:25 Years of PHP
by lowercased on Wednesday June 10, 2020 @05:37PM
(#23482446)
I believe mod_perl had the 'benefit' of persistent/shared state, which meant multiple users might conflict with each other (via shared memory, IIRC), and the mod_php - while it kept an interpreter bundled in each apache process - didn't leave anything around after a request.
Perl5 has HTML::Mason which runs on Apache mod_perl. The reason that never caught-on is the liability of running mod_perl compared with mod_php which is much better at isolating global variables.
I thought the comment was talking about PHP already being installed, so you could just start using it.
Re:25 Years of PHP
by freehunter on Wednesday June 10, 2020 @11:03AM
(#23477790)
You can do it in a lot of templating engines like Jinja2 and ERB.