ok what im making is for xbox live
<?php
$im = ImageCreate(204, 104);
$bg = imagecolorallocate($im, 0, 0, 0);
$fontcolor = imagecolorallocate($im, 255, 255, 522);
if ( $_GET['username'] == "" ) {
$gamertag = "No Gamertag";
} else {
$gamertag = $_GET['username'];
}
////////////////////////////////////
$str = "$gamertag";
$name = str_replace(" ", "%20", $str);
$name = str_replace(".png", "", $name);
$name = str_replace(".jpg", "", $name);
$name = str_replace(".gif", "", $name);
////////////////////////////////////
ImageString ($im, 0, 0, 0, "<iframe src= http://gamercard.xbox.com/$name.card scrolling=no frameBorder=0 height=140</iframe>", $fontcolor);
////////////////////////////////////
Header('Content-type: image/png');
imagepng($im);
ImageDestroy ($im);
It does not work but this does
<?php
$im = ImageCreate(204, 104);
$bg = imagecolorallocate($im, 0, 0, 0);
$fontcolor = imagecolorallocate($im, 255, 255, 522);
if ( $_GET['username'] == "" ) {
$gamertag = "No Gamertag";
} else {
$gamertag = $_GET['username'];
}
////////////////////////////////////
$str = "$gamertag";
$name = str_replace(" ", "%20", $str);
$name = str_replace(".png", "", $name);
$name = str_replace(".jpg", "", $name);
$name = str_replace(".gif", "", $name);
////////////////////////////////////
echo "<iframe src= http://gamercard.xbox.com/$name.card scrolling=no frameBorder=0 height=140</iframe>"
////////////////////////////////////
?>
But i need the top scipt because it uses GD to make it a image and this is for Xbox live gamercards the diffrence betwen the top and bottom code one is "Echo" which works and then u got "imagestring" which doesnt and is what i need but since the gamercard is html i have to like put a iframe or a div.