bonjour,
en fait j'ai tester un script dont voici la source :
function imagestringr($img,$x,$y,$size,$string,$texte,$relief,$direction) {
$dir = explode("+",$direction);
if ($dir[0] == "H") { $ya = -1; } elseif ($dir[0] == "B") { $ya = +1; }
if ($dir[1] == "G") { $xa = -1; } elseif ($dir[1] == "D") { $xa = +1; }
$col = imagecolorallocate($img,$texte[0],$texte[1],$texte[2]);
$colr = imagecolorallocate($img,$relief[0],$relief[1],$relief[2]);
imagestring($img,$size,$x+($xa),$y+($ya),$string,$colr);
imagestring($img,$size,$x,$y,$string, $col);
}
mais lors de son execution, il me retourne 2 erreur :
Warning: imagecolorallocate(): supplied argument is not a valid Image resource
Warning: imagestring(): supplied argument is not a
...
est-ce que kelkun pourrai m'aider??
merci