php binary file writing with pack() function : need to inverse byte order !

I have an issue writting binary files in php. I need to write the following 4 bytes Hex codes in a file (on intel) : 1000 2E00 0068 7474 703A

I do : pack('H*','10002E0000687474703A') and expect to have same in my binary file doing an hexdump but I get instead 0010 002E 6800 7474 3A70

What can I do to reverse those bytes?
aspegicusAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ravenplCommented:
from doc:
h Hex string, low nibble first
H Hex string, high nibble first

Why will not You try lower H then?
aspegicusAuthor Commented:
Simply because pack('h*','10002E0000687474703A') writes 0001 00e2 8600 4747 a307 not what I need..
ravenplCommented:
I understand. But then, what editor You use. Maybe it's the editor who swaps those bytes(it shows word sequence  instead byte seq)?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aspegicusAuthor Commented:
Right on! It was hexdump on linux that is displaying the sequence of bytes in reverse order compared to xvi32 under Windows. I'm all set.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.