Home > php教程 > php手册 > body text

针对初学PHP者的疑难问答(1)

WBOY
Release: 2016-06-13 12:37:52
Original
917 people have browsed it

1,问:为什么出现“APACHE.EXE: cannot determine local host name.”?
  答:

由于Windows版本的Apache默认情况下不指定ServerName,所以运行时会出错。

解决的办法是修改Apache安装目录下的conf目录下的httpd.conf:
- 搜索ServerName
- 去掉前面的#号
- 把ServerName后面的值换成你自己的设置,如localhost之类的
- 保存,重新启动Apache
2,问:PHP代码中函数前面的@是什么意思?
  答:

  @的作用是忽略调用该函数时产生的错误信息。

【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】    

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!