RE: Move a file from dir to another or delete file..?
| From: | Tim Ward | Date: | Wed, 28 Feb 2001 12:44:26 +0000 |
| Subject: | RE: Move a file from dir to another or delete file..? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41997@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Dhaval Desai [mailto:dhaval_adams@yahoo.com]
> Sent: 28 February 2001 05:51
> To: php-general@lists.php.net
> Subject: Move a file from dir to another or delete file..?
>
>
> Hi!
>
>
> Well I would like to move a file from one directoy to
> another using php and a web browser.
> I could just find a function to move an uploaded file
> but not a normal file which is allready there in some
> directory.
>
I haven't tried it but would rename work?, i.e. rename("old_path/file.txt",
"new_path/file.txt")
>
> Is there any way I can move a file from one directory
> to another and also is tehre any way I can delete a
> particluar file in a directory..
unlink();
>
>
>
>
> Thank You!
> Cheers!~
> Dhaval Desai
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html