Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssh 找不到编写器下载选项错误_Ssh_Download_Composer Php - Fatal编程技术网

Ssh 找不到编写器下载选项错误

Ssh 找不到编写器下载选项错误,ssh,download,composer-php,Ssh,Download,Composer Php,我正在尝试下载composer,但它不起作用。。。 我使用了以下命令行: 以下是回应: php -r "readfile('https://getcomposer.org/installer');" | php Error in argument 1, char 2: option not found r Content-type: text/html Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>] php &l

我正在尝试下载composer,但它不起作用。。。 我使用了以下命令行: 以下是回应:

    php -r "readfile('https://getcomposer.org/installer');" | php
Error in argument 1, char 2: option not found r
Content-type: text/html

Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
       php <file> [args...]
  -a               Run interactively
  -C               Do not chdir to the script's directory
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.  Implies `-q'
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -q               Quiet-mode.  Suppress HTTP Header output.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.
php-r“readfile('https://getcomposer.org/installer“);”php
参数1中的字符2出错:找不到选项r
内容类型:text/html
用法:php[-q][h][s][v][i][f]
php[args…]
-以交互方式运行
-C不chdir到脚本的目录
-c |在此目录中查找php.ini文件
-n不使用php.ini文件
-d foo[=bar]使用值“bar”定义INI条目foo
-e生成调试器/探查器的扩展信息
-f解析。暗示`-q'
-这有什么帮助
-我需要PHP信息
-仅限语法检查(lint)
-m显示在模块中编译
-q安静模式。抑制HTTP头输出。
-s显示颜色语法高亮显示源。
-v版本号
-w显示带有删除注释和空白的源代码。
-z加载Zend扩展。
-您必须至少升级到5.3,但请记住,对PHP 5.3的安全支持在几年前就结束了,最新且唯一受支持的版本是5.6(7.0版即将推出)

如果你还在生产PHP 5.2,你应该考虑升级。

——你必须升级到至少5.3,但是记住PHP 5.3的安全支持在几年前就结束了,最新的和唯一支持的版本是5.6(版本7就在拐角处)。


如果你还在生产PHP 5.2,你应该考虑升级。

你使用哪种PHP版本?只需在终端运行
php-v
,我会检查一下。请稍等。我使用的是5.2.17版。您能提供该命令的完整输出吗?由于可能无法启用cli不抱歉,我指的是
php-v
命令的完整输出您使用哪个php版本?只需在终端运行
php-v
,我会检查一下。请稍等。我使用的是5.2.17版。您能提供该命令的完整输出吗?因为可能没有启用cli不抱歉,我指的是
php-v
命令的完整输出