- pack: documentation ( source)
<?php
$LOGINSERVER_HOST = "217.23.133.119";
$LOGINSERVER_PORT = 28511;
function GetAccountRegisterDate($account) {
$buf = pack("c", 0x0b); //
$buf .= pack("a*x",$account); // account name
echo pack("s", (strlen($buf)+2)).$buf;
echo $buf;
}
function tounicode($string) {
$rs = ""; for($i = 0; $i < strlen($string); $i++) $rs .= $string[$i].chr(0);
return($rs.chr(0).chr(0));
}
echo GetAccountRegisterDate('Infernalz');