PHP Server Status Image
<p>Hey guy's I add made a PHP server status script for my website and was working fine, until today it stopped working.. I have looked over the code and nothing has been changed. My problem is that It will not add text to the Image.</p>

<p>Here is my code that creates the image and adds text to the base image:</p>

<pre><code>&lt;?php


     $im = imagecreatefrompng('../images/status.png');

    if($im)
    {

    //colors
    $black = imagecolorallocate($im, 0,0,0);

    // Replace path by your own font path
    $font = 'Arial Bold.ttf';
    $font2 = 'Arial.ttf';
    // Add server name text
    imagettftext($im, 10, 0, 10, 20, $black, $font, $name);
    // Add server status text
    imagettftext($im, 10, 0, 10, 50, $black, $font, "Server Status: ");
    imagettftext($im, 10, 0, 105, 50, $color, $font, $text);
    // Add gamemode status text
    imagettftext($im, 10, 0, 10, 70, $black, $font, "Gamemode: ");
    imagettftext($im, 10, 0, 95, 70, $color, $font, $gamemode);
    // Add IP/PORT text
    imagettftext($im, 10, 0, 10, 90, $black, $font, "IP: ");
    imagettftext($im, 10, 0, 30, 90, $color, $font, $ip);
    imagettftext($im, 10, 0, 10, 110, $black, $font, "Port: ");
    imagettftext($im, 10, 0, 45, 110, $color, $font, $port);

    imagepng($im);
    }
?&gt;
</code></pre>

<p>Below is the output as of now (not working). It is missing the text which is being added.</p>

<p><img src="http://screensnapr.com/e/WK9Kyp.png" alt="enter image description here"></p>

<p>I assume I have done everything right as it worked before. Any help is appreciated.</p>

<p>Thanks.</p>
