<?php
header("Content-type: image/png");
$host = $_SERVER['HTTP_HOST'];
$name = $_GET['name'];
$string = $host;
$im = imagecreatefrompng($name);
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);