1. Question: Why does ": cannot determine local host name." appear?
answer:
Since Windows version of Apache does not specify ServerName by default, an error occurs during runtime.
The solution is to modify the conf directory under the Apache installation directory:
- Search ServerName
- Remove the previous # number
- Change the value after ServerName to your own settings, such as localhost
- Save, restart Apache
2. Question: What does @ mean in front of a function in PHP code?
answer:
The purpose of @ is to ignore the error information generated when calling this function.
[The copyright of this article is jointly owned by the author and Aoso.com. If you need to reprint it, please indicate the author and source]
answer:
Since Windows version of Apache does not specify ServerName by default, an error occurs during runtime.
The solution is to modify the conf directory under the Apache installation directory:
- Search ServerName
- Remove the previous # number
- Change the value after ServerName to your own settings, such as localhost
- Save, restart Apache
2. Question: What does @ mean in front of a function in PHP code?
answer:
The purpose of @ is to ignore the error information generated when calling this function.
[The copyright of this article is jointly owned by the author and Aoso.com. If you need to reprint it, please indicate the author and source]