Captcha image not loading?
<p>How do I get this to load? Right now, it's not showing any image at all... I'm not really that great at creating captcha's because I usually never do this.</p>

<p>captcha.php:</p>

<pre><code>&lt;?php
$string = '';
for ($i = 0; $i &lt; 5; $i++) {
    // this numbers refer to numbers of the ascii table (lower case)  
    $string .= chr(rand(97, 122));
}
$image = imagecreatetruecolor(170, 60);
$color = imagecolorallocate($image, 200, 100, 90); // red
$white = imagecolorallocate($image, 255, 255, 255);
imagefilledrectangle($image,0,0,399,99,$white);
imagettftext ($image, 30, 0, 10, 40, $color, ASSETPATH."arial.ttf", $string);
header("Content-type: image/png");
imagepng($image);
?&gt;
</code></pre>

<p>register.php:</p>

<pre><code>&lt;?php echo '&lt;img src="'.ASSETPATH.'img/captcha.php" /&gt;'; ?&gt;
</code></pre>

<p>My asset path IS correct because I'm using it elsewhere and it loads perfectly fine. Is the MVC format of this project messing it up somehow??</p>
