Author | Message | Time |
---|---|---|
Augural Sentinel | I don't like using other people's code, especially when I don't understand exactly how something works. So, after looking through Joe's PHP script for connecting to Battle.net, I started looking through the PHP manual. So my question is this. Does PHP's pack() create the correct type of Endians that is needed to log onto Battle.net when you use 'v' and 'V'? [code]$a = pack('V', 0x00); $b = pack('v', 0x00);[/code] And would the above be the correct usage? Or do I need to use a different format character instead of 'V'? | February 20, 2006, 4:18 PM |
rabbit | If you read the descriptions of format on php.net, it tells you. | February 20, 2006, 7:03 PM |
Augural Sentinel | Eh, it still doesn't help a whole lot. Do I need short or long variable types? | February 20, 2006, 11:06 PM |
rabbit | It helps entirely. Read the docs. http://bnetdocs.valhallalegends.com/content.php?Section=d&id=8 http://us2.php.net/manual/en/function.pack.php | February 21, 2006, 12:14 AM |
Augural Sentinel | I completely forgot to check the B.net docs. You're right. I'm just retarded. | February 21, 2006, 12:28 AM |