码迷,mamicode.com
首页 > Web开发 > 详细

PHP低级错误!

时间:2016-09-19 22:51:29      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:php低级错误!

语法报错:

[root@xxxx 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


原因:习惯了#当做注释,忽略了一些注释方式用的是;//或者其他。

[root@xxxx ~]# /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

[root@loganalyzer ~]#


解决:将php.ini 添加的东西注释修改成;即可!

[root@xxxx php5]# /etc/init.d/php-fpm restart

Gracefully shutting down php-fpm . done

Starting php-fpm  done

[root@loganalyzer php5]# 


本文出自 “renzhiyuan@chinacfsc.com” 博客,转载请与作者联系!

PHP低级错误!

标签:php低级错误!

原文地址:http://renzhiyuan.blog.51cto.com/10433137/1854063

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!