in reply to
Using filepath method to identify an .html page
Read int, and then write your own function
pin = int ( '/home/nikos/public_html/index.html' )
Why don't you create a database table with two columns. One column is "the string", and the other column is a unique integer. Most databases have an almost inexhaustible supply of unique integers for such columns.
pin = int( htmlpage.encode("hex"), 16 )
Will int function get the job done or a hashing method needs to get involved?
Read int and then you will know, then write your own function
I dont know HOW this is supposed to be written.
Keep a database of numbers ( AnyDBM_File ), assign one to each path, and then you're done
A Programming Language, 1962
Programming the 1900 series in COBOL, 1974
Algorithms + Data Structures = Programs, 1976
The C Programming Language, 1978
System V - Interface definition, 1986
Z80 Assembly Language Programming, 1979
TheSOURCE User's Manual, 1979
The C Primer, 1983
Interactive Fortran 77, A Hands on Approach, 1984
Perl.1 man page, 1991
Results (79 votes),