I am currently using fwrite, and this is what outputs as an error:
Parse error: syntax error, unexpected ')' in /home/blah/blahblah.com/write/submit.php on line 5
The code goes like this:
$strlen = strlen ( $_REQUEST["content"] );
$content = $_REQUEST["content"];
$title = $_REQUEST["title"];
$fp = fopen( "/home/blah/blahblah.com/write/texts/" . $_POST["title"] . ".txt" , a+ );
fwrite ( $fp , $content , $strlen );
fclose ( $fp );
Please help! I even tried to put in strlen of the text (which is unnecessary) so that it wouldn't expect anything else!