Tiny url code

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

Locked
basudeb
Forum Commoner
Posts: 44
Joined: Wed Dec 20, 2006 12:13 am

Tiny url code

Post by basudeb »

I need a code for making short URL form a long url.
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

look into mode rewrite and .htaccess
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Can you give us some examples ?
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post by mickd »

I'm pretty sure CoderGoblin was refering to basudeb for some examples because i was about to post the same thing until CoderGoblin beat me (i posted then deleted my post) although i might be wrong.

Either way, it should be helpful to post the cheatsheet.
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Indeed mickd, An example of the long url and what it should be converted into would be useful.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

:google:

The proper forum for this is here. You will find many examples if you look at topics titled "mod rewrite"

Since this isn't particularily about a PHP problem, this should not be in the PHP Code forum.

Topic locked.
Locked