15,067
edits
(→檔案操作有關) |
|||
| Line 42: | Line 42: | ||
替代解決方法: 使用 console command | 替代解決方法: 使用 console command | ||
* {{kbd | key = <nowiki>/path/to/bin/php -i | grep "變數名稱"</nowiki>}} for {{linux}} | * {{kbd | key = <nowiki>php -i | grep -i "變數名稱"</nowiki>}} 或 {{kbd | key = <nowiki>/path/to/bin/php -i | grep -i "變數名稱"</nowiki>}} for {{linux}} | ||
** {{kbd | key = <nowiki>php -i</nowiki>}} 變數 --info 或 -i ,用途顯示PHP資訊或設定值。(PHP information and configuration 摘錄自{{kbd | key = <nowiki>man php</nowiki>}}) | |||
** | 管線命令 (pipe),詳 [http://linux.vbird.org/linux_basic/0320bash.php#pipe 鳥哥的 Linux 私房菜 -- 學習 bash shell] | |||
** {{kbd | key = <nowiki>grep -i</nowiki>}} 變數 -i 代表忽略搜尋關鍵字或搜尋條件 (pattern) 的大小寫 | |||
* {{kbd | key = <nowiki>/path/to/bin/php -m</nowiki>}} 列出載入的模組<ref>[http://php.net/manual/en/function.extension-loaded.php PHP: extension_loaded - Manual]</ref> | * {{kbd | key = <nowiki>/path/to/bin/php -m</nowiki>}} 列出載入的模組<ref>[http://php.net/manual/en/function.extension-loaded.php PHP: extension_loaded - Manual]</ref> | ||