As far as I have read, PHP can only get the file listing from local server on which script is running.
What I need is the list of files in a directory on an external URL, which is not FTP but an HTTP URL, such as http://www.google.com. Is this possible in PHP?
Here is example of what I want (but FDM is C++ app)!

Free download manager does not show the files in the folder, but all the links found on the web page. You can get a web page with curl, and grab all links from it (using regular expressions), then download the linked pages – that’s how web-spiders are build. But you cannot get list of the files that are on the server, only the one that are linked in a publicly available web-page.