Re:Q&A: PHP Creator Rasmus Lerdorf (2002)
by jszymborski on Sunday September 03, 2017 @12:24PM
(#15162248)
>I got tired of rewriting the same code over and over again, and also wanted to separate my business logic from my HTML layout.
> So I wrote a very simple tag parser that would parse through an HTML file looking for special markup tags and replace those special tags with the result of my business logic code written in C.
(emphasis my own)
I really like PHP, but I find it very interesting that Lerdorf doesn't consider PHP code itself as business logic, but more of a templating language for the web.
A lot of PHP's fundamental strengths and weaknesses make sense in that light.
> So I wrote a very simple tag parser that would parse through an HTML file looking for special markup tags and replace those special tags with the result of my business logic code written in C.
(emphasis my own)
I really like PHP, but I find it very interesting that Lerdorf doesn't consider PHP code itself as business logic, but more of a templating language for the web.
A lot of PHP's fundamental strengths and weaknesses make sense in that light.