PHP Print Gameserver info PNG
<p>Well, I have made a simple script that prints server info into a PNG Picture, It does work but there are some few problems.</p>

<p>I used a free script that gets variables from a source servers using php and then prints the output, I editied it so it will print into a picture, but somehow, It wont print the players and map values.</p>

<p>This is the config.php that the script uses.</p>

<pre><code>&lt;?php

$servers = array (array ('name' =&gt; '[TF2] gameTek Idle Trade Server #1 [NO]',
                         'ip' =&gt; '84.234.160.79',
                         'port' =&gt; 27015),
                         array ('name' =&gt; '[TF2] gameTek Achevments Idle Trade Server #2 [NO]',
                         'ip' =&gt; '84.234.160.79',
                         'port' =&gt; 27017), 

                         array ('name' =&gt; '[TF2] gameTek BOT Fun #3 [NO]',
                         'ip' =&gt; '84.234.160.79',
                         'port' =&gt; 27016),
                           array ('name' =&gt; '[TF2] gameTek Achevments Idle Trade Server #5 [DFW]',
                         'ip' =&gt; '50.56.179.18',
                         'port' =&gt; 27015)
                         );
/*
$cachelifetime = 30;
$cachefile = './cache/servers.html';
*/
$output = '
&lt;p&gt;&lt;a href="steam://connect/#ip#:#port#"&gt;
&lt;img 
src="Generate.php?n=#name#&amp;p=#players#/#maxplayers#&amp;m=#map#" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
';

?&gt;
</code></pre>

<p>The output when it prints is this</p>

<pre><code>http://teamgamers.net/GetInfoServer/Generate.php?n=[TF2]%20gameTek%20Idle%20Trade%20Server%20#1 [NO]&amp;p=3/32&amp;m=tek_idle_trade_v5
</code></pre>

<p>So, How can I make it so it works perfectly, and not like it is now, that it only prints the server name and not the rest?
I have tried figuring out a bit, but with no luck.</p>

<p>Generate.php</p>

<pre><code>&lt;?php
$Name = $_GET['n'];
$Players = $_GET['p'];
$Map = $_GET['m'];
$Image = @ImageCreateFromPNG("./Server.png");
$Cord = imagecolorallocate($Image, 255, 255, 255);
imagestring($Image,15,60,7,$Name,14);
imagestring($Image,15,62,37,$Players,14);
imagestring($Image,15,140,37,$Map,14);
header('Content-type: image/png');
imagepng($Image);
?&gt;
</code></pre>
