Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/238.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
Php 文件获取apache下isa代理背后的内容_Php_Proxy - Fatal编程技术网

Php 文件获取apache下isa代理背后的内容

Php 文件获取apache下isa代理背后的内容,php,proxy,Php,Proxy,我正在开发一个脚本,用于访问远程站点数据。为此,我使用了file\u get\u contents()函数。它在家里工作很好,但在办公室里没有连接。 在谷歌搜索之后,我发现使用了带有file\u get\u contents() 我的脚本如下,这是我从stackoverflow的线程中得到的 此输出有一个错误 [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 407 Proxy

我正在开发一个脚本,用于访问远程站点数据。为此,我使用了
file\u get\u contents()
函数。它在家里工作很好,但在办公室里没有连接。 在谷歌搜索之后,我发现使用了带有
file\u get\u contents()

我的脚本如下,这是我从stackoverflow的线程中得到的

此输出有一个错误

[function.file-get-contents]: failed to open stream: HTTP request failed! 
HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
authorization to fulfill the request. Access to the Web P in 
D:\php\docs\url.php on line 7
真正的问题是,在office中,他们使用ISA代理服务器,而我在apache上使用PHP

  • 我是否需要使用窗口登录作为 用户ID还是其他什么
  • 我路过的时候做错了什么 代理授权的用户ID和密码?或
  • 我现在做的不是正确的方式吗
  • 请建议我如何或如何使
    文件\u获取\u内容
    通过代理服务器工作。
    提前感谢

    我认为curl也会有同样的问题,需要使用代理头进行身份验证
    [function.file-get-contents]: failed to open stream: HTTP request failed! 
    HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
    authorization to fulfill the request. Access to the Web P in 
    D:\php\docs\url.php on line 7