Protecting Flat File Databases

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bakura82
Forum Newbie
Posts: 1
Joined: Mon Mar 21, 2005 6:48 am

Protecting Flat File Databases

Post by bakura82 »

Hello all. I am fairly new to programming in PHP, but I am learning quick. I have on concern though.

I wrote a script that would post information from a form to a CSV file. The file is CHMODed to 773, however, I am concerned about the security of this file. Is there a way to protect this file beyond the CHMODed setting of 733. I don't want ANYONE to access this file accepted for myself via FTP or through creating a script that will attach and email the file to me.

Any words of advice for this novice programmer?

Thanks!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

this is a server config question.

viewtopic.php?t=31761


Moved to Servers.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

lookup how access rights on your filesystem work. ext(2|3) has the conept of user, group and others... (a websearch will deliver you some execellent introductions...)

if only you want access to the file, then you have to consider that your script (usually not you) doesn't have access. so would to grant more rights or you would have to make sure the script runs as you (under your uid).

now it's up to you to decide what you want. or what options are available for you.
Post Reply