Strange questions about the file_get_contents function
Source: Internet
Author: User
This is a strange question about the file_get_contents function. I used the file_get_contents function to read the template file. if the link in the template is written like this, & lt; ahref = & quot;/index. php & quot; & gt; link & lt;/a & gt; reading the string will become a strange question about the file_get_contents function of & lt;
Dear heroes, I have encountered such a strange problem.
I use the file_get_contents function to read the template file. if the link in the template is written like this
When a string is read, it becomes a link.
If it is a link, it will not change.
Www is the name of the folder where the page file is stored.
Space I am using the new network virtual host, unix system.
Thank you!
------ Solution --------------------
It's not a php issue. maybe your background system will automatically add this.
------ Solution --------------------
You can create a new page for testing. Impossible. Unless it is affected by other code.
------ Solution --------------------
Search for it. This function is written by humans and is naturally embodied in the naming of classes or functions.
------ Solution --------------------
Where do your constants come from? certainly not from php native
------ Solution --------------------
The items obtained by file_get_contents are automatically changed, right.
Is it displayed with special processing?
------ Solution --------------------
But this Sesssion class does not see the code for parsing the template file and replacing the hyperlink. do you see it?
What's more, will the program not report an error after you comment it out? If no error is reported, what is the purpose of this object?
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