-8
header("Content-type: image/jpeg");
$resim  = imagecreate(250,250); 
imagejpeg($resim);
imagedestroy($resim);

hello , I wrote the above code and I got an error like in the picture.

enter image description here

Rizier123
  • 57,440
  • 16
  • 89
  • 140

2 Answers2

1

You need to install the GD Library with your php install http://php.net/manual/en/image.installation.php

cmorrissey
  • 8,348
  • 2
  • 18
  • 27
1

Enable error reporting:

ini_set('display_errors', '1');
error_reporting(E_ALL);

Enable this extension in php.ini and restart apache:

extension=php_gd2.dll
Whirlwind
  • 13,561
  • 7
  • 57
  • 141