On Jan 7, 11:22 am, jodleren <sonn...@hot.eewrote:
While reading php.net I found
" bool copy ( string $source , string $dest [, resource $context ] )
Makes a copy of the file source to dest .
If you wish to move a file, use the rename() function. "
.... what? rename can move a file...?
Think of the entire folder path to the file as its name,
so if you have a file in folder /foo/bar/ named "Myfile" really how
the OS thinks of it is as a file named "/foo/bar/Myfile". if you
rename it to "/foo/BAZ/Myfile" it is now in the directory BAZ. its
"Name" for the OS has changed, even though its name for you, "Myfile"
hasn't. This is a gross oversimplification, but I think it should help
anyway.