From: Andreas Gohr Sent: Wednesday, September 07, 2005 5:11 PM > Strange the PHP docs don't mention any Win32 problems with > rename... anyway I changed your patch a little. It now > tries to use rename and gracefully fall back to copy/unlink > renaming fails. Rename is much faster in Unix as it only > needs changing a single inode entry instead of duplicating > the whole content. Can you try if it still works for you? Yup. Seems to work great with your patch. Sorry, never occurred to me to do the fallback approach. Not sure why rename() doesn't seem to work. This is what it was doing before the patch in my Apache error log: [client 127.0.0.1] [PHP WARNING] rename(D:\\WEBSITE\\htdocs\\dokuwiki\\data\\cache/index.tmp,D:\\WEBSITE\\htd ocs\\dokuwiki\\data\\cache/index.idx) [<a href='function.rename'>function.rename</a>]: File exists in D:\\WEBSITE\\htdocs\\dokuwiki\\inc\\indexer.php on line 152, referer: http://ddoyle/dokuwiki/doku.php?id=start I guess rename() is implemented a bit differently on Win32. Thanks, Dave -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist