2013-08-01 18 views

回答

0

可以使用method_exists()方法來獲取函數存在或不存在。

method_exists('Directory','read'); 
       ^^^   ^^^ 
       class_name method_name 

,並使用下面的代碼

ini_set('error_reporting', E_ALL); 

在你的PHP代碼的頂部得到的所有錯誤。

+0

我也試過了,但沒有任何反應。php.ini被配置爲開發模式,日誌錯誤報告等都在 – abenevaut

+0

@ user2090870你也可以檢查通過設置display_errors就像這樣:'ini_set('display_errors',「on」);'也試試這個。 –

相關問題