Reply to Re: copy/move files..

Your name:

Reply:


Posted by giblfiz on 01/07/08 17:56

On Jan 7, 11:22 am, jodleren <sonn...@hot.ee> wrote:
> 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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация