• hey,
    i recently tried to upload my theme to ww.wp.xz.cn and ran into an error:

    WARNING: fsockopen was found in the file status.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

    the file status.php is a script for checking the online status of a gameserver.
    what should i do now?

    here is the status.php:

    <?php
      $server = "255.255.255.255";
      $port = "25565";
      $timeout = "10";
      if ($server and $port and $timeout)
      {
      $minecraft = @fsockopen("$server", $port, $timeout);
      }
      if($minecraft)
      {
      echo '<div class="online"/>';
      }
      else
      {
      echo '<div class="offline"/>';
      }
      ?>

The topic ‘Theme Upload Failed fsockopen’ is closed to new replies.