Menu
I’m trying to wrtie some php which will produce a unique order reference number after a user has submitted my form, this number will start from 1000 and be incremented every time someone presses submit.
I have two different types of forms, ADSL and SDSL, so I need to manage the files that are locked as there could be more then one person trying to submit and write to the file and read the file yousee, to get the unique reference number.
I cant use a database so my only other option is a flatfile, and I cant just use uniqid or time stamp or microseconds either.
Has anyone got any ideas? please