03/26/18 - Updating posts with $_POST and zero mysql
While not the most eloquent I think this page can get kudos for most "simple"

I can load a file to update using a basic form all secure with a $_SESSION variable.

//updates a file
if($_POST['update']){
	file_put_contents ($_POST['filename'], $_POST['text']); 
	$contents = file_get_contents ($_POST['filename']);
}

//actually loads the file
if($_POST['load']){
	$contents = file_get_contents ($_POST['filename']);
}

//creates a new php file, one for each post
if($_POST['create']){
	$page = fopen($_POST['filename'], "a");
	fwrite($_POST['filename'], "empty");
}


//deletes files...
if($_POST['delete']){
	unlink ($_POST['filename']);
	echo "deleted";
}