llyang 大佬有话说 : 2020-3-27 22:18:47
看不懂的curl指令
本帖最后由 llyang 于 2020-3-27 22:30 编辑
curl -sS https://getcomposer.org/installer | php
平常只会 -o -O 甚至直接跟网址
麻烦解释下 -sS 和 | php
这个居然下载的文件是composer.phar, 更是一头雾水
一个不知名网友 大佬有话说 : 2020-3-27 22:20:00
你去解读一下不就行了,基本操作
榆木 大佬有话说 : 2020-3-27 22:22:27
-S, –show-error Show error even when -s is used
-s, –silent Silent mode
JOSH 大佬有话说 : 2020-3-27 22:23:05
难道你的电脑不能百度?:lol
proc 大佬有话说 : 2020-3-27 22:54:17
找男人 (man)
榆榆不可及 大佬有话说 : 2020-3-27 23:01:45
curl –help 看一下就知道了
| 是管道符交给后面php来执行
Function 大佬有话说 : 2020-3-27 23:05:16
https://wangchujiang.com/linux-command/c/curl.html
自取,话说不是很常用么
tradekey1h 大佬有话说 : 2020-3-27 23:07:16
关键在于 |
把curl的结果,转成php的输入。
再具体点,把https://getcomposer.org/installer这个页面上的代码,直接用PHP执行
llyang 大佬有话说 : 2020-3-27 23:08:49
榆榆不可及 大佬有话说 : 2020-3-27 23:01
curl –help 看一下就知道了
| 是管道符交给后面php来执行
嗯嗯,我关心的就是这个管道。
听的有点朦胧明白
llyang 大佬有话说 : 2020-3-27 23:12:03
tradekey1h 大佬有话说 : 2020-3-27 23:07
关键在于 |
把curl的结果,转成php的输入。
再具体点,把https://getcomposer.org/installer这个页面上的代 …
谢谢大佬,有点似懂非懂了。