<?php function getAPI($command) { $er = error_reporting(0); $result = file_get_contents("http://147.202.66.3:8085/?api.".$command); error_reporting($er); return $result; } echo "Number of users: ".getAPI("UserCount")."<br/>"; echo "Rooms available: ".getAPI("RoomList"); ?>