Php files include static files. is the effect the same as Accessing static files directly?

Source: Internet
Author: User
Php file include static files. is the effect the same as Accessing static files directly? & nbsp; & lt ;? Php & nbsp; {& nbsp; does the inc php file include static files with the same effect as Accessing static files directly?
    
     {
        include'/123.html');
    }
    ?> 



I wrote this code in index. php on the homepage file and mounted the 123.html file. Is this the same as running the 123.html file directly? Effect of Baidu indexing
------ Solution --------------------
Is the same. You can test it yourself.
------ Solution --------------------
Different URLs
Others
------ Solution --------------------
The execution results are the same. generally, website headers and tails are introduced in this way.
------ Solution --------------------
Include is equivalent to copying the 123.html code to index. php.
------ Solution --------------------
You can access the web page to view the source code. you will find that the source code of the include file is in it. if the include file is a PHP file, this php file will be called.
------ Solution --------------------
The page effects are the same.
However, the effect of Baidu indexing is different. The suffix names are different.

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.