Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

db4 support

Status
Not open for further replies.

RobBroekhuis

Technical User
Joined
Oct 15, 2001
Messages
1,971
Location
US
I'm trying to read out a file that's Berkeley DB version 4, and figured I'd try to use PHP, since the documentation says it can handle that. In different areas of the documentation, it says that support for this feature was added in PHP 4.3 or PHP 5.0. Since I'm not set up with the ability to compile c programs, I downloaded the Windows executables for PHP 5.0, enabled the dba functionality in php.ini, tried to open my database file with
dba_open("traffic.db","r","db4") - but get an error that that version is not available. Sure enough, in the dba handlers area of phpinfo(), it only goes to db3. I've seen references to using --with-db4 as a compilation option - but I have to work with executables. Is there a workaround?

Rob
[flowerface]
 
You might try looking for a pre-compiled DB4 library for Win32 and use it as a PHP extension.

I don't know how much success you'll have, though. Berkely DB is common in the *nix world, but not so common in the Win32 world.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Yeah, I was afraid of that. Thanks for your response.


Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top