title: Download files above web root and list them
body: <p>I am trying make a php script to list the files of a folder above my web directory...I follow a small thing I found here which talked about</p>
  
  <p>a symlink pointing to /var/uploads </p>
  
  <p>a Apache Alias directive Alias /uploads /var/uploads </p>
  
  <p>I did both of these.</p>
  
  <p>$myDirectory = opendir("/var/stuff/stuff/");</p>
  
  <p>That directory there links to like when I go in winscp and click that folder it directs me to it....and when I run my script to list all files inside /var/stuff/stuff/ it lists what is in /home/stuff/stuff.</p>
  
  <p>The thing is when I click the links that it produces I get a not found on the server
  The requested URL /stuff was not found on this server.</p>
  
  <p>Would someone please be able to assist me with this?</p>