PHP低級錯誤!

來源:互聯網
上載者:User

標籤: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] php5]# 


本文出自 “[email protected]” 部落格,轉載請與作者聯絡!

PHP低級錯誤!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.