title: play wav file in server when file is in different directory
body: <p>i'm trying to make an web site where the user can listen to different wav files. 
  I made a <code>php</code> script to get all <code>.wav</code> files that i want and i keep their path on an array.</p>
  
  <p>Then im doing this to play the audio:</p>
  
  <pre><code>echo "&lt;a href='teste.wav'&gt;Play sample 1 &lt;/a&gt;";
  echo "&lt;a href='" .$audios[$id][1] ."'&gt;Play sample 2 &lt;/a&gt;";
  ?&gt;
  &lt;script src="http://mediaplayer.yahoo.com/js&gt;&lt;/script&gt;
  </code></pre>
  
  <p>On the first case i got the audio on same folder as the script and it works fine. On  the second case i have it in a completely different directory and it never finds the file.
  I know that the sample 2 will ref to something directly under the current directory where the script is being executed, but i tried to make the <code>$audios[$id][1]</code> like <code>http://home/.../file.wav</code> and still doesn't work.</p>
  
  <p>Any idea how to fix this?</p>