andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


copy temporary image to final destination?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas
View previous topic :: View next topic  
Author Message
mmjaeger
Light Poster


Joined: 22 Oct 2004
Posts: 25

PostPosted: Fri Oct 29, 2004 5:20 am    Post subject: copy temporary image to final destination? Reply with quote

Hello,

I'm kind of lost with the following:

I have a temporary image file like 12451234.jpg and I like to copy this temporary image to its final destination with a user-friendly file name like picture.jpg.

Could anybody please tell me how to do this?

Thank you in advance for your help.
Back to top
View user's profile Send private message
amnuts
Site Admin


Joined: 01 Sep 2002
Posts: 662
Location: East Sussex, England

PostPosted: Sat Oct 30, 2004 4:24 am    Post subject: Reply with quote

http://www.php.net/manual/en/function.rename.php

The manual on php.net is a wonderful thing! Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mmjaeger
Light Poster


Joined: 22 Oct 2004
Posts: 25

PostPosted: Sat Oct 30, 2004 4:32 am    Post subject: Reply with quote

amnuts wrote:
http://www.php.net/manual/en/function.rename.php

The manual on php.net is a wonderful thing! Smile


so the rename basically not only renames the file but also changes the location of the file, right?
Back to top
View user's profile Send private message
amnuts
Site Admin


Joined: 01 Sep 2002
Posts: 662
Location: East Sussex, England

PostPosted: Sat Oct 30, 2004 8:16 am    Post subject: Reply with quote

If you provide a different path, yeah. But the manual will tell you all of that.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group