Before contacting PHP, what does PHP do on the front end?

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.