php5.3 解决警告:Notice: Undefined index: argc in

来源:互联网 发布:qq三国js加智力 编辑:程序博客网 时间:2024/04/30 14:16

新安装的wamp2.1e版本默认安装了php5.3的版本。

之前可以正常显示的页面上方,出现了很多警告信息:

Notice: Undefined index: argc in

Notice: Undefined index: argv in

 

解决的办法:

休息php.ini文件

register_argc_argv = On

error_reporting  =  E_ALL & ~E_NOTICE

 

 

重新启动所有的服务,警告就不在显示了;