How to develop for multiple websites in parallel?
<p>If it makes any difference, I am using Xampp on windows for my web server &amp; PHP (all web pages are PHP based, some include JS, all include CSS file).</p>

<p>The point is that I have a local directory which represents <code>http://localhost</code> and if I want to develop multiple websites I have to copy them all under that directory.</p>

<p>And since most of them have CSS, images and many have JS, I end up with the images/JS/CSS for all websites mixed in to <code>http://localhost/images</code>, <code>http://localhost/css</code>, etc.</p>

<p>And when I come to upload them it's a nightmare. I am worried that I might forget to upload some vital files, or to upload files that do not belong to the site.</p>

<p>What's the solution?</p>

<p>In my case, all files are PHP, so should I tweak <code>$_SERVER['DOCUMENT_ROOT']</code> but I wonder what the general approach by professional web designers is.</p>
