我想php只能读取相对和绝对路径上面的文件吧!!其他的我想不行吧!

解决方案 »

  1.   

    请问nbufo 
    相对和绝对路径有什么不同???
    如果我要读取C;\WW\WW.TXT文件要如何写地址??
      

  2.   

    你可以试试
    $fp = fopen("c:\\ww\\ww.txt", "r");
    附:
    在一些语言中"\"要换成"\\"(比如C)
      

  3.   

    当然可以了本地
    $content = implode("",file("c:\www\www.txt"));
    URL
    $content = implode("",file("http://www.csdn.net"));
      

  4.   

    polygame(polygame)兄这是我改的:
    $content = implode("",file("c:\tt.txt"));出现的问题:
    Warning: file("c: t.txt") - Invalid argument in c:\apache\htdocs\20.php3 on line 5
    Warning: Bad arguments to implode() in c:\apache\htdocs\20.php3 on line 5
    could not open file
      

  5.   

    polygame(polygame) 你的方法有点问题!??