I've developing a website that allows the end user to upload lots images. Currently the server has two hard drives, so what I'm wanting to do is store the website and database on one and the images on the other.
I have mydomain.com (user1) on hardDriveA and img.mydomain.com (user2) on hardDriveB.
In the future if the website outgrows this server and I have to purchase another server for image storage, I will probably modify the coding to transfer the images using FTP.
However, with one server, I don't see the need to FTP to itself. How do I setup the server to allow me to write to a folder on hardDriveB (belonging to user2) with a script being ran on hardDriveA (belonging to user1)?
Do I just need to modify the folder permissions where I want to save the images or what .. and/or how would I go about doing what needs to be done?
Any help would be greatly appreciated!
I have mydomain.com (user1) on hardDriveA and img.mydomain.com (user2) on hardDriveB.
In the future if the website outgrows this server and I have to purchase another server for image storage, I will probably modify the coding to transfer the images using FTP.
However, with one server, I don't see the need to FTP to itself. How do I setup the server to allow me to write to a folder on hardDriveB (belonging to user2) with a script being ran on hardDriveA (belonging to user1)?
Do I just need to modify the folder permissions where I want to save the images or what .. and/or how would I go about doing what needs to be done?
Any help would be greatly appreciated!