Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
如何快速解決因為升級php版本,導致的程式問題呢? – unethost無限空間虛擬主機 技術分享部落格

如何快速解決因為升級php版本,導致的程式問題呢?

近年來,php更新速度太快,導致早期開發的網站程式,可能因為新舊函式庫的相容性問題,因而導致網站無法應用的窘況,現在為了解決這樣的狀況,並可以先給修改程式一個緩衝,我們提供可自選php版本的方式。

最常見的狀況:

1.  php 5.3 以後的版本,已經沒有支援 register_globals ,但在 php 5.2 以前,尚有許多網站,都有使用到 register_globals,一但關掉 register_globals 後,網站的功能都將失效,只好在程式修正之前,先暫用 php 5.2 並開啟 register_globals
php_selector2

2. 套裝程式的模組,因升級 php 5.4 後,導致網站無法使用,並出現錯誤訊息。為了不影響當前的使用,先將PHP切回 php5.2 就可先解決該錯誤訊息,後續的在逐步升級模組。
php_error_message

 

如果網站有以上的狀況,請參考 unethost.com 的  php 切換教學

延伸閱讀:  如何解決 Fatal error: Class ‘mysqli’ not found in

更多請看: 設定php函式庫,安裝或是設定PDFlib!?