PHP低级错误!
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP低级错误!相关的知识,希望对你有一定的参考价值。
语法报错:
[[email protected] php5]# /etc/init.d/php-fpm restart
acefully shutting down php-fpm . done
Starting php-fpm [19-Sep-2016 14:48:36] NOTICE: PHP message: PHP Deprecated: Comments starting with ‘#‘ are deprecated in /usr/local/php5/php.ini on line 1833 in Unknown on line 0
[19-Sep-2016 14:48:36] NOTICE: PHP message: PHP Deprecated: Comments starting with ‘#‘ are deprecated in /usr/local/php5/php.ini on line 1834 in Unknown on line 0
done
原因:习惯了#当做注释,忽略了一些注释方式用的是;//或者其他。
[[email protected] ~]# /usr/local/php5/bin/php --version
PHP 5.4.38 (cli) (built: Jul 13 2016 16:57:59)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
[[email protected] ~]#
解决:将php.ini 添加的东西注释修改成;即可!
[[email protected] php5]# /etc/init.d/php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm done
[[email protected]nalyzer php5]#
本文出自 “[email protected]” 博客,转载请与作者联系!
以上是关于PHP低级错误!的主要内容,如果未能解决你的问题,请参考以下文章