Jump to content

Read/write file and protect


eevan79

Recommended Posts

I wrote function that return value of specific variable in config file and I can change values and write file via admin panel.

 

What is best way to protect file and what file permission I need (750)?

 

Should I first change the permision to write file, than change values, and back permission to read only?... or there is another better solution?

 

I do not know how this should work because I'm working on localhost.

Link to comment
https://forums.phpfreaks.com/topic/207286-readwrite-file-and-protect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.