Page 1 of 1

Protecting Flat File Databases

Posted: Mon Mar 21, 2005 6:53 am
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!

Posted: Mon Mar 21, 2005 7:35 am
by feyd
this is a server config question.

viewtopic.php?t=31761


Moved to Servers.

Posted: Mon Mar 21, 2005 8:23 am
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.