How can I use the latest Berkeley DB with SQL API in PHP app?

Hi,
I'm a PHP developer and I already use Berkeley DB in my applications using the [DBA Functions|http://www.php.net/manual/en/ref.dba.php] . I'm very interested in the latest Berkeley DB release. How can I write a PHP program that uses the SQL API of the latest Berkeley DB release?

Hi Kurt,
I'm not a PHP expert (far from it), but the simplest way to get started with the Berkeley DB SQL interface is to run Berkeley DB's <tt>configure</tt> script with the <tt>--enable-sql_compat</tt> flag.  This will create a library called <tt>libsqlite3.so</tt> that you can use as a drop-in replacement for SQLite at the API level.  Database files still need to be converted with a SQLite <tt>.dump</tt> followed by a <tt>.read</tt> with the <tt>dbsql</tt> tool.
This should then allow the existing PHP driver and application code to switch over to Berkeley DB without any code changes by setting <tt>LD_LIBRARY_PATH</tt> to find the Berkeley DB version of <tt>libsqlite3.so</tt> ahead of SQLite. Note that any other code that relies on SQLite will also run against Berkeley DB with this configuration, which can cause problems if the system libraries use SQLite (for example, on Mac OS X). For that reason, a better long term solution would be for the PHP SQLite driver to have a mode where it loads <tt>libdbsql.so</tt> rather than <tt>sqlite3.so</tt>.
I hope this helps, please let us know how you go because I'm sure lots of other PHP developers will be interested in the answer.
Regards,
Michael Cahill, Oracle Berkeley DB.

