但是我通过浏览器来浏览"http://webaddress/file.index"是好的,为什么用fopen("http://webaddress/file.index","r");却不能读出内容呢?

解决方案 »

  1.   

    在什么地方的设置问题呢??
    记得前段时间设置过php.ini这个文件!但是我设置的是有关SENDMAIL的问题呀!
      

  2.   

    fopen("http://webaddress/file.index","rb");
    这样试试。
      

  3.   

    对了,如果是Windows平台你应该这样用:
    fopen("http:\\\webaddress\\file.index","r");
      

  4.   

    问题是解决了,但是我是通过把php.ini这个文件移除重新启动APACHE解决的!
    不知道PHP.INI里面那项是对文件操作进行设置的??
      

  5.   

    ;;;;;;;;;;;;;;;;;;
    ; Fopen wrappers ;
    ;;;;;;;;;;;;;;;;;;; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    allow_url_fopen = On