copy in 2 directories

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all.

I've got a simple question.
Is it possible with the command "copy" upload a file via browser on two
different directories?

I use copy

copy("$file", "/directory1/$superdat_name")


Re: copy in 2 directories

copy($file, "/directory1/$superdat_name");
copy($file, "/directory2/$superdat_name");
// Just do copy 2 times.

Re: copy in 2 directories

Davide schreef:
Quoted text here. Click to load it

In addition to the other reply in this thread, for uploaded files, you  
should use the move_uploaded_file() function instead.


Site Timeline