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.