Alright. I’m sure I’m making this more difficult that it needs to be.
I’m trying to have a script pull the contents of a text file into a textbox. People would then be able to edit the text box, click “submit”, and the changes would be written to the text file.
Here’s what I have.
[php]
<?php $changes = @$_GET["editwhitelist"]; file_put_contents ($list, $changes); ?> [/php]
It works, to an extent. It DOES draw the text from the file. However, no one can update the file.
I have had minimal success with writing. At some point I had a glitch where clicking “Submit” would delete the contents of the file. It wasn’t doing what I wanted, but at least it was making changes!