Q & A for beginners of PHP. 1. Q: Why does "APACHE. EXE: cannotdeterminelocalhostname." appear ."? A: Because ServerName is not specified by default for Apache of Windows, an error occurs during running. Solution 1: Why does "APACHE. EXE: cannot determine local host name." appear ."?
A:
Because ServerName is not specified by default for Apache in Windows, an error occurs during running.
The solution is to modify httpd. conf in the conf directory under the Apache installation directory:
-Search ServerName
-Remove the # sign
-Replace the value after ServerName with your own settings, such as localhost.
-Save and restart Apache
2. Q: What does @ in front of a function in PHP code mean?
A: "@" is used to ignore the error message generated when the function is called.
Cannot determine local host name ."? A: Because ServerName is not specified by default for Apache of Windows, an error occurs during running. Solution...