Image processing using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



hai,
        I am using the code :
 <?php
                       Header("Content-type: image/jpeg");
                        $image = ImageCreate(200,150);
                        $black = ImageColorAllocate($image,204,204,204);
                        $blue = ImageColorAllocate($image,0,0,255);
                        ImageLine($image,10,10,150,30,$blue);
                        ImageJPEG($image);
                        ImageDestroy($image);
?>

   to generate and image and i am getting problems in displaying the
same.when execute this script i don't get either error or image.is the
code correct or should i add something to support this.
 i am using openBSD m/c and php is running on this.Some book suggested me
abt GD library.how do i check whether that is present in the machine.any
other alternative for this.
 pls help in this matter.
   hoping for a positive reply
           Arun



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux