Re: Writing to unique files

From: Date: Mon, 04 Dec 2000 22:01:46 +0000
Subject: Re: Writing to unique files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28650@lists.php.net to get a copy of this message
Hello Louis, Monday, December 04, 2000, 1:24:22 PM, you wrote: LA> Hi, LA> Does anybody have any neat tricks for a good way to choose unique sequential LA> filenames in the following format?: LA> abc-000001.xyz LA> abc-000002.xyz LA> etc .... Why not use the same method employed when you wish to manage your 'auto-increment' for db tables. In a control file have a row which represents the 'current' sequential number. Then simply Select, increment, Update table. The mask number with leading zeros if you need and do your file thing -- DSig David Tod Sigafoos mailto:dsig@teleport.com Using 'The Bat' 1.48 Beta/8 ````` ( O O ) _______oOOo__( )__oOOo_______

« previous php.general (#28650) next »