title: how do i get a random file's url (from a directory & subdirectories) & return it to a id's href?
body: <p>I tried a php solution but was told in my last question I "can't read/list a directory over HTTP. You'll need to use a different protocol to list a directory over the internet: FTP, SSH, etc. You'll need access to the remote server to do this. If the only thing you can use is HTTP, you'll need to retrieve the webpage (= the HTML document) and parse it yourself." ( <a href="https://stackoverflow.com/questions/5774120/how-to-get-a-php-script-to-print-work">How to get a php script to print/work</a> )</p>
  
  <p>I would like it to be simple - I can do HTML, I am learning Java, and I am just floundering around with PHP.</p>
  
  <p><strong>Update:</strong> an example. file.txt, file2.txt, &amp; file3.txt are in /some/directory - I want a PHP script to grab one RANDOMLY &amp; give it to me in a way I can put it in the href of an element. If not PHP, something else? thanks.</p>