Why is a Web site like Facebook so large that the PHP file is directly used as a path

Source: Internet
Author: User
Tags php source code
Just like its login address, like this http://www.facebook.com/login.php . Usually most of the PHP site does not do some routing distribution, the actual address hidden it? Why doesn't Facebook do this, does it really call this file directly login.php ? Not so simple, what's the process behind it? Said the insider.

Reply content:

Just like its login address, like this http://www.facebook.com/login.php . Usually most of the PHP site does not do some routing distribution, the actual address hidden it? Why doesn't Facebook do this, does it really call this file directly login.php ? Not so simple, what's the process behind it? Said the insider.

1. Why must it be hidden?
2. Even if this is the case, then this must be the actual address?
3. Does this address have to be routed?
4. In fact, Facebook is now all deployed hiphop, it is not directly execute the PHP source code.

Easy to use on hiphop , if the unified entrance, once a file updated, it is necessary to import into the final output page of the file all compiled, this workload is very large, and, error prone! , and when it goes wrong, other features go wrong!

But independent, just with the login.php relevant files compiled can! and the sub-server is also more convenient ...

  • Related Article

    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.