PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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?
it should only need read access via the ftp server.
it appears it should be okay, but you may have some errors that you aren't showing or aren't detecting related to the execution.. may want to research using the ftp commands as well...