Hi, I have a hosting platform with all my websites on what i want to do is from my main domain name upload images to others websites. The path on each of my websites is: /var/www/vhosts/domain.com/httpdocs/ I have a function which i use to upload image i though by putting this as the destination path to where the image is uploaded but change the domain.com it may work as i was on the same hosting platform but it did not work. How would i go about doing this? Cheers, Adam
Mostly scripts don't have access on those paths, why not creating a small script on one of the domains using it on all the domains?
There are many alternatives but I prefer, and I use, the FTP way. Upon upload completion, use PHP's FTP commands (and they are very simple and straight forward) to connect to other domains and upload the file to them.
Contact your host. Owner of both the sites(domais or hosting packages) will need to tell the host that they want the transfer. Your scripts don't have sufficient privileges to do that.