AO PHP Connector Demo

PHP aocon & aolib examples. The following includes/code is required:

<?php
   require_once('aocon-1.2.0.inc.php');
   $aocon = new AOCon();
?>

Query Player ID

PHP Call: $aocon->getPlayerId('king');
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Warning: fopen(http://player.aevumobscurum.com/player?action=getId&username=king) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Cannot connect to http://player.aevumobscurum.com/player?action=getId&username=king

Query Player Info

PHP Call: $aocon->getPlayerInfo(10001);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Warning: fopen(http://player.aevumobscurum.com/player?action=getInfo&id=10001) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Cannot connect to http://player.aevumobscurum.com/player?action=getInfo&id=10001

Query Player Infos

PHP Call: $aocon->getPlayerInfo('10001-10002-10003');
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://player.aevumobscurum.com/player?action=getInfos&ids=10001-10002-10003) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://player.aevumobscurum.com/player?action=getInfos&ids=10001-10002-10003

Query Player Games

PHP Call: $aocon->getPlayerGames(10001, 'longhaul');
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://player.aevumobscurum.com/player?action=getGames&id=10001&realm=longhaul) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://player.aevumobscurum.com/player?action=getGames&id=10001&realm=longhaul

Query Clan ID

PHP Call: $aocon->getClanId('RoyalFamily');
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Warning: fopen(http://clan.aevumobscurum.com/clan?action=getId&name=RoyalFamily) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Cannot connect to http://clan.aevumobscurum.com/clan?action=getId&name=RoyalFamily

Query Clan Info

PHP Call: $aocon->getClanInfo(7);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Warning: fopen(http://clan.aevumobscurum.com/clan?action=getInfo&id=7) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Cannot connect to http://clan.aevumobscurum.com/clan?action=getInfo&id=7

Query Clan Members

PHP Call: $aocon->getClanMembers(7);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://clan.aevumobscurum.com/clan?action=getMembers&id=7) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://clan.aevumobscurum.com/clan?action=getMembers&id=7

Query Clan Members by Last Login

PHP Call: $aocon->getClanMembersByLastLogin(7, 0);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://clan.aevumobscurum.com/clan?action=getMembersByLastLogin&id=7&start=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://clan.aevumobscurum.com/clan?action=getMembersByLastLogin&id=7&start=0

Query Player Rankings

PHP Call: $aocon->getPlayerRankings(0);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://ranking.aevumobscurum.com/listing?action=getPlayerRankings&clanid=-1&start=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://ranking.aevumobscurum.com/listing?action=getPlayerRankings&clanid=-1&start=0

PHP Call: $aocon->getPlayerRankings(0, 7);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://ranking.aevumobscurum.com/listing?action=getPlayerRankings&clanid=7&start=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://ranking.aevumobscurum.com/listing?action=getPlayerRankings&clanid=7&start=0

Query Clan Rankings

PHP Call: $aocon->getClanRankings(0);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://ranking.aevumobscurum.com/listing?action=getClanRankings&start=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://ranking.aevumobscurum.com/listing?action=getClanRankings&start=0

Query Game ID

PHP Call: $aocon->getGameId('league', 'GameName1');
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Warning: fopen(http://game.aevumobscurum.com/league-admin?action=getId&name=GameName1) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Cannot connect to http://game.aevumobscurum.com/league-admin?action=getId&name=GameName1

Query Game Info

PHP Call: $aocon->getGameInfo('league', 3356);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Warning: fopen(http://game.aevumobscurum.com/league-admin?action=getInfo&id=3356) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Cannot connect to http://game.aevumobscurum.com/league-admin?action=getInfo&id=3356

Query Games by Owner

PHP Call: $aocon->getGamesByOwner('longhaul', 10001);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://game.aevumobscurum.com/longhaul-admin?action=getGamesByOwner&userid=10001) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://game.aevumobscurum.com/longhaul-admin?action=getGamesByOwner&userid=10001

Query Games by Clan

PHP Call: $aocon->getGamesByClan('longhaul', 7, 0);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://game.aevumobscurum.com/longhaul-admin?action=getGamesByClan&clanid=7&start=0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://game.aevumobscurum.com/longhaul-admin?action=getGamesByClan&clanid=7&start=0

Query Game Standings

PHP Call: $aocon->getGameStandings('league', 3356);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://game.aevumobscurum.com/league-admin?action=getStandings&id=3356) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://game.aevumobscurum.com/league-admin?action=getStandings&id=3356

Create League Game

PHP Call: $aocon->createLeagueGame('league', 10000, 'password', 'GameName1', 'Europe-X17', 86400, 1, 3, 2, 32, '0-10000-1-1-10001-0-2-10002-0-3-10003-1-4-10004-1-5-10005-0');
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Warning: fopen(http://game.aevumobscurum.com/league-admin?action=createLeagueGame&userid=10000&password=password&name=GameName1&scenario=Europe-X17&turntime=86400&random=1&numplayers=3&numteams=2&maxturns=32&setup=0-10000-1-1-10001-0-2-10002-0-3-10003-1-4-10004-1-5-10005-0) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Cannot connect to http://game.aevumobscurum.com/league-admin?action=createLeagueGame&userid=10000&password=password&name=GameName1&scenario=Europe-X17&turntime=86400&random=1&numplayers=3&numteams=2&maxturns=32&setup=0-10000-1-1-10001-0-2-10002-0-3-10003-1-4-10004-1-5-10005-0

Delete Game

PHP Call: $aocon->deleteGame('league', 10000, 'password', 3356);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Warning: fopen(http://game.aevumobscurum.com/league-admin?action=deleteGame&userid=10000&password=password&id=3356) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Cannot connect to http://game.aevumobscurum.com/league-admin?action=deleteGame&userid=10000&password=password&id=3356

Query All Tournaments

PHP Call: $aocon->getTournaments();
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://tourney.aevumobscurum.com/tournament?action=getTournaments) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://tourney.aevumobscurum.com/tournament?action=getTournaments

Query a Player's Tournaments

PHP Call: $aocon->getTournamentsByPlayer(10001);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://tourney.aevumobscurum.com/tournament?action=getTournamentsByPlayer&userid=10001) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://tourney.aevumobscurum.com/tournament?action=getTournamentsByPlayer&userid=10001

Query Tournament Games

PHP Call: $aocon->getTournamentGames(7);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://tourney.aevumobscurum.com/tournament?action=getGames&id=7) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://tourney.aevumobscurum.com/tournament?action=getGames&id=7

Query Tournament Players

PHP Call: $aocon->getTournamentPlayers(7, 0, 'e');
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://tourney.aevumobscurum.com/tournament?action=getPlayers&id=7&start=0&type=e) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://tourney.aevumobscurum.com/tournament?action=getPlayers&id=7&start=0&type=e

Cheat Detection

PHP Call: $aocon->cheatDetection(10001, 10002);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Warning: fopen(http://cheat.aevumobscurum.com/cheat?action=compare&userid1=10001&userid2=10002) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 307

Cannot connect to http://cheat.aevumobscurum.com/cheat?action=compare&userid1=10001&userid2=10002

Disable Cheater

PHP Call: $aocon->disableCheater(10000, 'password', 10001, 10002);
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Warning: fopen(http://cheat.aevumobscurum.com/cheat?action=disable&userid=userid&password=password&userid1=10001&userid2=10002) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 288

Cannot connect to http://cheat.aevumobscurum.com/cheat?action=disable&userid=userid&password=password&userid1=10001&userid2=10002

News Announcements

PHP Call: $aocon->getNewsAnnouncements();
PHP Output:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://news.aevumobscurum.com/news?action=getAnnouncements) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://news.aevumobscurum.com/news?action=getAnnouncements

Signature URL

PHP Call: $aocon->getSignatureURL('king');
PHP Output: http://sig.aevumobscurum.com/sig/king.png

Map URL

PHP Call: $aocon->getMapURL(5537, 'longhaul');
PHP Output: http://map.aevumobscurum.com/longhaul-map/Map-5537.png

Clan Icon URL

PHP Call: $aocon->getClanIconURL('RoyalFamily');
PHP Output: http://clan.aevumobscurum.com/clanicon/RoyalFamily.png

Webstart URL

PHP Call: $aocon->getWebstartURL();
PHP Output: http://www.aevumobscurum.com/original/webstart/AevumObscurum.jnlp
Play AO

Tournament Picture URL

PHP Call: $aocon->getTournamentImageURL(7);
PHP Output: http://www.aevumobscurum.com/original/webstart/extra/tournaments/Tourney-7-Image.png

PHP Call: $aocon->getTournamentIconURL(7);
PHP Output: http://www.aevumobscurum.com/original/webstart/extra/tournaments/Tourney-7-Icon.png

News/Update Service

PHP Call: $aocon->getNewsBannerURL();
PHP Output: http://www.aevumobscurum.com/original/webstart/extra/AOAdBannerImage.png

PHP Call: $aocon->getNewsInfo();
PHP Output:

Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Warning: fopen(http://www.aevumobscurum.com/original/webstart/extra/AOAdBanner.properties) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/15/d163072249/htdocs/ageofconquest.com/api/aocon-1.2.0.inc.php on line 326

Cannot connect to http://www.aevumobscurum.com/original/webstart/extra/AOAdBanner.properties