Access to the website declined
<p>I am building a shopping cart and one product may have more than one picture. I have a main folder called img_products and within this folder others folders are created when the website administrator add products. For example: If the product belongs to the category 1 and subcategory 2 it creates inside of img_products the folder 1 and inside of 1 it creates the folder 2 and automatically inside of the 2 creates a thumbs folder, so we will have img_products/1/2/thumbs. Inside of folder 2 he/she will upload the main picture and a thumbnail format picture is generated inside of the thumbs folder.
The thing is, I am try to link the little thumbnails in my site so when the visitor clicks on it, the target file will be the picture out of thumbs folder. But I just got the error:</p>

<p><strong>The website declined to show this webpage</strong> </p>

<p>I've checked the paths outputting them to a echo and looks right!
Please, see the code below:</p>

<pre><code>&lt;?php 
  if(file_exists("img_products/$tbl_cat_id/$tbl_scat_id/thumbs")){

     $files = glob("img_products/$tbl_cat_id/$tbl_scat_id/thumbs/*.*");
     $files2= glob("img_products/$tbl_cat_id/$tbl_scat_id/*.*");

     for ($i=0; $i&lt;count($files); $i++) {$num = $files[$i]; $num2 = $files2[$i];

        echo '&lt;div class="quadro"&gt;&lt;a href="&lt;img src="'.num2.'"  alt="random image"&gt;&lt;img src="'.$num.'" alt="random image"&gt;&lt;/a&gt;'."&amp;nbsp;&amp;nbsp;";  

     }
  }
?&gt; 
</code></pre>

<p>Where <strong>$tbl_cat_id</strong> is the variable that hold the <strong>category code</strong> and
<strong>$tbl_scat_id</strong> holds the <strong>subcategory code</strong></p>

<p>I can perfectly see the image thumb but I can't go beyond this point.</p>
