php - Prevent a user from changing a specific line in a textfile -


i'm working on control panel communities minecraft servers. want keep option give away servers other people too. minecraft servers have configfile has option ip/port in it. since people have direct access file via ftp still dont want them change port rest of must editable. there way prevent users doing so? idea have @ moment grab prot each server database root users can access , echo port file before each server start/restart.

to reply on title: "prevent user changing specific line in textfile". unfortunately not possible.

keep editable data in 1 file grant them write-access, or create simple gui port set, rest editable (and make sure don't have access change actual settings file).


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -