How can I provide a document number?

Hello,
How can I provide a document number?
Each document will provide automatic number
Document number: #??? such as

just echo out any number, <?php echo 123;

And where does this number come from?

Automatic number for each pdf document created
Sample:
FT00000001
FT00000006
FT00000010
FT00000125
FT00001384
FT00012589
FT00287169
FT02789626
FT87259769
such as
or suggestion?
how to do?

Just use a loop with a counter and concatenate with the string prefix. use a database if thats over multiple requests.

insert file location into database - get id of record back.
concatenate prefix to document number
loop:

I used time() as the best solution

Sponsor our Newsletter | Privacy Policy | Terms of Service