Displaying Status Image

Discussion in 'Plugin Development' started by RazorFlint, Oct 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    RazorFlint

    Hmmm, I'v got this
    Code:
    <?php
        header("Content-Type: image/png");
        if(fsockopen("127.0.0.1", "25565")) {
            echo file_get_contents("on.png");
        } else {
            echo file_get_contents("off.png");
        }
    ?>

    The only problem is it doesn't show the offline image, whats the problem? And yes it is named right!
     
Thread Status:
Not open for further replies.

Share This Page