Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Tokas III
Minmatar Extrema Ratio
|
Posted - 2009.04.03 21:36:00 -
[1]
Is this script okay right now or we have to use the aspx provided by ccp?
_____________________________________________________________________________________________________________________________
<p>This script reads player count from EVE Tranquility server.</p><br /><br /> <?php function GetEvePlayers() { // IP of gameserver (Tranquility) $strEVEServer = '87.237.38.200'; // Serverport $intPortNumber = 26000; // Timeout $strTimeOut = 8;
function string2hex($String) { if (trim($String) != '') { $strHex = ''; $intLength = strlen($String); for ($intCounter = 0; $intCounter < $intLength; $intCounter++) { if ($intCounter > 0) $strBound="-"; else $strBound=""; $strHex.=$strBound.str_pad(dechex(ord($String[$intCounter])), 2, 0, STR_PAD_LEFT); } return $strHex; } }
$objFP = @fsockopen($strEVEServer, $intPortNumber, &$strErrumber, &$strErrString, $strTimeOut); if (!$objFP) { $strResult = 'Server down'; } else { $arrBuffer = fgets($objFP,41); fclose($objFP);
$strResult = $arrBuffer[21].$arrBuffer[20]; $strResult = string2hex($strResult); $strResult = hexdec($strResult); } return $strResult; }
echo 'Players online: '.GetEvePlayers(); ?>
|

Tonto Auri
Vhero' Multipurpose Corp
|
Posted - 2009.04.03 22:23:00 -
[2]
Please edit your message and remove that line. Do not screw forum. for code bits, use [code] block. -- Thanks CCP for cu |

DaOpa
Amarr Static Corp
|
Posted - 2009.04.04 01:57:00 -
[3]
Can you point me to the ASPX Script for Server Status ?
where is that page at .. i need to do this on my fansite too  ---------- LP Store Database | T3 Ship DB |

Tokas III
Minmatar Extrema Ratio
|
Posted - 2009.04.04 11:17:00 -
[4]
Edited by: Tokas III on 04/04/2009 11:18:22 I edited the OP to explain my problem.
|

Lumy
Minmatar eXceed Inc. Minor Threat.
|
Posted - 2009.04.04 11:25:00 -
[5]
1. fetch xml using either curl, fsock or http request class 2. parse xml, let's say by SimpleXMLElement 3. Display result 4. ??? 5. Profit!
Or you could use some existing PHP API library.
Joomla! in EVE - IGB compatible CMS. |

DaOpa
Amarr Static Corp
|
Posted - 2009.04.04 14:28:00 -
[6]
Originally by: Tokas III Edited by: Tokas III on 04/04/2009 11:16:25 How can I integrate the API given by CCP in a HTML or PHP page of my own site? I guess there's a method to make an inquiry without interrogating directly the server with a php call function, but I don't know the turn around.
Ahh theres the link.. ok so .. do they have Server Status for the Test Server too ?
Is it a extra parameter on there or something?
---------- LP Store Database | T3 Ship DB |

Arous Drephius
Perkone
|
Posted - 2009.04.04 19:00:00 -
[7]
Nope, no test server API.
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |