Let’s assume that i have 2 domains running on the same server, http://www.domain1.com and http://www.domain2.com.
I will use http://www.domain1.com for data transfer. basically this domain will form my website.
I would like to use http://www.domain2.com as my imageserver.
let’s say the ftp structure looks like this:
(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?)
domains
|
+– domain1.com
| |
| +– public_html
|
+– domain1.com
|
+– public_html
is there a way for me to upload images from http://www.domain1.com to http://www.domain2.com in php?
You can try the obove code. When you get the list, you can handle your uploads by