how to move images from one folder to another using php
Moderator: General Moderators
how to move images from one folder to another using php
How do i move or copy a file that is already in one of my website online folders to another.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: how to move images from one folder to another using php
To move or copy files, you want either rename() or copy(), respectively.
http://php.net/rename
http://php.net/copy
I know it sounds funny, but yes, you move files with the rename() function.
http://php.net/rename
http://php.net/copy
I know it sounds funny, but yes, you move files with the rename() function.
Re: how to move images from one folder to another using php
And at a linux shell prompt, to rename a file, you use the mv (move) command.... LOL