title: php and symbolic links
body: <p>I want to make a temporary copy of a file to download so I used symbolic links. It works on my localhost but when I upload it it doesn't work !! I checked the permissions of my "tmp" directory .
  Here is the code :</p>
  
  <pre><code>$symlink = GenName($name);
  $pwd = exec("pwd");
  exec('ln -s "'.$pwd.'/videos/'.$name.'" "'.$pwd.'/tmp/'.$symlink.'"');
  </code></pre>
  
  <p>Any Idea how to fix it or another idea to protect original file and provide a temporary file of course not a copy ,no space !!!</p>