Admin
|
very nice. note, set_file_var(name, value) value must be string get_file_var(name) Use the above function you can store or load some information in you file, the value is persistent. You can only set at most 20 file variable, each variable can store at most 64K stuff. alternative way to store global variable, but your own solution very elegant. also note, number folders have limit if about 10k total items in single folder, thus, to make safe for 64k items, use 6 folders. place in folder based on value, eg., ten thousands numeric value. (ie., 23,302 = 2; 4,323 = 0; 323 = 0; 33,423 = 3) use that as in safefolder_X with X being the item id number ten thousands numeric. (hopefully this is clear enough). that way you can assign serial number to 64k items, not just 10k. can use serial number ten thousands numeric, and have more than 6 folders as file ages (ie., serial # will increase past 64k ). folder column with subfolders is easy way to display the serial number. ---- alternative approach is to remove the value in item with current serial number - 10,000. will insure always that no more than 10k items with serials are active. hope helpufl.
|