title: Upload images to a different domain
body: <p>Let's assume that i have 2 domains running on the same server, www.domain1.com and www.domain2.com.<br>
  I will use www.domain1.com for data transfer. basically this domain will form my website.<br>
  I would like to use www.domain2.com as my imageserver.</p>
  
  <p>let's say the ftp structure looks like this:<br>
  (i hope this structure will come out readable, since i used alt[255] to space it. however, if it doesn't come out readable, is there a way to use emptyspace characters in SO?)</p>
  
  <blockquote>
    <p>domains<br>
    |<br>
    +-- domain1.com<br>
    |     |<br>
    |     +-- public_html<br>
    |<br>
    +-- domain1.com<br>
          |<br>
          +-- public_html  </p>
  </blockquote>
  
  <p>is there a way for me to upload images from www.domain1.com to www.domain2.com in php?</p>