Similar Messages

  • How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    read this
    https://discussions.apple.com/message/20429789#20429789

  • How can I use the NI PXI-6508 with Lab View 7? what are the first steps to get started??How can I use the channels with lab view 7????

    I have a 8 slot PXI system with 2 NI PXI 6508 and 1 DMM 4070 in it. I want to get started with programming the digital I/O cards (6508)! How can I use this cards with LabView 7?what is the best way to get started, or where can I get examples showing how to use the several channels?
    Thanks!
    Philipp

    Philipp,
    The best way to get started is to decide if you want to use traditional NI-DAQ or NI-DAQmx. Recently we released NI-DAQ 7.1 which provides NI-DAQmx support for the PXI-6508. In my opinion, NI-DAQmx is more efficient and much easier to use.
    To get started with examples, simply launch LabVIEW and go to Help>>Find Examples. Then expand Hardware Input and Output>>DAQmx and select the appropriate digital group for your application. This should help get you started.
    Please repost if you need addition assistance. Good luck with your application!

  • How can I use the remote that comes with MacBook?

    I have a MacBook remote (old macbook, not the pro). I no longer have the macbook computer, but I hope I can still use the remote. I do not know how. Please help me.

    Only if it has IR support. Otherwise, it cannot. You would need to connect an IR receiver to the USB port.

  • How can I use the MacBook Pro webcam with Windows XP apps under Parallel?

    Thank you in advance for your help with this matter.
    I have a MacBook Pro and I have just installed Parallel with Windows XP. I would like to use the webcam that comes with the laptop for applications that run under Windows XP (ex.: PalTalk).
    The application doesn't seen to recognize the camera. Do I have to load the drivers for this camera in XP? If so where can I find them and what is the process?
    Thank you again,
    Enrico

    You probably need to load the Boot Camp drivers that are on the Leopard DVD. Whether it works or not I can't say, but you may want to post your question on the Parallels forums, since it's not an Apple product, and if anyone has gotten it to work you'll find them over there.
    http://forums.parallels.com

  • How can I use the accordion panel widget with a footer?

    Hi,
    My question is may be not clear. So I'm gonna be more specific. I'm using a menu for my website with the accordion panel widget. The menu is working fine and when I'm opening it, it pushs the items below on the pages.
    My problem is with the footer of the page. Because, when the items below the widgets are pushed, they go below the footer and the footer is not pushed.
    Is there any way to pushe the footer when I use the accordion widget? I don t want to overlap it.

    I assume this is what you want to achieve in the footer....
    Make sure in Muse before you export that the panel is closed, and also as Brad suggested, make sure Overlap Items Below is unchecked. I would also check the "Can Close All" button.

  • How can i use the same Apple id with i tunes

    How can i combine my Apple id with i tunes

    When you sign-in to your iTunes account do so with your Apple ID.

  • How can I use the ni-6024-e with the real time of matlab/simulink. Where can I find any example?

    I am doing the final project and I need to control the ni-6024-e with the RTW (real time) of matlab/simulink.
    Does anyone know or have any example?.
    Thanks

    Rafelmor,
    Have you contacted The MathWorks yet? They probably have the best information.
    However, I did a quick search and found some information on The MathWorks' site. For Data Acquisition Toolbox examples: http://www.mathworks.com/access/helpdesk/help/toolbox/daq/daq_example_index.shtml.
    For RTW information: http://www.mathworks.com/support/product/RT/.
    Good luck with your application.

  • How can I use the DAQMX in combination with a FIREWIRE MIO?

    We had problems in using DAQMX in combination with a NI FIREWIRE MIO Acquisition Card (according to an explanation of a NI-Consultant). Is there a way to solve that problem?

    NI's manual claims there will be DAQmx support for firewire in the future. I hope so too.
    Best,
    Davy

  • HT201250 When migrating from time machine to my new hard drive, it migrates the first back-up I made several years ago. How can I migrate the latest back-up ?

    When migrating from time machine to my new hard drive, it migrates the first back-up I made several years ago. How can I migrate the latest back-up ? I need time machine to migrate the latest back-up. Should I delete the older back-ups ?

    As noondaywitch says, it should use the latest backup.
    Where are your backups (external HD, Time Capsule, etc.)?
    It sounds like there are two separate sets, and you're not connected to the right set.

  • HT4847 i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    I got rid of AMDS, ASU ,QuickTime and iTunes from control ones I also found folder in Vista with D:\Users\Rick\Music\iTunes\Previous iTunes Library and there is one dated 2009-03012.itl. I moved this file up one folder and delted existing iTunes Library.itl. iTune still failed to identify my iPhone. There are other files iTunes Library Extras.itdb, iTunes Library Geniyes,itdn and iTunes Music Library,xml date dtd 06/18/2009 after upgrade except the latter which is date 06/23/2009. So something is not allowing me to pull or put everything back to when it worked.
    YES this is my only iPhone and only PC I have access to with iTunes.
    Here is what Apple gave to someone Sunday 28 June:
    http://discussions.apple.com/thread.jspa?threadID=2035950&start=75&tstart=0
    I checked these out too and they appear the same printed out nearly a week prior. I agree with Coach TO, if I had bad drivers or Vista errors it would not have shown up only when I updated to latest Version of 8.2.023. My Phone was identified on a PC with iTunes at the local AT&T store. He suggested I get phone into Recovery made while connected to iTunes and that resolves the problem 9 out of 10 time. Weak spot was he tried to get phone into Recovery without iTunes connection and thought I may have iPhone problem, then changed his mind when it worked while connected. He also stated it could take an hour. I have not tried to put my iPhone in Recovery lately, I think I did a while back and it failed to go into Recovery as error "iPhone detected by, not identified..."Has anyone tried forcing phone into Recovery? I understand you may lose all that is on phone. If iTunes still fails to identify would we not be in worse shape even if iTunes holds a recent backup which it does not for many of us? Will Apple take back or exchange phone if yours is not identitifed, AT&T today told me I had to go to Apple Store for this or anything to happen.

  • How can i display the latest " 4 Posts" in Facebook WebPart in SharePoint?

    Hi All,
    I have created Facebook WebPart in SharePoint, using below code
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=807273262643415&version=v2.0";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-like-box" data-href="https://www.facebook.com/FacebookDevelopers" data-width="300" data-height="200" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="true"
    data-show-border="true"></div>
    Now all Likes and Posts are displayed, here i want to display the latest " 4 Posts " only.
    how can i display the latest " 4 Posts".

    Hi,
    As a workaround, we can use jQuery to hide or remove other posts.
    http://www.w3schools.com/jquery/jquery_dom_remove.asp
    You can also connect the Facebook to find whether it provide a api to achieve your requirement or not.
    Or you can try to modify the js file. Facebook provide a debug version of the JavaScript SDK.
    https://developers.facebook.com/docs/javascript/quickstart/v2.2
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How can we use the SDXC PORT ?

    Hi,
    Im intending to buy a Macbook pro 15" and i wonder how can i use the SDXC to boot my future macbook.
    I heard there is out there some cards to make it boot faster. I am not talking here about sd camera cards.
    And do you think i made the right choice by choosing the 15" 2.2 ghz i7 ?
    Thank you

    fane_j wrote:
    There's only one way to make your "mac faster and use it every day"—replace the internal disk drive with an SSD, or replace the internal SSD with a bigger and faster SSD.
    Disk I/O has alwas been the main bottleneck of all computers. So you either make it occur faster or you reduce de times it needs to occur.
    In the "faster" section, the issues I have with SSDs are several:
    Their price still needs to go down way more. The cost per MB of SSD-based storage is still vastly greater than that of HDDs. Yes, if you compute in extreme environments like karting down Baja or skydiving off the Himalayas, a ruggedized SSD is great, but most of us mortals live in the safe confines of a homey office.
    The size of SSDs has to expand much more. Yes, they are inching up to the 500GB size, but HDDs are at 1TB and promise to break that barrier before the year is out.
    If you purchase your SSD preinstalled in your Mac, you will be paying a big premium, compared to marketplace SSDs, even those from the same maker but not Apple-branded. This also applies to RAM.
    If you put in a non-Apple-branded SSD, Lion will not enable TRIM support by default and you will have to go "under the hood" to enable it. Without TRIM, you will not get the full performance and durability benefit of an SSD.
    Might be me, but I prefer to stick with HDDs for now, just making sure they are of 7200RPM spindle speed.
    In the "reduce" section, must point out that Lion is a 64-bit beast. Meaning that all data structures are twice the size of previous 32-bit cats. Regardless of "minimum" specs, 4GB RAM is the new practical minimum and 8GB makes the fat cat much happier. But buying RAM from Apple is not a financially wise decision; an 8GB upgrade from reputable vendors can be had for around $40, in stark comparison to the $200 premium charged by the Apple store. For the same $200 or a bit less, you can get a 16GB upgrade instead, not officially sanctioned but that works just fine with the latest model Macs. In this case, I don't think the OP will need as much, but it is something to take under consideration. The extra RAM will drastically reduce the disk-based paging that the memory management carries out, thereby minimizing that bottleneck.

  • How can i download the latest dumps for oracle 10g

    how can i download the latest dumps for oracle 10g

    It's NOT permissible to use Oracle dumps for passing certification exams!
    Please, refer to below links for more information about "using dumps"
    http://www.certguard.com/braindumps.asp
    http://ivan.kartik.sk/index.php?show_article=39
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How can I use the print module to print different size images on one large "canvas"?

    How can I use the print module to print different size images on one large "canvas"? An example would be in Photoshop, go to file>new, and create the size paper I want, and move images of different sizes onto it.
    I was thinking the print module would do this automatically for me.

    You can't, at present. It's been a requested feature, so we'll see if it shows up in a future version, but it's not there at present.

