How to parse HTML into PHP to comine with another value in PHP?
<p>I have the following PHP (part) code to create a ZIP file.</p>

<p>The original code is as follows:</p>

<pre><code>$sourcefolder = "./"           ; // Default: "./" 
$zipfilename  = "myarchive.zip"; // Default: "myarchive.zip"
$timeout      = 5000           ; // Default: 5000
</code></pre>

<p>I modified it as follows:</p>

<pre><code>$sourcefolder =   'uploads/output/'.$foldername.'' ; // Default: "./" 
$zipfilename  = ''.$foldername.'.zip'; // Default: "myarchive.zip"
$timeout      = 5000           ; // Default: 5000
</code></pre>

<p>The $foldername is a value I get from a HTML form which works smoothly for $zipfilename above and the value is parsed smoothly. My problem lies that the fact that the source folder may be incorrect when I use this method. I think I have an error in the $sourcefolder string which I can't seem to resolve.</p>

<p>My suspicions is that <code>$sourcefolder =   'uploads/output/'.$foldername.'' ;</code> is incorrect</p>

<p>Any suggestions please?</p>
