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