ok got this now
<?php
$source = file_get_contents("http://ops.warrock.net/showclan.aspx?c=$clanpage");
$pattern = '/Record: ([0-9-]+).*?World Rank: ([0-9]+).*?Regional Rank: ([0-9]+)/s';
preg_match($pattern, $clan_page_info, $matches);
list(, $record, $world_rank, $regional_rank) = $matches;
$im = imagecreatefromjpeg("1.jpg");
$other_pic = imagecreatefromjpeg("http://avatar.warrock.net/$clanpage.jpg");
$other_width = imagesx($other_pic);
$other_height = imagesy($other_pic);
//-------------------------------------->
$font = 2;
$ID = $clanpage;
$text_color = imagecolorallocate ($im, 255, 255, 0);
imagestring ($im, $font, 75, 6, $ID, $text_color);
//--------------------------------------->
imagestring ($im, $font, 250, 6, $record, $text_color);
//--------------------------------------->
imagecopyresampled($im, $other_pic, 125, 6, 0, 0, 40, 40,$other_width, $other_height);
header('Content-type: image/jpeg');
imagejpeg($im);
unset($im, $other_pic);
?>
but trying to print the result of $record or $world_rank is comming up blank