How do I set relative paths in PHP?
<p>I have an absolute path of (verified working)</p>

<pre><code>  $target_path = "F:/xampplite/htdocs/host_name/p/$email.$ext";
</code></pre>

<p>for use in </p>

<pre><code>move_uploaded_file($_FILES['ufile']['tmp_name'], $target_path
</code></pre>

<p>However when I move to a production server I need a relative path:</p>
