File Uploading Trouble
Posted: Thu Oct 24, 2002 11:25 am
Hi,
I run a community oriented websites, where remote users/members need to be able to upload/update content in their assigned directory.
I wanted to create/borrow a php based FTP script, but the problem is that my host does not have the FTP module installed.
So, I'll have to use the HTTP based file capabilities of php. The problem here is that it seems to require that I make the directories writable (ie, 0777). I'd prefer not to allow that.
First, I am wondering if there is any way around this problem.
Next, it wouldn't be so bad if I could only have one temp directory that is writable for everyone to upload to. Then, the script could make the necassary file manipulations without requiring all the other directories to be writable.
I can't see to get my php code to work unless all directories are writable. Not cool.
Any suggestions? Thanks!
Jason
I run a community oriented websites, where remote users/members need to be able to upload/update content in their assigned directory.
I wanted to create/borrow a php based FTP script, but the problem is that my host does not have the FTP module installed.
So, I'll have to use the HTTP based file capabilities of php. The problem here is that it seems to require that I make the directories writable (ie, 0777). I'd prefer not to allow that.
First, I am wondering if there is any way around this problem.
Next, it wouldn't be so bad if I could only have one temp directory that is writable for everyone to upload to. Then, the script could make the necassary file manipulations without requiring all the other directories to be writable.
I can't see to get my php code to work unless all directories are writable. Not cool.
Any suggestions? Thanks!
Jason