Vaibhav Sibal wrote:
> I need to select around 200 files at random out of a file pool of
> 10k-15k files from a directory and then transfer them to another
> directory on my linux server which runs Apache 2.0.52, PHP 5.0.3 and
> Mysql. I will also be requiring to add the paths of all those files
> into a database. If someone can please suggest the way to do it, I
> will be really grateful. I dont know how to select 200 files at random
> and then transferring the files to another directory and then adding
> those files to a database.
WARNING:
You will have to make sure this script never runs TWO copies at once.
If you run two at once, sooner or later, you'll get all screwed up...
It could be re-written, in various ways, to avoid that problem, if you
need it...
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php