Tonic-_- Posted July 22, 2009 Share Posted July 22, 2009 Well this is a first that it has happened to us but we are trying to display statistics on a image for a gamer card.. My problem is this http://www.darksidehackers.com/card.php?game=r2&s=1&user=dhconorwh It puts a weird special character on the card and jacks up the spacing... We have the stats on another php file and it displays them perfect. I assume its from the preg_match_all and tries to put html onto the card when GD won't allow it.. Here is a page with the stats in html/php http://www.darksidehackers.com/stats.php?game=R2&user=dhconorwh The way the preg_match_all is setup is like this... <?php preg_match_all('%<div class="ep_stat_top_stats_row_right">(.*?)</div>%si', $html, $matches); $rstats = $matches['1']; preg_match_all('%<span ectooltip="">(.*?)</span>%si', $html, $matches); $rtags = $matches['1']; preg_match_all('%<img src="(.*?)"%', $html, $matches); ?> Any ideas? Link to comment https://forums.phpfreaks.com/topic/166961-solved-problem-with-gd-curl/ Share on other sites More sharing options...
Tonic-_- Posted July 22, 2009 Author Share Posted July 22, 2009 Nvm, I figured it out, using trim to eliminate the unwanted characters. Link to comment https://forums.phpfreaks.com/topic/166961-solved-problem-with-gd-curl/#findComment-880289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.