par
nougitch » 04 mai 2006, 14:44
Bonjour,
Je suis sous EasyPhp v.1.8 et impossible de générer la moindre image avec ce code de test :
<?php
$im = @ ImageCreate ( 150, 100) or die ( "Cannot create a new GD image.");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color );
header ("Content-type: image/png");
ImagePng ($im);
?>
Y a t'il une manip' dans la config' ?
Merci par avance.
Cdt
Bonjour,
Je suis sous EasyPhp v.1.8 et impossible de générer la moindre image avec ce code de test :
[php]<?php
$im = @ ImageCreate ( 150, 100) or die ( "Cannot create a new GD image.");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color );
header ("Content-type: image/png");
ImagePng ($im);
?>[/php]
Y a t'il une manip' dans la config' ?
Merci par avance.
Cdt