Hey again
I'm writing a script so that i can type anything i want into a textarea then choose the file name and the file extension and submit it, it should then save it in a directory below called "files". I'm having a few problems with it though :/
here it is:
- PHP: Select all
$filecode = $_POST['code'];
$file = $_POST['file'];
$ext = $_POST['ext'];
$fp = fopen("files/".$file.".".$ext, "a+");
fwrite($fp, "<html>".$filecode."</html>");
echo ("success");
i get the echo. But no file appears. I have all permissions turned on the directory. I don't see the problem :s