Re: Move a file from dir to another or delete file..?
| From: | Yasuo Ohgaki | Date: | Wed, 28 Feb 2001 06:24:26 +0000 |
| Subject: | Re: Move a file from dir to another or delete file..? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41957@lists.php.net to get a copy of this message | ||
> 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.
These are probably you are looking for.
http://www.php.net/manual/en/ref.dir.php
(working with directory)
http://www.php.net/manual/en/ref.filesystem.php
(copy(), unlink() etc)
You might want to use sysetm() or like with care.
(Note: I'm not recommending to use system() to move
or delete files. Use of system() could make security hole easily)
http://www.php.net/manual/en/ref.exec.php
(system(), exec(),etc)
Regards,
--
Yasuo Ohgaki
>
>
> 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..
>
>
>
>
> Thank You!
> Cheers!~
> Dhaval Desai
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>