What (if anything) is wrong with this? It may be the app thats sending to it thats wrong but Im not 100% sure.<?php
$title = $_POST["title"];
$content = $_POST["content"];
if(is_dir($title)) {
echo 'Already exists.';
} else {
mkdir($title);
$makeTextFile = fopen("$title/$title.txt" , "w");
$writeTextFile = fwrite($makeTextFile, $content);
fclose($makeTextFile);
echo 'All done';
}
?>





Reply With Quote


