How to decode a String of message...

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to decode a String of message...

Postby wasabihowdi » 26. February 2008 18:14

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!
wasabihowdi
 
Posts: 11
Joined: 24. January 2008 06:23

Postby Wiedmann » 26. February 2008 19:14

Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

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

Postby wasabihowdi » 26. February 2008 21:57

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
wasabihowdi
 
Posts: 11
Joined: 24. January 2008 06:23

Postby Wiedmann » 27. February 2008 00:09

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)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby wasabihowdi » 27. February 2008 01:27

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!
wasabihowdi
 
Posts: 11
Joined: 24. January 2008 06:23


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 137 guests