My script is generating a very long URL just like the one below and I wonder how this can be shorten with an algorithm or technique?
This is the long URL: http://example.com/script.php?param1=value1¶m2=value2¶m3=value3¶m4=value4¶m5=value5
I want to shorten it to something like this: http://example.com/script.php?p=430x2920
How can I do this with out caching the original link the database?
Thanks in advance.