phdphd Posted October 5, 2020 Share Posted October 5, 2020 Hi All, I am presently using a Debian VPS to which, if I need, I can add another disk. In my website, users can upload images, that are then stored in the primary disk into a child directory of a directory called httpdocs. Instead of the primary disk, would it be possible to have them stored in a secondary disk ? I am asking this because I am not sure that a user connected to my website is allowed to run a PHP script intended to write a file in a directory that actually does not belong to the httpdocs directory. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/311566-write-file-to-secondary-disk/ Share on other sites More sharing options...
requinix Posted October 5, 2020 Share Posted October 5, 2020 As long as the filesystem permissions are set up to allow whatever user PHP is running as to write files then yeah, sure, you can do that. 1 Quote Link to comment https://forums.phpfreaks.com/topic/311566-write-file-to-secondary-disk/#findComment-1581739 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.