Home > Backend Development > PHP Tutorial > Questions and answers for newbies learning PHP (2)

Questions and answers for newbies learning PHP (2)

WBOY
Release: 2016-08-08 09:33:27
Original
948 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 ServerName
- Remove the # sign in front
- Replace the value after ServerName with your own settings, such as localhost
- Save and restart Apache
-------------------------------------------------- --------------------
Question 2: Why do I always get a path error when using the session function of php4 under WINDOWS?
Answer 2:

It may be a BUG of 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 change
session.save_path
The value of is set to
./


The above introduces the questions and answers for beginners to learn PHP (2), including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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