security captcha image not dispalyiing in 000webhost
<p>I have uploaded my website on 000webhost but in my registration form the security captcha image is not displaying while it is displaying in my localhost.</p>

<p>My captcha code is:</p>

<pre><code>&lt;?php
include_once('includes/session.php');
$_SESSION['secure']=rand(1000,9999);
header('content-type:image/jpeg');
$text=$_SESSION['secure'];
$font_size=25;
$image_width=200;
$image_height=40;
$image=imagecreate($image_width,$image_height);
imagecolorallocate($image,255,255,255);
$text_color=imagecolorallocate($image,0,0,0);
for($x=1;$x&lt;=40;$x++)
{$x1=rand(1,120);
$x2=rand(1,120);
$y1=rand(1,120);
$y2=rand(1,120);
imageline($image,$x1,$y1,$x2,$y2,$text_color);    
}
imagettftext($image,$font_size,0,15,30,$text_color,'MAGNETOB.TTF',$text);
imagejpeg($image);
?&gt;
</code></pre>

<p>And I'm displaying captcha as:</p>

<pre><code>&lt;img src="captcha1.php" id="captcha" /&gt;
</code></pre>

<p>What's wrong with my code?</p>
