Forum Moderators: coopster
Any ideas?
Even if I make it via exec(), I'll still needed PHP to be able to create, edit and delete files from there so it's imperative that PHP can work with that disk.
You either have to give your server access to those drives, which is something I wouldn't recommend, or you have to use a function such as exec(). You can still manipulate files using exec() just as you can create directories. It may come to the point where you have to make temporary files on the working hard drive, and then use exec() to move them to the other drives.
I'm sure you can think of something :)
Is there a way I could give perms to apache or indeed php to access those drives?
You need to know what user PHP is executing as. The quickest way might be to create a folder, make it universally accessible (chmod +777 thefoldername) then get your script to create a file inside it. You can then ls -l thefilename to see what the owner and group is. Create the folders as above and give the group all rights to them. (I'm more familiar with Linux than OS X, so I can't tell you the best way to do that).