Silver-0-surfer
Well-Known Member
Hi
Im having a really hard time with this one.
I'm using php on my server.
I am being sent data on a port on my server and I'm using fsockopen to get that info.
the info is being sent enclosed by two hex characters, so hex 02 to signal the beginning and hex 03 to signal the end.
So what I was doing was just stripping the hex out and inserting the string into the DB. I notice now that sometime they can send multiple stream of info in one shot, so hex02DATAhex03hex02DATAhex03
does anyone know a good method to select the data between the two hex values and store it in an array or something?
I am so stuck on this.
Im having a really hard time with this one.
I'm using php on my server.
I am being sent data on a port on my server and I'm using fsockopen to get that info.
the info is being sent enclosed by two hex characters, so hex 02 to signal the beginning and hex 03 to signal the end.
So what I was doing was just stripping the hex out and inserting the string into the DB. I notice now that sometime they can send multiple stream of info in one shot, so hex02DATAhex03hex02DATAhex03
does anyone know a good method to select the data between the two hex values and store it in an array or something?
I am so stuck on this.