-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
  • 58,877
  • 16
  • 101
  • 156

2 Answers2

1

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

cmorrissey
  • 8,493
  • 2
  • 23
  • 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
  • 14,286
  • 11
  • 68
  • 157