1. Question: Why does "APACHE.EXE: cannot determine local host name." appear?
Answer:
Since the Windows version of Apache does not specify ServerName by default, an error will occur during runtime.
The solution is to modify httpd.conf in the conf directory under the Apache installation directory:
- Search for ServerName
- Remove the # sign in front
- Replace the value after ServerName with your own settings, such as localhost
- Save and restart Apache
2, Q: What does the @ in front of the function in the PHP code mean?
Answer:
The function of @ is to ignore the error message generated when calling this function.
【The copyright of this article is jointly owned by the author and Aosuo.com. If you need to reprint, please indicate the author and source】
The above introduces pretty rhythm dear my future Q&A 1 for beginners to PHP, including the content of pretty rhythm dear my future. I hope it will be helpful to friends who are interested in PHP tutorials.