Server Real Path
<p>I wonder whether someone may be able to help me please.</p>

<p>I'm trying to retrieve the file path for an xml file that I use to in a image gallery script I'm building.</p>

<p>My folder structure is as follows:</p>

<blockquote>
  <p>website/development/UploadedFiles/'username'folder/'location'
  folder/file.xml</p>
</blockquote>

<p>I've put together this to try and get me the path:</p>

<pre><code>&lt;?php
chdir('var/www/');
echo realpath('./././file.xml');
?&gt; 
</code></pre>

<p>But I receive the following error:</p>

<blockquote>
  <p>Warning: chdir() [function.chdir]: No such file or directory (errno 2)
  in /homepages/2/d333603417/htdocs/development/real.php on line 2</p>
</blockquote>

<p>I'm sure that I'm making a beginners mistake here, but I wanted to have at least given it a try. I just wondered whether someone could possibly take a lok at this please and let me know where I'm going wrong.</p>

<p>Many thanks</p>
