Skip to content
Advertisement

Tag: url-shortener

Base10 to base64 url shortening

I’m coding an url shortener function for a project in which I’m learning php, here is the code (btw I suppose that global here is not a good thing to do :P): The code is taken from this Wikipedia article and adapted to php. My problem is that when I pass a multiple of 64 to the function I get

Advertisement