Re: COPY function

From: Date: Fri, 22 Sep 2000 09:09:03 +0000
Subject: Re: COPY function
Groups: php.general 
Request: Send a blank email to php-general+get-17401@lists.php.net to get a copy of this message
Addressed to: "LAST JEDI" <jedicouncil@lastjedi.org> php-general@lists.php.net ** Reply to note from "LAST JEDI" <jedicouncil@lastjedi.org> Thu, 21 Sep 2000 14:49:44 -0500 > > I need some recommendations here: > > I am using the copy() function after I upload a file. Only problem is that > it will not let me save it because I do not have permission on the server > when PHP is running (I guess it needs chown nobody+777). I do not have > ability to chown nobody+777. To work around this I had to make the > directory chmod +777. Now there isnt anything important here other than > the temporary uploaded files that I immediately delete after I process > them (it is a couple step process so I need to make the copy). > > I am wondering if anyone else has a work around or how bad is making this > directory +777? Not too bad, as long as you also make it so the web server cannot send things from it. One problem you need to be worried about is having someone upload a file with a program in it, and be able to hit it with the web server before it gets deleted. The trick is to make sure your temporary upload directory is outside DocumentRoot. Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#17401) next »