Re: fopen() Problems

From: Date: Sat, 07 Feb 2004 05:35:29 +0000
Subject: Re: fopen() Problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177080@lists.php.net to get a copy of this message
On Saturday 07 February 2004 07:08, rabbit@cold-chaos.net wrote: > I am using the below code (kind of sloppy..). I have tried for fopen r+, > w, and w+, but no matter what I do, the file is always truncated, and > previously entered data is erased. I have been unable to fix this. Assuming that you're trying to add something to the end of an existing file: either fopen() using mode 'a' or use fseek(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "In short, _N is Richardian if, and only if, _N is not Richardian." */

« previous php.general (#177080) next »