At that time to see a PHP and Java comparison paste when you see a few people say PHP is suitable for the front-end, Baidu is the front end of PHP. As far as I know, PHP is not all backstage? Isn't the front end html+css+js done? What did they say about PHP doing the front end?
Reply to discussion (solution)
Before and after is a relative concept, you'd better give the original link, their position may be different from yours
Just this post
http://www.zhihu.com/question/20314377
The back of the reply also several times mentioned PHP is suitable for the front-end, I do not understand is PHP do the front-end is how
This is the original text:
In general, close to the user's front end, the use of PHP can be faster to complete the front-end frequent and trivial updates, free to respond to changes in demand. The structural adjustment of the page, basic validation of user input, simple logic related only to user interaction, etc. are well suited to PHP development, and can even be migrated to the front-end team with template technology like Smarty. And the basic business logic and data update using Java development, can effectively improve the reuse, improve performance and throughput, avoid security issues. And the development of a slight reduction in exchange for maintainability of the promotion, the release speed is not a problem, because usually the basic business logic adjustment is often the overall modification, and layer test confirmation to be released.
Therefore, the front-end of large-scale web site using PHP backend Java, both good and good maintenance, system stability and high performance, even security has greatly increased. Code reuse and completeness of documentation have all improved. To keep you in touch with these benefits in a timely manner, the breadth of the architect's knowledge pedigree is more than a problem at all.
Obviously his position is not the same, his front and back end is the project stratification. So he said PHP is suitable for the user layer, and Java is suitable for the business layer and the data layer
And you are talking about the whole B/s, natural html+css+js is the front