note 80593 added to function.fopen
| From: | easoukenka at gmail dot com | Date: | Thu, 24 Jan 2008 02:24:39 +0000 |
| Subject: | note 80593 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135358@lists.php.net to get a copy of this message | ||
Hard to explain but what I would like to do is change a text file if there is a value present for
instance
file contains:
background-color:black;
and the string I am overwriting the file with contains:
background-color:;
I would like it not to erase the data in the file because it is blank.
if the file contains:
background-color:black;
and the string I am overwriting the file contains:
background-color:navy;
Then I would like it to change that value in the file. Any tips would be great thank you
----
Server IP: 209.41.74.194
Probable Submitter: 24.247.16.43
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- https://master.php.net/note/edit/80593
Del: integrated -- https://master.php.net/note/delete/80593/integrated
Del: useless -- https://master.php.net/note/delete/80593/useless
Del: bad code -- https://master.php.net/note/delete/80593/bad+code
Del: spam -- https://master.php.net/note/delete/80593/spam
Del: non-english -- https://master.php.net/note/delete/80593/non-english
Del: in docs -- https://master.php.net/note/delete/80593/in+docs
Del: other reasons-- https://master.php.net/note/delete/80593
Reject -- https://master.php.net/note/reject/80593
Search -- https://master.php.net/manage/user-notes.php