Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question