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]
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
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
3 matches
Mail list logo