First up, I am sorry if I am re-posting something. I have searched this forum for nearly an hour now and I haven't found any related topics to the one I am posting now.
Pretty much like the existing URL shortening websites. The reason why I am thinking of coding my own is that I am not ready to trust the presently existing services because of fear of spam.
So now coming to the actual problem,
As you can see, this simple piece of code loops till the actual number becomes zero and keep adding a character from the array validChars. The problem I am encountering is, after the number 2147483647, it doesn't work and it completely gets screwed up. The equivalent alpha-numeric string for that number is 1BCkl2. But for the next number, 2147483647, the equivalent alpha-numeric is BCkl200000000000000000... it goes on.
I am thinking that this is most prolly due to an error in my scripting in PHP. Experienced coders here please help me out as I am really curious about what could possibly be a reason for this script not working beyond that number.
Thanks and Looking forward hear your replies,
A PHP Noobe.