Home arrow Blog arrow Open source arrow Open source arrow PHP Notice: Undefined variable 的解决方法
Home    Contacts
Main Menu
Home
Blog
News
English Study
Links
News Feeds
Wrapper
Media Gallery
Contact Me
Hot Links
Mambo Foundation
Mambo Site Ground
On Line Translation
MamboXchange
Mambo China
Administrator
Search
Syndicate
Dec 27 2009
PHP Notice: Undefined variable 的解决方法 Print E-mail
Written by Hugh Wu   
Dec 27, 2009 at 12:03 AM

本来PHP是不用预先定义Variable的!但既然Error出来了,就只能改php.ini啦!

在php.ini找到Error handling and logging部分对error_reporting就有详细解释了。
最简单的方法就是把error_reporting = E_ALL去掉就好了!

第二种方法:如果不能改php.ini的,就加 Error_Reporting(E_ALL^E_NOTICE); 到引起出错的php页面最开头的地方就搞定了!!!

Good luck!

 


User Comments
Your Name / Email Address

Last Updated ( Dec 27, 2009 at 12:18 AM )
Popular