Y
Y
Yuri Petrashevich2014-10-29 14:09:39
linux
Yuri Petrashevich, 2014-10-29 14:09:39

Mount FTP. PHP - how to read a file from a mounted folder?

I mounted an FTP directory, I try to read a file in it using readfile, I get an
error Warning: readfile (directory / filename): failed to open stream: Permission denied
Changing the rights to the mounted folder, as I understand it, is unrealistic.
Can you tell me how to read the file?
mounted like this
$ mkdir temp-ftpfs
$ curlftpfs ftp://$USER:[email protected]$HOST/ temp-ftpfs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mind3, 2014-10-29
@mind3

Most likely it is necessary to do so And what are the rights to read a folder or file in general? Check the read permissions of the file on the server for all users. Try to access the file through the terminal, at the same time look at what rights. Maybe you should mount via NFS ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question