PX : code by Philip Hofstetter

TitleSectionRating Views Last Modified    
ShortUrl 1.0 algorithms : other -- 9125 1999-10-19 13:33:47 [ show ]
This function takes a string containing a URL and returns a shorter form of it: The function removes all the directories from the URL: http://host.com/dir1/dir2/test.html?test=test becomes http://host.com/.../test.html?test=test This is usefull when writing a linklist for example when the URL must be short to fit into the Layout.

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.