host->ip); imagewritestring($img, 12, $user->host->city); imagewritestring($img, 12, $user->os->name . " " . $user->os->version); imagewritestring($img, 12, $user->browser->name . " " . $user->browser->version); imagewritestring($img, 12, 'Pays: ' . $user->host->country); imagejpeg($img, NULL, 100); imagedestroy($img); function imagewritestring($img, $font_size, $string) { $color = imagecolorallocate($img, 180, 180, 180); static $y = 110; $y += $font_size + 14; $x = 40; imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string); }