You are here: Re: file() and line_num display « PHP Programming Language « IT news, forums, messages
Re: file() and line_num display

Posted by Jerry Stuckle on 03/29/06 13:36

Andy Jeffries wrote:
> On Tue, 28 Mar 2006 22:34:08 -0500, Jerry Stuckle wrote:
>
>>I'd use a database such as MySql or Postgres. They are ideally suited for
>>this kind of operation. And it's not that hard to program for them.
>
>
> I'd agree if he is the one inserting them in to a text file (he may be
> being given it by another party).
>
> If he only has the text file, he'd have to parse it either way to insert
> it into a DB or to just display it - so he might as well just display it.
>
> Cheers,
>
>
> Andy
>

Yes, he would have to parse it *once* to place all the information in the
database. As a flat file he would have to parse it every time he wants anything
from the database. And if the file format ever changes, he'll have to redo the
code every place he needs to access it.

Databases make your life so much simpler - even if you're not inserting into a
file. Even with static data I almost always put the information in a database;
it's just so much easier to access - and you don't run into problems like this.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация