Hey, guys. I'm having trouble with something, and I'm hoping you can help. I'm trying to have it to where you can edit files directly on the website itself. But the problem is, is when I go to edit them, I get an error, and it immediately takes me to my error 403 page that I've set up. So I changed it to permission 777 (and then immediately changed it back afterward, it is now on 644) to see if that was the problem, but I got the same result every time. I was hoping you could take a look at my code, and see if you could tell me what's happening.
$edit=$_POST['edit']; $page=$_POST['page']; $file=fopen($page,'w'); if(!mysql_query($file)){ die('Error: '.mysql_error()); } else fwrite($file,$page);
Please let me know if you can figure out the problem. And I've also tried removing the 4th 5th and 6th line to see if that was the problem, but still nothing has changed.