Web Hosting Talk







View Full Version : Any_DBM


tlsuess
09-01-2007, 10:39 AM
Hi,

When you saw the title, you probably assumed this was about Perl, but it's actually about PHP. In some of my old software made in Perl, it uses Any_DBM and I'm wondering if anyone knows a compatible database system or flat-file database that functions similarly. I haven't found one yet and I was wondering if there's something similar to it.

Thanks,
Todd

Jatinder
09-01-2007, 12:19 PM
I have no idea about Any_DBM, but I guess you are looking for a flat file database like Berkeley

PHP has dba_* functions to handle flat file databases. See this for more details: http://www.php.net/manual/en/ref.dba.php

tlsuess
09-01-2007, 12:32 PM
It's ironic because I was checking out DBA, BerkeleyDB, and even DBM functions in PHP. I know Any_DBM is really old and pretty much is considered useless in today's programming society, but I'm just looking for something with a similar structure capability as Any_DBM without using MySQL or PostgreSQL. Thanks for the link!:)

Jatinder
09-01-2007, 01:13 PM
Well, you can use DBM functions to access flat file databases like db3/db4. I think these should be pretty close to that capabilities of Any_DBM.

Another option is to use an embeddable database like SQLite. This offers most of the capabilities of SQL servers like MySQL but does not have the overhead of a server daemon.

tlsuess
09-01-2007, 01:22 PM
Yeah I was thinking about SQLite too but I am going to do a little research on what's best and what's used most often on most servers. I must just even write my own code for a flat-file database system. Thanks for the help!