I am trying to include a dir listing into a page but can't seem to get it to work.
I am accessing the page from "http://mainsite.com/dl.php"
$url = "http://mysite.com/files";
include ($url);
This shows up fine and I see all the files in $url. The problem is when I click on any file it doesn't work.
i.e. I click on a file name "test.zip". The url shows "http://mainsite.com/test.zip" and of course the file is not found.
$url is on a different server and location.
Any ideas how to make it work?