Date: 07/15/01
- Next message: DAve Goodrich: "Re: [PHP] Wget and PHP"
- Previous message: Tom Malone: "[PHP] Re: Confusion abounds here"
- Next in thread: John Meyer: "Re: [PHP] how can i creat a file and write a string to it!"
- Reply: John Meyer: "Re: [PHP] how can i creat a file and write a string to it!"
- Reply: Chris Anderson: "Re: [PHP] how can i creat a file and write a string to it!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> address at http://mail.yahoo.co.uk
or your free <email protected> address at http://mail.yahoo.ie
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: DAve Goodrich: "Re: [PHP] Wget and PHP"
- Previous message: Tom Malone: "[PHP] Re: Confusion abounds here"
- Next in thread: John Meyer: "Re: [PHP] how can i creat a file and write a string to it!"
- Reply: John Meyer: "Re: [PHP] how can i creat a file and write a string to it!"
- Reply: Chris Anderson: "Re: [PHP] how can i creat a file and write a string to it!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

