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

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/feed-rss2.php on line 8
php version – unethost無限空間虛擬主機 技術分享部落格 https://blog.unethost.com unethost 專注於提供優質的虛擬主機服務及相關問題解答 Thu, 02 Jun 2016 07:57:35 +0000 zh-TW hourly 1 https://wordpress.org/?v=6.0.8 如何查看自己使用空間的php資訊?(建立 php info) https://blog.unethost.com/how_to_check_or_make_web_host_php_information/ Tue, 17 Nov 2015 03:27:40 +0000 http://blog.unethost.com/?p=2192 閱讀全文 如何查看自己使用空間的php資訊?(建立 php info)]]> php-info_wp

通常想要了解php所使用的版本,或是其函式庫是否有安裝?
都可以透過 php info 這個功能去查詢,
建立info的方式其實相當的簡單,請看我們下列的操作說明:

1. 透過編輯程式,編輯一個 info.php檔案。
   免費編輯程式,請google搜索 pspad,請並安裝最新版本。(任何舊版編輯器的隱憂)
php-info_03

 

透過cpanel控制台的檔案管理,也可以建立
php-info_01php-info_02

或是 shell vim 指令
php-info_04

 

 

2. 本篇直接以pspad編輯器為主。
   
   建立php檔案,名稱為: info.php ,擺上下列三行程式碼,在儲存。
<?php
    phpinfo();
 ?>
php-info_05

 

 

3. 上傳到空間後,在透過瀏覽器開啟,下列是以 unethost.com 為範例:

php-info_06

 

 

有時會有客戶反應,已經透過我們的-虛擬主機切換php,但是好像沒有生效,
這時就可以透過 php info 來查看,切換成功則會顯示不同php版本,
有時雖然已經切換好,但是因為沒有存檔,因而導致切換php版本並沒有成功。

2016/06/02
增加 info.php的載點

(本篇文章由unethost.com客服人員-Michael完成)

註冊網域請點我。我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。

]]>