I have lots of domain in my DREAMHOST account with same user. For example, I have a photo uploader script in B.com domain. I want that when a photo is uploaded from B.com, I want to move the uploaded file to A.com domain by the script. I tried this command in PHP;

move_uploaded_file($_FILES["file"]["tmp_name"], ".../domain.com/system/cache/temp/{$filename}");

However it is not success. How can I do this? Is it supported?

Thank you,