Answer the question
In order to leave comments, you need to log in
How to connect using PHP to FTP and list FTP files and folders?
How can I make it possible to connect to ftp via php (ftp on another hosting) and display the contents (folders, files) with the ability to download them and that it would be possible to navigate through the folders, as in the example?
Example
Answer the question
In order to leave comments, you need to log in
Start by reading the FTP docs https://www.php.net/manual/en/function.ftp-connect.php
See also https://flysystem.thephpleague.com/v2/docs/ - it makes working with FTP a bit easier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question