Page 1 of 1

How to decode a String of message...

PostPosted: 26. February 2008 18:14
by wasabihowdi
Hey guys,
I would like to know how to decode a string of message in PHP..
e.g.
(http://www.yourdomain.com/sms/sms.asp?a ... 859-1&udh=)

What is the best way for me to decode the numbers and the text string from the above string example?
In other words, I would like to decode the numbers and put it as a new variable and same thing for text (but since they are both variable length, i don't know how to do it...)

Thanks so much!

PostPosted: 26. February 2008 19:14
by Wiedmann

What if I'm getting an URL instead of a HTTP GET form?

PostPosted: 26. February 2008 21:57
by wasabihowdi
Hi,

What if I'm getting an URL and not of the form HTTP GET?
Is there a way to use PHP to decode the message?

thx again

PostPosted: 27. February 2008 00:09
by Wiedmann
What if I'm getting an URL and not of the form HTTP GET?

How did you get a URL?

(BTW: PHP have also functions for URL parsing)

PostPosted: 27. February 2008 01:27
by wasabihowdi
Hey Wiedmann,

Thanks so much, I got it to work using URL parsing and parse_str() functions.

I got my URL from a SMS Gateway which will convert mobile phone SMS into URL and I need to decode this URL using PHP.

Thank you so much man!