
Hmm, true true. But, people who do this stuff maybe in computer forum, but I see where you're coming from.
Hope you find how to do it!
It's to do with PHP, etc.. so this is the correct forum.
Nah, Nets - Josh.
i get what you mean Tom,like i said though, read the threads Tom posted; or; wait till josh or Mentor to post, they'll lead you on the road.
![]()
Occasionally visit and have a nose.
Yes you would have to use GD. www.php.net/gd look at some of the comments if you don't understand it as they have some samples.
Yeah, I'm new to php & html etc.. so it doesn't help.
If anyone could do it, I would love you forever.
Haven't tested.PHP Code:<?php
header("Content-type: image/png");
$unparsed = file_get_contents('details.xml');
$xml = new SimpleXMLElement($unparsed);
$im = imagecreatefrompng('bg.png');
$dpl = imagecreatefrompng('dp.png');
list($DPLwidth, $DPLheight) = getimagesize('dp.png');
$dp = imagecreatetruecolor(54, 54);
imagecopyresized($dp, $dpl, 0, 0, 0, 0, 54, 54, $DPLwidth, $DPLheight);
imagecopymerge($im, $dp, 16, 38, 0, 0, 54, 54, 100);
$black = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 3, 80, 43, $xml->Username, $black);
$dispWidth = (strlen($xml->Username)*7)+85;
imagestring($im, 2, $dispWidth, 43, '('.$xml->Status.')', $black);
imagestring($im, 3, 80, 43, $dispName, $black);
imagepng($im);
?>
kinda quit.
The image "http://www.habats.com/tommo/test.php" cannot be displayed because it contains errors..
Sorry for double post.
When I view the page source it displays this.
<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: simplexmlelement in <b>/home/habats/public_html/tommo/test2.php</b> on line <b>6</b><br />
Make sure your host supports GD =D Use phpinfo()
The error is not related to GD :s
<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: simplexmlelement in <b>/home/habats/public_html/tommo/test2.php</b> on line <b>6</b><br />
That function is only supported in PHP5 and its a XML function.
Want to hide these adverts? Register an account for free!