-
-
Notifications
You must be signed in to change notification settings - Fork 39
ServerAuth Web API
Flavius12 edited this page May 23, 2015
·
13 revisions
In this tutorial you will check if a ServerAuth account exists
1. Create example.php file in your Web Server directory
2. Add ServerAuthWebAPI.php file in the same directory
3. Now add this code in example.php
<?php
//Include ServerAuth Web API
include 'ServerAuthWebAPI.php';
//Player to check
$player = "Steve";
//Initialize a ServerAuthWebAPI instance (put your ServerAuth MySQL data)
$api = new ServerAuthWebAPI("host", 3306, "username", "password", "serverauth", "srvauth_");
var_dump($api->isPlayerRegistered($player));
?>
ServerAuth
ServerAuth Web API
ServerAuth Account Manager