Dzień dobry.
Mam problem z następującym błędem:
[php7:notice] [pid 22016:tid 1948] [client :64296] PHP Notice: Array to string conversion in ....
Błąd jest w liniach img id="graph_maps" oraz img id="graph_players"
if($online)
{
$gt = curl_get_contents('http://www.gametracker.com/server_info/'.$ip.'/');
if(preg_match('/var GSID = (.*);/', $gt, $gid)){
$gid = trim($gid[1]);
}
<div style="width: 38%; float:right;">
<h4>Najczęściej grane mapy</h4>
<img id="graph_maps" class="item_260x170" alt="" src="http://cache.www.gametracker.com/images/graphs/server_maps.php?GSID='.$gid.'">
<h4>Wykres graczy (ostatnie 24h)</h4>
<img id="graph_players" class="item_260x170" alt="" src="http://cache.www.gametracker.com/images/graphs/server_players.php GSID='.$gid.'&start=-1d&request=02208003562523282">