[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
嗯 是的 ;;;;;;;;;;;;;;;;;; ; 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
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
phpinfo();找到Loaded Configuration File这个就是php.ini的路径
Loaded Configuration File C:\xampp-win32-1.7.2\xampp\php\php.ini
按照你的方法 找到的 但是我打开这个\xampp-win32-1.7.2\xampp\php\ 居然没有php.ini确实是个神奇的事情
隐藏文件? 那么里面有.ini的文件有哪些?php.ini-development 有没有?有的话将这个文件修改成php.ini
嗯 是的
;;;;;;;;;;;;;;;;;;
; 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
用phpinfo里看看