Maybe you are looking for

  • Macbook no longer detects Airport Express Network

    I've been using my macbook to connect to my Airport express base station for my home wireless daily for like a year now. Today however, my macbook refuses to connect to the network. After a few scans it detects the network, then when I try to connect

  • Help diagnosing kernel panics? 10.6.8 related

    Hello, have been having this problem since i first tried to install 10.6 a few years ago. thought it might be an issue relating to hp scanning driver .kext. thought it might be RAM. ram tests fine. removed everything related to hp, which might relate

  • Missing focus indicator for selectOneRadio

    Hello, I am using JDeveloper 11.1.1.6.0. I am working on a project that is required to meet accessibility standards and have run across an issue with the selectOneRadio. When there is no selection made in the radio (either by default or manual select

  • Using Webservices in JspDynpage (Portal)

    Hi Team, i am Using Webservices in PDK. I followed all the steps to use the webservice in the portal. i can able to read the the methods, which are there in webservice. But when i try to call the methods, they are behaving  differently. Example i hav

  • Free/Busy availability and Out of Office not working after Exchange 2003 to Exchange 2010

    We just migrated from Exchange 2003 to Exchange 2010 as an intermediate step before we get to Exchange 2013.  I want to make sure everything is working OK before we start the migration to Exchange 2013.   The users have Outlook 2010, and there are 2