<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1025940" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1025940</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156977</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$my_db &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_get_contents&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;explode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;\n\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$record&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = explode(\&quot;||\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$record&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[1] = \&quot;my new value\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[2] = \&quot;my new value\&quot;;&lt;br /&gt;&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$record&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = implode(\&quot;||\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$record&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = implode(\&quot;\n\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;file_put_contents(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$my_db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;No guarantees, it is untested, may need tweaking. Try it.&lt;/p&gt;
 </description>
     <pubDate>Thu, 19 Aug 2004 21:12:52 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1156977 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156959</link>
    <description> &lt;p&gt;Eh! I must be really stupid or I really do not understand, any one have any code they can show me as an example?&lt;/p&gt;
 </description>
     <pubDate>Thu, 19 Aug 2004 13:25:35 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1156959 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156955</link>
    <description> &lt;p&gt;Read the comments on the filesystem functions pages... Use explode() to split the strings. Meddle with the values as you would any basic array variable. Write to the file as explained in the fwrite() PHP doc... it is really basic.&lt;/p&gt;
&lt;p&gt;Use &lt;a href=&quot;http://nz.php.net/manual/en/function.file-get-contents.php&quot; class=&quot;bb-url&quot;&gt;file_get_contents()&lt;/a&gt; to read the contents of the file into a string.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://nz.php.net/manual/en/function.explode.php&quot; class=&quot;bb-url&quot;&gt;explode(&quot;\n&quot;,$db_string)&lt;/a&gt; it to create an array containing lines (records) of the database.&lt;/p&gt;
&lt;p&gt;explode(&quot;||&quot;,$db_string[$i]) in a foreach{} or other loop to recursively split each record into fields.&lt;/p&gt;
&lt;p&gt;Now you can access each element via $db_string[y][x] -- this is how you alter the values.&lt;/p&gt;
&lt;p&gt;Once that&#039;s done, loop through the whole array, reconstructing the database string, perhaps using &lt;a href=&quot;http://nz.php.net/manual/en/function.implode.php&quot; class=&quot;bb-url&quot;&gt;implode()&lt;/a&gt;. fwrite() or &lt;a href=&quot;http://nz.php.net/manual/en/function.file-put-contents.php&quot; class=&quot;bb-url&quot;&gt;file_put_contents()&lt;/a&gt; that back into the file, not appending but overwriting.&lt;/p&gt;
 </description>
     <pubDate>Thu, 19 Aug 2004 12:33:55 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1156955 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156953</link>
    <description> &lt;p&gt;Yes, I think I am restricted from using XML. I can easily have it on my computer, don&#039;t know about the school or host though. Besides, if I get into XML, it&#039;ll take me a while to figure everything out and get used to it - no matter how easy it seems. I don&#039;t have that much time left or I probably will try XML. :S&lt;/p&gt;
&lt;p&gt;I got that far but I don&#039;t know the actual code to do it, I am still very new to arrays and databases. What functions do I acutally use to achieve it? Can any one produce any code? Someone put me out of my misery! lol &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 19 Aug 2004 10:52:39 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1156953 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156946</link>
    <description> &lt;p&gt;First, init the &quot;database&quot;: read the file line-by-line into an array; split each array item by &quot;||&quot; so it becomes a multidimensional array, as though it were a result returned by a MySQL &#039;SELECT *&#039;.&lt;/p&gt;
&lt;p&gt;From there, use PHP to alter array element values as needed.&lt;/p&gt;
&lt;p&gt;Last, reconstruct the whole file from the array you have.&lt;/p&gt;
&lt;p&gt;The reading of the whole file, then writing it all again is what causes extra server overhead with flat-file databases. This, I believe, can be circumvented if you use self-aware, flat documents (i.e. XML), so data fields can be located and modified easily -- even using another layer of abstraction (XML libs). Although, Karen might be right about the distinction between XML and flat-file. Again, are you restricted from using XML?&lt;/p&gt;
&lt;p&gt;Alternatively, you could look into &lt;a href=&quot;http://nz2.php.net/dba&quot; class=&quot;bb-url&quot;&gt;PHP dba&lt;/a&gt;. I&#039;ve never used it, but it looks like it handles flat-file databases too.&lt;/p&gt;
 </description>
     <pubDate>Thu, 19 Aug 2004 06:38:32 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1156946 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156944</link>
    <description> &lt;p&gt;Thanks for the links KarenArt, I had a look at them but it still doesn&#039;t tell me up to update the flat-file :S&lt;/p&gt;
