php path issue, solution needed
<p>The following code works when I place this script in the root </p>

<pre><code>if (file_exists("pics/2012/Blackhall Primary/" . $_FILES["file"]["name"]))
      {
      echo $_FILES["file"]["name"] . " already exists. ";
      }
</code></pre>

<p>but if I move my script to a folder /teacher/ it no longer works.</p>

<p>I thought make the path ~/pics/2012/blackhall primary/ would work but it does.</p>

<p>Any ideas? Thanks</p>
