PHP CLI突然停止在服務器上工作。當運行任何PHP文件,甚至php -v來獲取PHP版本時,我得到以下錯誤。在Linux上的php cli不工作
感謝
# php -v
Unknown option: v
php [-f from_encoding] [-t to_encoding] [-s string] [files...]
php -l
php -r encoding_alias
-l,--list
lists all available encodings
-r,--resolve encoding_alias
resolve encoding to its (Encode) canonical name
-f,--from from_encoding
when omitted, the current locale will be used
-t,--to to_encoding
when omitted, the current locale will be used
-s,--string string
"string" will be the input instead of STDIN or files
The following are mainly of interest to Encode hackers:
-D,--debug show debug information
-C N | -c | -p check the validity of the input
-S,--scheme scheme use the scheme for conversion
檢查您的搜索路徑任何調用自己的PHP不是 – 2012-03-20 09:58:03