[function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version Not Supported in C:\xampp-win32-1.7.2\xampp\htdocs\ceshi\post.php on line 58

解决方案 »

  1.   

    php.ini中设 allow_url_fopen=On 
      

  2.   

    那只能证明你的php.ini有问题:884 ;;;;;;;;;;;;;;;;;;
    885 ; Fopen wrappers ;
    886 ;;;;;;;;;;;;;;;;;;
    887
    888 ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    889 ; http://php.net/allow-url-fopen
    890 allow_url_fopen = On
      

  3.   

    .......额 这是一个很神奇的文件 我们一般叫它配置文件 
    phpinfo();找到Loaded Configuration File这个就是php.ini的路径
      

  4.   


    Loaded Configuration File  C:\xampp-win32-1.7.2\xampp\php\php.ini 
    按照你的方法 找到的 但是我打开这个\xampp-win32-1.7.2\xampp\php\ 居然没有php.ini确实是个神奇的事情
      

  5.   


    隐藏文件? 那么里面有.ini的文件有哪些?php.ini-development 有没有?有的话将这个文件修改成php.ini
      

  6.   


    嗯 是的 
    ;;;;;;;;;;;;;;;;;;
    ; Fopen wrappers ;
    ;;;;;;;;;;;;;;;;;;Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    http://php.net/allow-url-fopen
    allow_url_fopen = On; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
    ; http://php.net/allow-url-include
    allow_url_include = Off
      

  7.   

    不可能没有吧???
    用phpinfo里看看