Referencing a subfolder on server with local site being root
<p>This maybe a simple task, but I build sites in php locally and then upload them to a subfolder for clients approval. All this is fine, but when i'm building the site, I use references to the root, such as:</p>

<pre><code>&lt;link rel="stylesheet" type="text/css" href="/stylesheets/css/custom.css"&gt;
</code></pre>

<p>And when this is published to the site it is obviously a level to low. What would be the bet way (mainly for ease of life for me) to just upload files with-out having to remember to change the paths.</p>

<p>I did use </p>

<p><code>&lt;? $root = "subfolder/"; ?&gt; 
&lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $root;?&gt;/stylesheets/css/custom.css"&gt;
</code></p>

<p>But it seems a bit clunky... Hope this makes sense...</p>