&lt;p&gt;Perhaps I am not making myself clear...&lt;/p&gt;
&lt;p&gt;Say I have the following in my db.txt file:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;Adman||16||PHP&lt;br /&gt;Spoono||25||Graphics&lt;br /&gt;Robouk||23||Photoshop&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;And I would like to change it to this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;Adman||16||Graphics&lt;br /&gt;Spoono||25||PHP&lt;br /&gt;Robouk||23||Photoshop&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;How would I do that?&lt;/p&gt;
 </description>
     <pubDate>Thu, 19 Aug 2004 01:37:07 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1156944 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156910</link>
    <description> &lt;p&gt;I believe what you&#039;re looking for is fwrite.&lt;/p&gt;
&lt;p&gt;I was going to post some code for you, but these pain pills have me so messed up I doubt if I&#039;d get it right.&lt;/p&gt;
&lt;p&gt;There is a really good explination of fwrite at &lt;a href=&quot;http://us3.php.net/fwrite&quot; class=&quot;bb-url&quot;&gt;http://us3.php.net/fwrite&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Here&#039;s a full tutorial on working with flat files &lt;a href=&quot;http://www.spoono.com/php/tutorials/tutorial.php?id=32&quot; class=&quot;bb-url&quot;&gt;http://www.spoono.com/php/tutorials/tutorial.php?id=32&lt;/a&gt;  This should explain what each part of the code does.&lt;/p&gt;
&lt;p&gt;If that doesn&#039;t work for you, let me know and I&#039;ll try to post the code for you.&lt;/p&gt;
&lt;p&gt;Have fun with it! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Aug 2004 20:35:18 +0000</pubDate>
 <dc:creator>KarenArt</dc:creator>
 <guid isPermaLink="false">comment 1156910 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156908</link>
    <description> &lt;p&gt;This is how I am reading the db:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// function used to output the vacancies page from flat file database&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fnShowVacancies&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$show&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$show_queries&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// opening file...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;r\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // looping through array&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = explode(\&quot; +~+ \&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$show&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;lt; (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$show&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$show_queries&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$show&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == \&quot;all\&quot;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;tr&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#039;&amp;lt;td&amp;gt;&amp;lt;img src=\&quot;./images/&#039; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;\&quot; width=\&quot;&#039; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;\&quot; height=\&quot;&#039; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;\&quot; alt=\&quot;&#039; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;\&quot; title=\&quot;&#039; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;\&quot; /&amp;gt;&amp;lt;/td&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#039;&amp;lt;td&amp;gt;&amp;lt;h6&amp;gt;Reference&amp;lt;/h6&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#039;&amp;lt;h6&amp;gt;Address&amp;lt;/h6&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;&amp;lt;br /&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;&amp;lt;br /&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . &#039;&amp;lt;br /&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#039;&amp;lt;h6&amp;gt;Rent&amp;lt;/h6&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#039;&amp;lt;h6&amp;gt;Comments&amp;lt;/h6&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$details&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;/tr&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // closing file&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fclose(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Abhishek, KarenArt: I am using PHP to do this &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt; &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Aug 2004 19:02:19 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1156908 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156905</link>
    <description> &lt;p&gt;How are you creating your flat files?&lt;br /&gt;
Are you using php, asp or pearl?&lt;/p&gt;
&lt;p&gt;If you show me the code you use to create and read from the db, I can show you how to update it.&lt;/p&gt;
&lt;p&gt;Abhishek Reddy, I&#039;ve never used XML so I&#039;m not sure but, there are quite a lot of tutorials on how to convert flat files to XML so they don&#039;t seem to be the same thing.  Sounds like XML is a step up.&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Aug 2004 15:17:23 +0000</pubDate>
 <dc:creator>KarenArt</dc:creator>
 <guid isPermaLink="false">comment 1156905 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-flat-file-database#comment-1156888</link>
    <description> &lt;p&gt;Maybe? I didn&#039;t know it was a .txt file -- does it have to be one?&lt;/p&gt;
&lt;p&gt;What environment is this? Do you have PHP XML libs? expat, sablotron?&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Aug 2004 12:05:27 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1156888 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
