Alright, so I haven't found a fix for this in months (although I have admittedly been neglecting it). Still, I have a very simple code that by all means, should work. For some reason, it just isn't happening.
$fh = fopen("/doghousecomics/dhcstylesheet.css", "w");
fwrite ( $fh, $_POST['style'] );
fclose($fh);
header( "Location: styleeditor.php" );
exit();
Excluding the entire POST (which is coming from another file), that's all there is to it. I tried echo $_POST['style'], and it showed up properly. For some reason it just won't save. And yes, the file permission is 777. Is there anything I could possibly be doing wrong? When I hit submit, it just reloads the same page with the textarea on it, and the original text in it, unedited. Thanks for any help you may be able to offer.