The following code working fine when use in simple php but when i use the same in laravel view then it show me the error
Code
header('Content-Type: text/html; charset=ISO-8859-1');
$im = @imagecreatetruecolor(120, 20)
or die('Cannot Initialize new GD image stream');
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
imagepng($im);
imagedestroy($im);
Error in laravel
Simple PHP output
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire