Re: [PHP] how can i creat a file and write a string to it!

2001-07-16 Thread Jason Bell
You need to open the file before you can actually write to it try this: $fp = fopen($file, "w"); fwrite($fp, $articletext); fclose($fp); - Original Message - From: "sunny AT wde" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Sunday, July 15, 2001 10:27 AM Subject: [PHP]

Re: [PHP] how can i creat a file and write a string to it!

2001-07-15 Thread Chris Anderson
Try looking under "Filesystem" functions in the manual. - Original Message - From: "sunny AT wde" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Sunday, July 15, 2001 1:27 PM Subject: [PHP] how can i creat a file and write a string to it! > i've been looking for an adequate ans

Re: [PHP] how can i creat a file and write a string to it!

2001-07-15 Thread John Meyer
At 06:27 PM 7/15/01 +0100, sunny AT wde wrote: >i've been looking for an adequate answer all morning in the archives, > > fwrite($file, $articletext); > Don't you have to do a fopen beforehand? John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves