note 16534 rejected from function.fopen by jimw

From: Date: Sat, 03 Nov 2001 18:22:44 +0000
Subject: note 16534 rejected from function.fopen by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20383@lists.php.net to get a copy of this message
I've been having problems with using the r+ writing style. Its supposed to add the text straight to the top, correct? Well, when i do so, it replaces most/all of the text thats already there. Heres the code I use.. <? $new = "text to be added to the top"; $fp = fopen("/home/sites/cgi.phice.com/p/news.php", "r+"); fwrite($fp, $new); fclose($fp); ?> Email me if you have an answer! :)

« previous php.notes (#20383) next »