> On Mon, 2006-04-17 at 22:40 -0700, tantravahi srinivas sunilkumar wrote:
> > u need to give chmod(file directory,777)
> >
> > redards,
> > sunil.
>
> I'm not going to chmod a users html directory to 777! Then anyone could
> write to it!
This is a reply to an old message. In order for PHP file uploads to work, the webserver user must
have write permissions to the directory. However, the final destination of those files may (and
should) be outside of the web space so someone cannot simply upload a nasty (insert your
definition here) file and access it immediately with a web browser.
Plus, if PHP cannot write to the directory yet because of ownership issues, a PHP function to
change its permission will fail, of course.
James
_____
James D. Keeline
http://www.Keeline.com http://www.Keeline.com/articles
http://Stratemeyer.org http://www.Keeline.com/TSCollection
http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester January-June 2006. Two new class topics.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
SPONSORED LINKS
| Php mysql | Job postings |
YAHOO! GROUPS LINKS
- Visit your group "php-list" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
