Hi Robert, I'm still a beginner concerning PGP, so I can't tell you where the error is, but I've been successful using the following code:
<?php $FILE_NAME = 'NewFile.txt'; // open the file for write-access and truncate it to zero. $file = fopen($FILE_NAME, "w+"); // write something into the file $filestring = 'HelloWorld'; fwrite($file, $filestring); // close the file fclose($file); ?> HTH, Philipp Traeder [[EMAIL PROTECTED]] > -----Original Message----- > From: Robert Abbate [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 23, 2002 11:54 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] fopen > > > I am having trouble getting php to be able to write to text > files using > fopen under windows. does anyone know how to get php for > windows to do this? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]