I'm sure there is a pretty straight forward answer to this but I am new to PHP and can't find an answer I can get to work. Basically I have a PHP form with a file upload which needs to send images to two folders. The current code that tells the images where to be stored is as follows:
$savepath = JPATH_SITE.DS.'images'.DS.'site'.DS.'cache';
Then after the image is uploaded:
$handle->Process($savepath);
Is there an easy way of also copying the file to another folder as part of the upload process?
Thanks in advance!