Organize The Files Between Two Domains In DreamHost

Discussion in 'Site & Server Administration' started by manyakca, Jul 15, 2009.

  1. #1
    Hi,

    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,
     
    manyakca, Jul 15, 2009 IP
  2. manyakca

    manyakca Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Fixed the problem.
    Use /home/username/domain.com ;)
     
    manyakca, Jul 15, 2009 IP
  3. anthonywebs

    anthonywebs Banned

    Messages:
    657
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    
    move_uploaded_file($_FILES["file"]["tmp_name"], "/home/username/A.com/{$filename}");
    
    PHP:
    Why were you trying to move it from one temp to another temp?
     
    anthonywebs, Jul 15, 2009 IP