On my website (
www.freewebs.com/thetechgeek/htmlwriter/) I have a php code that tries to write a text file to the user's "my documents" folder. try going to my website and press the submit button. a page will come up that says that the POST method is not allowed. here's my php code:
PHP Code:
<?php
$f = fopen ('C:/Documents and Settings/My documents/filename.txt',"w");
fwrite($f, $_POST['textarea']);
fclose($f);
header( "Location: http://www.opmstech.org/trey/webpagewriter/saved.html" );
?>
P.S. i also tried this on my school's website (
http://www.opmstech.org/htmlwriter/) hosted by dreamhost.com, and the same error occured. it seems it won't let me send data using POST. PLEASE! If anyone knows how to fix this and/or why it won't let me use this script, please help me with this. Also, for some reason sometimes the submit button works and takes you to the page that says you saved the file, but it's not saved and sometimes it says that the method is not allowed. I really need help on this one.
i need help
tk_php