RE: [PHP-WIN] fopen

From: Date: Wed, 23 Jan 2002 22:19:06 +0000
Subject: RE: [PHP-WIN] fopen
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-11606@lists.php.net to get a copy of this message
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 [GaiusJuliusCaesar@gmx.net] > -----Original Message----- > From: Robert Abbate [mailto:accounts@ispconcepts.com] > Sent: Wednesday, January 23, 2002 11:54 PM > To: php-windows@lists.php.net > 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?

« previous php.windows (#11606) next »