PHP shell模式下执行PHP文件报错

1.在shell下直接运行php文件 出现

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

  错误提示信息

2.解决办法:

  将 vim /etc/php5/cli/conf.d/ming.ini  文件中第一行 # configuration for php MING module 中"#"替换为";" 保存即可。

原文地址:https://www.cnblogs.com/jeesezhang/p/3612979.html