You are here: Re: dealing data in a file as in a db (with sql). How? « PHP Programming Language « IT news, forums, messages
Re: dealing data in a file as in a db (with sql). How?

Posted by IchBin on 10/14/06 20:36

bob.chatman@gmail.com wrote:
> I think he wants to treat a flat file as a mysql database. If you are
> serious about it i would suggest you look up hashing to disk. I dont
> know of any ways to treat a flat file like a database in PHP, only perl
> with CSV. You would have to create any functionality.
>
> I have only delt with flat files if i know it wont get too long, mainly
> because searching is a pain in the butt, ordering helps but not if you
> are going to sort by multiple fields.
>
> In order to help out a bit, let us know what you are actually trying to
> do, your goal. That would help us get the ball rolling and better help
> you out.
>
> Bob
>
A flat file database that has been around a long time is Berkeley
database. You can select between a C\C++ or Java driven database. For
years it was the product of Sleepycat but Big Brother owns it now at Oracle.

http://www.oracle.com/database/berkeley-db/index.html

Another one that that is newer is a C based DB called SQLite.
http://pecl.php.net/package/SQLite

You will not have any problems searching these database because they
support SQL.

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

 

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

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