CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 file upload permissions

Print topic Send  topic

Author Message
damian

Posts: 838
Posted: 02/03/2009, 5:56 PM

how do i secure my file upload directories - both temp and final location after setting 777 permissions on them?
can someone upload a php file and execute it?
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
datadoit
Posted: 02/03/2009, 6:24 PM

Not if you don't allow them to upload PHP files.
datadoit
Posted: 02/03/2009, 6:29 PM

Oh, and never ever ever never ever set 777 permissions on uploaded
files. 644 at the most.

How do I keep someone from stealing my car after I leave it unlocked
with the keys in the ignition? :)
damian

Posts: 838
Posted: 02/03/2009, 6:35 PM

i had never got nay other combination to work prev. maybe i never tried 644? will test now.
if i have 777 on a folder can someone upload to it by methods other than my application?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
damian

Posts: 838
Posted: 02/03/2009, 6:48 PM

at 644 i cannot upload...
at 744 i can upload but cannot view my files....
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
datadoit
Posted: 02/04/2009, 10:46 AM

Check to see who's owning the uploaded files. Should be apache (?).

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.