Re: fopen woes....

From: Date: Mon, 24 Feb 2003 09:08:30 +0000
Subject: Re: fopen woes....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136859@lists.php.net to get a copy of this message
Hi Chris, The mode rw is contradictory. You say open the file in the read-only and write-only modes. I think you the append mode(a) is the candidate to solve your problem. Ferhat Can ----- Original Message ----- From: "Chris Blake" <cblake@pbpc.co.za> To: "PHP General" <php-general@lists.php.net> Sent: Monday, February 24, 2003 10:55 Subject: [PHP] fopen woes.... > Greetings, > > According to PHP manual example this is supposed to open a file and > write a line of text to it....but it doesn`t. > =================================================================== > <html> > <head> > <title>File Open</title> > </head> > > <body> > <?php > > $handle = fopen ("/home/data/ClientWebs/chrisplay/Things/fopen.txt", > "rw"); > fwrite($handle, "Hello there!"); > fclose($handle); > > > ?> > > </body> > </html> > ==================================================================== > > But my text file is blank......some of the other code samples I looked > at on www.php.net/fopen don`t provide specific help.. > > > -- > Chris Blake > Office : (011) 782-0840 > Cell : 083 985 0379 > It is reported that somewhere in the world, every 15 seconds, a woman > gives birth to a child. She must be found and stopped. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#136859) next »