note 95529 rejected from function.fopen by danbrown

From: Date: Thu, 07 Jan 2010 17:19:24 +0000
Subject: note 95529 rejected from function.fopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164744@lists.php.net to get a copy of this message
Note Submitter: sumansjournal at rediffmail dot com ---- I am trying to write at opened file Inside other codes or texts.. $fp = fopen ($loc, "w+"); if (is_writable($loc)){ fwrite ($fp,$updateduser); fclose ($fp); BUT THE above code writes below of all texts. And I want to update different parts of that file inside the other texts or codes .. I also used the below code to get content of a file but the problem comes that I am unable to get Perfect values from diiferent areas after wrinting in it ...... $file=file_get_contents($loc); $data=explode("<!--data-->", $file); $print=array_slice($data, 1); But I am not perfectly succesful to UPDATE contents of diiffrent parts of a file.. So Please will anyone help me .... ?? Please Reply at sumansjournal@rediffmail.com . Thank you.

« previous php.notes (#164744) next »