How do I find a file link on a remote server?
For example this is server link: www.example.com And the file I am searching for is uploaded here: www.static.example.com/dir_path/file_name.txt
I know the file name and I know it exists, but how do I find the directory path of that file?
I used php approach using realpath(filename) but it didn't get me proper results. I am trying HTML DOM Parser for now but I have reached a dead end. Can someone please point me in the right direction with some examples, if possible?