problem with SC2Replay::getRealm()

30 views
Skip to first unread message

Nick Milosevic

unread,
Feb 13, 2013, 5:55:10 PM2/13/13
to phpsc2...@googlegroups.com
for some reason this is showing up empty for me... I've reviewed the code in upload_file.php and copied it but I'm still not getting anything...

my code:

$replay = newMPQFile($uploaded_file);

$sc2replay = $replay->parseReplay();

//this works
print_r($sc2replay->getPlayers());

//this is empty
print_r($sc2Replay->getRealm());

Am I missing something?

Thanks in advance!

Nick Milosevic

unread,
Feb 13, 2013, 6:09:04 PM2/13/13
to phpsc2...@googlegroups.com
After further investigation, perhaps it's a server issue (unless kuukkeli.ath.cx is running something newer than 1.61)? the test file at http://kuukkeli.ath.cx/ooaemkee/SC2Replay/upload_file.php is able to parse the realm, but if i use the upload_file.php included in 1.61 on my own server getRealm() is returning empty results. 
Reply all
Reply to author
Forward
0 new messages