Jump to content

[SOLVED] Problem with gd & curl


Tonic-_-

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.