title: How do I exclude absolute paths for tar?
body: <p>I am running a PHP script that gets me the absolute paths of files I want to tar up. This is the syntax I have:</p>
  
  <pre><code>tar -cf tarname.tar -C /www/path/path/file1.txt /www/path/path2/path3/file2.xls
  </code></pre>
  
  <p>When I untar it, it creates the absolute path to the files. How do I get just <code>/path</code> with everything under it to show?</p>