I'm on a semi-managed server, where all of the accounts belong to me.
I'm building a site that shares some data with one of my other sites. I would like to set it up so that if a user is on one site and uploads an image, it will be stored in a directory on the other account. This way, I can access the image via URL on either site.
Meaning, whether you're on example.com or whatever.com and upload an image, the image is saved to /home/example/www/images, and accessible at example.com/images.
I'm doing the upload via Perl, if it matters.
What steps do I need to follow in order to accomplish this? Symlink /home/whatever/www/images to /home/example/www/images? I have to assume that it requires more than changing the permission of /home/example/www/images to 0777.
I'm building a site that shares some data with one of my other sites. I would like to set it up so that if a user is on one site and uploads an image, it will be stored in a directory on the other account. This way, I can access the image via URL on either site.
Meaning, whether you're on example.com or whatever.com and upload an image, the image is saved to /home/example/www/images, and accessible at example.com/images.
I'm doing the upload via Perl, if it matters.
What steps do I need to follow in order to accomplish this? Symlink /home/whatever/www/images to /home/example/www/images? I have to assume that it requires more than changing the permission of /home/example/www/images to 0777.