Because d:\apache2\ is obviously the current working folder of apache/ php.
To save to your "current" directory, you need to specify a full path to it, like so "c:/apache2/myapp/uploaded-files/test.txt" HTH On Jun 27, 11:31 am, xihen <[EMAIL PROTECTED]> wrote: > When I upload the document , like this : > move_uploaded_file($this->data['file']['tmp_name'],"./test.txt') > > the document "test.txt" has not been preserved under the current > directory, but in d:\apache2\test.txt (my apache Root) > why? > thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
