Home > Backend Development > PHP Tutorial > [转]解决PHP Deprecated: Comments starting with '#' are deprecated in 步骤[php5, apach

[转]解决PHP Deprecated: Comments starting with '#' are deprecated in 步骤[php5, apach

WBOY
Release: 2016-06-13 12:05:39
Original
1060 people have browsed it

[转]解决PHP Deprecated: Comments starting with '#' are deprecated in 方法[php5, apach

我在UBUNTU环境下搭建sendmail邮件服务器时, 在安装完sasl2-bin套包时出现了一封本地警告邮件, 提示如下:

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in unknown on line 0

?

根据提示打开这个ming.ini文件, 发现对应的位置是#开头的注释符号, 联想到类似的php.ini文件中的注释是以;开头的,所以试着改成为;

改为:

然后这个警告就不出现了. 原来是现在的PHP不支持#用来做注释符号,而改用了;这个符号, 以后在出现问题时一定不要着急,试着从报警的信息中找到提示信息,然后再按图索骥地找到解决问题的方法;

?

原文网址:http://www.cnblogs.com/wwufengg/archive/2012/09/19/php-comments-starting.html

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