News for hackers. Stuff that matters.
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?
Re:25 Years of PHP by pjc50 on Wednesday June 10, 2020 @11:50AM (#23478458)
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.
Re:25 Years of PHP by cutler on Wednesday June 10, 2020 @08:00PM (#23483613)
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.
Re:25 Years of PHP by brlewis on Wednesday June 10, 2020 @11:09AM (#23477886)
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.
Re:25 Years of PHP by cutler on Wednesday June 10, 2020 @08:01PM (#23483623)
That's not comparable with PHP as ERB files are not executable by default within the document root.