how can i creat a file and write a string to it!
| From: | sunny AT wde | Date: | Sun, 15 Jul 2001 17:27:09 +0000 |
| Subject: | how can i creat a file and write a string to it! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57971@lists.php.net to get a copy of this message | ||
i've been looking for an adequate answer all morning in the archives,
but can't find one, neithr can i understand the manual.
all i want to do is for php to take the strong sent to it through a
form, and create a new file with a name "2.html" for example, and
write the string to it.
how can i quickly do this please?
i got this so far but that gives me some filehandler problem. i'm
running off a unix system btw.
$lastid = mysql_insert_id() ;
$root = "/home/articles/";
$file = $root . $lastid . ".html";
fwrite($file, $articletext);
tia!!
/sunny
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie