View Full Version : Organize The Files Between Two Domains

07-15-2009, 11:47 PM

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,

07-16-2009, 03:02 AM
Fixed the problem.
Use /home/username/domain.com ;)