By uploading a file and then copying it to two different directories?

I know this is a very simple question, and I know that I did this before its just htta I can’t track the code or get an answer on the Internet ... let me explain ...

I upload an image

I need the original image in one directory, and I want to create a sketch and rip it in another directory .... I plan to use class.upload (verot.net)

I wanted to know if I can move_uploaded_file twice, if not the way I do it.

+3
source share
2 answers

Ok first use move_uploaded_file($tmp, $dest)and secondlycopy($dest, $dest2)

Btw, , .

/me ; -)

+4

Source: https://habr.com/ru/post/1780595/


All Articles