解决PHP Deprecated: Comments starting with '#' are deprecated in 方法[php5, apache2, ubuntu]
2012-09-19 10:11
316 查看
我在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不支持#用来做注释符号,而改用了;这个符号, 以后在出现问题时一定不要着急,试着从报警的信息中找到提示信息,然后再按图索骥地找到解决问题的方法;
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不支持#用来做注释符号,而改用了;这个符号, 以后在出现问题时一定不要着急,试着从报警的信息中找到提示信息,然后再按图索骥地找到解决问题的方法;
相关文章推荐
- 关于整合php5,apache2.x,mysql中出现"无法载入 mysql 扩展,请检查 PHP 配置"的解决方法
- PHP Deprecated: Comments starting with '#' are deprecated in *.ini 警告解决办法
- php5.5.15注释问题PHP Deprecated: Comments starting with '#' are deprecated in *.ini 警告解决办法
- 在ubuntu里安装libapache2-mod-php5 php5-mysql mysql-server失败后的解决方法
- php5.3 中显示Deprecated: Assigning the return value of new by reference is deprecated in 的解决方法
- PHP问题:Deprecated: Function split() is deprecated in解决方法
- php5.3 中显示Deprecated: Assigning the return value of new by reference is deprecated in 的解决方法
- ubuntu13.10 源码安装apache2,php5,mysql 遇到的困难和解决方法
- php提示Call-time pass-by-reference has been deprecated in的解决方法[已测]
- php提示Call-time pass-by-reference has been deprecated in的解决方法[已测]
- 解决:PHP Deprecated: Comments starting with '#' are deprecated in ……
- ORA-01089 immediate shutdown in progress - no operations are permitted 解决方法
- php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法
- php出现[#2002 Cannot log in to the MySQL server]解决方法
- laravel post TokenMismatchException in VerifyCsrfToken.php line 53 问题解决方法
- linux 安装php 时出现easy.h should be in /include/curl/ 的解决方法
- PHP安装ionCube插件报错The Loader must appear as the first entry in the php.ini file in Unknown的解决方法
- Windows平台的 PHP 报错 Fatal error: Class COM not found in 的解决方法
- Ubuntu- 彻底干净卸载MySQL、Apache2、Php的方法
- 解决event.layerX and event.layerY are broken and deprecated in WebKit的问题