Re: move_uploaded_file locks?
| From: | Richard Lynch | Date: | Fri, 22 Sep 2006 23:51:09 +0000 |
| Subject: | Re: move_uploaded_file locks? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242107@lists.php.net to get a copy of this message | ||
On Wed, September 20, 2006 1:36 pm, Matthew H. North wrote:
> Can't find this in the PHP docs, so: does anyone know whether
> move_uploaded_file locks the target file during the process?
>
> If move_uploaded_file does a rename within the same filesystem this
> isn't an
> issue (on unix, anyway, the O/S just reassigns inodes rather than
> copying
> data). But if it does a copy instead, or if it has to rename across
> filesystems, any process that tries to read or write the file before
> move_uploaded_file completes could be munging things.
http://lxr.php.net/ may have the answer even faster than asking
PHP-Internals... :-)
--
Like Music?
http://l-i-e.com/artists.htm