in reply to Automatically creating incremental file names

Depending on what you are trying to do, you could do something with localtime to keep the names unique. We do something like this:

$file=sprintf("%03d%02d%02%02d",localtime->yday(),localtime->hour(),lo +caltime->min(),localtime->sec());
That gives us a unique enough number for our purposes.

"Ex libris un peut de tout"