Home > Backend Development > PHP Tutorial > Questions and Answers for Beginners to PHP (2)_PHP Tutorial

Questions and Answers for Beginners to PHP (2)_PHP Tutorial

WBOY
Release: 2016-07-21 16:02:04
Original
887 people have browsed it

Question 1: Why does "APACHE.EXE: cannot determine local host name." appear?

Answer 1:
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, restart Apache
------------------------------- ------------------------------------------
Question 2: Why? When using the SESSION function of PHP4 under WINDOWS, does it always report a path error?
Answer 2:

It may be a BUG in PHP4.0 under WINDOWS. The solution is to set the path where the SESSION is saved to the current path (only in this way will there be no package errors).

The method is to modify php.ini and set the value of
session.save_path
to
./

[The copyright of this article is jointly owned by the author and Oso.com, If you need to reprint, please indicate the author and source]

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316681.htmlTechArticleQuestion 1: Why does "APACHE.EXE: cannot determine local host name." appear? Answer 1: Since the Windows version of Apache does not specify ServerName by default, an error will occur during runtime. Solve...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template