2012-04-24 83 views
0

請幫助我,我已經通過htaccess的設置錯誤日誌:在PHP中的所有錯誤路徑

php_flag log_errors On 
php_value error_log errors/log/errors_log.txt 
php_flag display_errors On 
php_value error_reporting 6135 

它工作正常,但有一個小問題,F.E.我有自己的功能,這是近適用於所有腳本我的網站上,並在這個函數內發生這樣的錯誤:

[24-Apr-2012 23:33:11] PHP Warning: trim() expects parameter 1 to be string, array given in /path/public_html/req/functions.php on line 200 

,現在的問題是,我不知道在哪個腳本這個錯誤發生,它只能說明路徑,其中函數聲明,但不顯示的方式,在這個函數內傳遞變量這個錯誤原因。

在這裏任何簡單的方法如何顯示所有錯誤的路徑?

在此先感謝

+0

我會在這個函數裏尋找函數'trim'。 – Arend 2012-04-25 06:35:03

回答