PHP help: how do I express a series of binary values as a number?
Posted: Tue May 01, 2007 1:10 pm
I'm porting FrontEndUsers over to use our Active Directory server rather than the database, and I need a value for User ID.
I've found an ideal candidate: msexchmailboxguid, which is indeed unique for each user. However I've hit a problem: this attribute is a series of 16 hex bytes. PHP seems to insist on interpreting this value as a 16-character string, (which come out looking like this: )¦§ð”MûE³rèm.), and without an asc() function I don't see how I can decompose this and turn it back into a number. Anyone got any suggestions?
Thanks in advance, Andy
I've found an ideal candidate: msexchmailboxguid, which is indeed unique for each user. However I've hit a problem: this attribute is a series of 16 hex bytes. PHP seems to insist on interpreting this value as a 16-character string, (which come out looking like this: )¦§ð”MûE³rèm.), and without an asc() function I don't see how I can decompose this and turn it back into a number. Anyone got any suggestions?
Thanks in advance, Andy