當前位置:編程學習大全網 - 網站源碼 - Notice: Undefined variable: data in D:\freehost\yonyea1\web\includes\lib_base.php on line 1255

Notice: Undefined variable: data in D:\freehost\yonyea1\web\includes\lib_base.php on line 1255

Notice意思是使用了沒有被聲明的變量,程序不會影響使用。還是能正常運行的,就是不雅觀。

解決辦法有4個:

1:在上面初始化

2:打開php.ini文件

修改配置文件

error_reporting設置:

找到error_reporting=E_ALL

修改為error_reporting=E_ALL & ~E_NOTICE

3:用include把 error_reporting(E_ALL & ~E_NOTICE);寫進去

4:直接在文件最上面加個error_reporting(0);

  • 上一篇:還可以在95年代的學習機裏餵寵物
  • 下一篇:我要考中國農大的葡萄酒專業要多少分?在京考
  • copyright 2024編程學習大全網