File() command and fiel not found
Posted: Sun Oct 16, 2005 10:35 am
Hello,
I am trying to read the contents of a file into an array using the file() command. The file is on an ftp site which has anonymous access and I can see the contents of the file if I browse to it. When I try to use the file command I get a warning that the file command failed to open stream.
I have used this sort of code before with other ftp sites so I am wondering if the problem is file permissions on the ftp server. If I can see the contents of the file in a brower is still possible the file is protected from the file command?
Any suugestions would be appreciated
Thanks
George
I am trying to read the contents of a file into an array using the file() command. The file is on an ftp site which has anonymous access and I can see the contents of the file if I browse to it. When I try to use the file command I get a warning that the file command failed to open stream.
I have used this sort of code before with other ftp sites so I am wondering if the problem is file permissions on the ftp server. If I can see the contents of the file in a brower is still possible the file is protected from the file command?
Any suugestions would be appreciated
Thanks
George