Converting a string to a number by using INT (no hash method)
Mark Lawrence
breamoreboy at yahoo.co.uk
Tue Jan 22 11:27:47 EST 2013
On 22/01/2013 16:15, Ferrous Cranus wrote:
> I just need a way to CONVERT a string(absolute path) to a 4-digit unique number with INT!!! That's all i want!! But i cannot make it work :(
>
> And the best part is that "that" number must be able to turn back into a path.
>
> This way i DON'T EVEN HAVE TO STORE THE ACTUAL HTML PAGE'S ABSOLUTE PATH!!!!
>
> 1. User requests a specific html page( .htaccess gives my script the absolute path for that .html page)
> 2. I turn the path into a 4-digitnumber
> 3. i store that number to the database. I DONT EVEN HAVE TO STORE THE PATH TO THE DATABASE ANYMORE!!! this is just great!
>
Hi Iron Skull,
I hereby nominate you for Troll of the Millenium.
--
Cheers.
Mark Lawrence
More information about the Python-list
mailing list