【发布时间】:2016-02-17 09:30:47
【问题描述】:
我正在使用这个 cmd
php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
我得到的输出
警告:file_get_contents(https://symfony.com/installer):打开流失败 : 无法连接,因为目标机器主动拒绝。 在第 1 行的命令行代码中
i 在代理上,因此上面的 cmd 将无法直接工作。
我找到了一些关于堆栈溢出的解决方案 Install Symfony on Windows behind proxy server with NTLM authentication 但它不适合我
我尝试设置 http_proxy 和 https_proxy 环境变量,但它对我有用 由于 ssl 是否有任何问题的可能性?
【问题讨论】: