Moving Files/ Temporary Names

This is a discussion on Moving Files/ Temporary Names within the PHP General forums, part of the PHP Programming Forums category; I was hoping someone might clarify what may seem like a basic point. I looked in the archives but didnt ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2003
Caspar Kennerdale
 
Posts: n/a
Default Moving Files/ Temporary Names

I was hoping someone might clarify what may seem like a basic point. I looked in the archives but didnt seem to get my answer.

I am creating a basic set of functions that will form the back bone of an image gallery and a directory handler.

I am trying to crate the function that will allow the administrator to Move a selected file to a different folder.
I have looked at move_uploaded_file () and it seems that the source file to move needs to actually be the file's temp name.
If the file has recently been uploaded then the temp name is accessible via $_Files[] array, but if the file was uploaded say a
week before I assume that the temp name is no longer there.

If I am incorrect, how do I get the temp name for a file uploaded a while ago?

Or is it simpler to copy() the file to its new location and delete the original?

Many Thanks

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0