What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Images... I can't make one. :(

PHP Images... I can't make one. :(
Author: Message:
Moo
Full Member
***

Avatar

Posts: 395
Reputation: 19
Joined: Jun 2004
O.P. RE: PHP Images... I can't make one. :(
I dont know if I understood fully, but I tried
code:
<?
$handle = fopen("http://www.bungie.net/Stats/PlayerStats.aspx?player=guyguyme2003", "rb");
$contents = '';
while (!feof($handle)) {
  $contents .= fread($handle, 8192);
}
fclose($handle);



$match = InsideTags('<div class="ExpBar" style="width:50"><div class="ExpBarText" style="left:20">','</div></div>',$contents); // uses a regular expression and gets the stuff inbetween those two points and returns it


foreach ($match[1] as $stat){  //just echo's all your stats
echo "$stat <br>";
}


function InsideTags($tag1,$tag2,$html){ //function to grab text inbetween two points
$tag2 = str_replace('/', "\/" ,$tag2);
preg_match_all("/$tag1(.*)$tag2/i", $html, $match);
return $match;
}


header("Content-type: image/png");
$im = @imagecreate(100, 200)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 1, 5, 5, $match[1] , $text_color);
imagepng($im);
imagedestroy($im);

?>
and got
[Image: index.php]

PS: that was to see if i could make it work.

This post was edited on 01-20-2005 at 10:32 PM by Moo.
01-20-2005 10:24 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP Images... I can't make one. :( - by Moo on 01-19-2005 at 12:07 AM
RE: PHP Images... I can't make one. :( - by fluffy_lobster on 01-19-2005 at 04:51 PM
RE: PHP Images... I can't make one. :( - by -dt- on 01-19-2005 at 05:32 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-19-2005 at 09:06 PM
RE: PHP Images... I can't make one. :( - by WDZ on 01-19-2005 at 09:12 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-19-2005 at 09:19 PM
RE: PHP Images... I can't make one. :( - by WDZ on 01-19-2005 at 09:34 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-19-2005 at 09:36 PM
RE: PHP Images... I can't make one. :( - by WDZ on 01-19-2005 at 09:42 PM
RE: RE: PHP Images... I can't make one. :( - by Moo on 01-19-2005 at 09:51 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-19-2005 at 09:59 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-19-2005 at 10:37 PM
RE: PHP Images... I can't make one. :( - by -dt- on 01-20-2005 at 07:04 AM
RE: PHP Images... I can't make one. :( - by Moo on 01-20-2005 at 10:24 PM
RE: RE: PHP Images... I can't make one. :( - by -dt- on 01-21-2005 at 04:36 AM
RE: PHP Images... I can't make one. :( - by WDZ on 01-21-2005 at 04:29 AM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 08:30 PM
RE: PHP Images... I can't make one. :( - by segosa on 01-21-2005 at 09:02 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 09:08 PM
RE: PHP Images... I can't make one. :( - by WDZ on 01-21-2005 at 09:29 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 09:38 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 09:56 PM
RE: PHP Images... I can't make one. :( - by WDZ on 01-21-2005 at 10:01 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 10:05 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 10:07 PM
RE: PHP Images... I can't make one. :( - by WDZ on 01-21-2005 at 10:12 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 10:13 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 10:43 PM
RE: PHP Images... I can't make one. :( - by WDZ on 01-21-2005 at 10:59 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-21-2005 at 11:03 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-22-2005 at 12:35 AM
RE: PHP Images... I can't make one. :( - by -dt- on 01-22-2005 at 11:11 AM
RE: PHP Images... I can't make one. :( - by Moo on 01-22-2005 at 03:48 PM
RE: PHP Images... I can't make one. :( - by Moo on 01-22-2005 at 04:25 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On