can someone help with this...strange problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mcog_esteban
Forum Contributor
Posts: 127
Joined: Tue Dec 30, 2003 3:28 pm

can someone help with this...strange problem

Post by mcog_esteban »

i have a file full of HEX bytes, like this:
295D 796F 61FE 00E1 3831 7C6A
9A35 2F56 5003 3625 722D
what i want to do is this:
starting with the second byte

(5D*29) + (79*5d) + (6f*79) + ....
for each line
does anyone have any idea.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'd pull all the pairs out, convert them to integers, and run a for loop over the resultant array.
Post Reply