Image print's but it stops every other thing
<p>this is Index file , it's task is to provide values to the cover.php file and get the image in return...</p>

<pre><code>&lt;?php
require('cover.php');


                    $name="Tushar Kesarwani";
                    $id=112200333;
                    $dob="9/9/1990";
                    $email="tushar.kesarwani2@gmail.com";
                    $profilelink="http://www.facebook.com/iamtusharDOTcom";
                    $relationship= "single";


$me = imagecreatefrompng('me.png');


$ob= new createimage();
$ob-&gt;create($name,$id,$dob,$email,$profilelink,$relationship,$me);







?&gt;
&lt;h1&gt;hdhdhdh&lt;/h1&gt;
</code></pre>

<p>this is cover.php, it's task is to create a image </p>

<pre><code>&lt;?php
class createimage
{


    function create($name,$id,$dob,$email,$profilelink,$relationship,$me)
    {




                    $base = imagecreatefromjpeg('fb.jpg');
                    $white = ImageColorAllocate($base, 255, 255, 255); 

                    imagecopy($base, $me, 93, 102, 0, 0, imagesx($me), imagesy($me));

                    $font = 'ARIAL.TTF';
                    $font2='Cacophony Loud.ttf';
                    imagettftext($base, 25, 0, 228, 133, $white, $font2, $name);
                    imagettftext($base, 16, 0, 268, 183, $white, $font, $id);
                    imagettftext($base, 16, 0, 291, 224, $white, $font, $dob);
                    imagettftext($base, 13, 0, 126, 294, $white, $font, $email);
                    imagettftext($base, 13, 0, 126, 323, $white, $font, $profilelink);
                    imagettftext($base, 13, 0, 126, 353, $white, $font, $relationship);
                    // Output and free memory
                    header('Content-type: image/png');
                    imagejpeg($base);
                    imagedestroy($base);


    }

}


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

<p>The problem is that.. images is printing but  tag or anything after the image is not working </p>
