How to beautify URL string in email?

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
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

How to beautify URL string in email?

Post by myleow »

I have a URL string say

Code: Select all

http://www.devnetwork.net/invitation.php?value=fdsafdsGFDS43r34GDFsgfdar43gdhjkahfdjsakfds8a978349rhjkfadjsakfldsja
The value contains an MD5 encoding that i need to match with DB. Is there a way to beautify it so that its not that long? In an email it looks horrible.

Regards
Mian
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm guessing this is a plain text email? If so, unless you change the information needed to a more simple form, there's pretty much nothing you can do.. that I know of.

There's a potential to use tinyurl. Or breaking the md5 hash into smaller chunks and using mod_rewrite to hit the proper url.. that's about it.
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

Post by myleow »

oh its just like an associative array to match the tiny redirection to the real URL.

That's do-able if needed to make it shorter.
Post Reply