好文章紀錄:
http://www.ichiayi.com/wiki/tech/mantis_coding
miggo 發表在 痞客邦 留言(0) 人氣(205)
今天上傳將PHP程式,上傳到一台虛擬主機中
出現以下的錯誤訊息
Warning: Call-time
pass-by-reference has been deprecated; If you would like to pass it by
reference, modify the declaration of [runtime function name](). If you would
like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file in
/home/XXX/XXX/inc_log.php on line 6
檢查一下,原來是PHP不建議此種寫法
miggo 發表在 痞客邦 留言(0) 人氣(2,477)
程式開發上都會使用到一些framework,在目錄設定上很麻煩都須修改php.ini內容
但是在上一個專案上遇到困難了...客戶是使用虛擬主機
解決方法有兩種,第一個是可以在.htaccess檔案裡,寫入以下資料
php_value include_path ".:/home/www/htdocs/message/library/"
miggo 發表在 痞客邦 留言(1) 人氣(1,331)