Hi,

I'm trying to use the dbmopen function, but I keep getting an error that says "Call to an unsupported or undefined function dbmopen()". I'm using PHP3 on Win2k Pro. I've set my php3.ini file to include the dbm extension. What am I missing? At this point anything would be helpful.

Kevin

    10 months later

    You have to configurate the extension for windows php_db.dll in the php.ini

    ....
    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = c:\foxserv\php\extensions
    ...

    ...
    ;Windows Extensions
    ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
    ;
    extension=php_db.dll
    ...

      6 years later

      can any one please tell me how to do the same under linux?

      as i have created a php script which read and writes to vs file. It's working fine in Windows (developer's machine but doesn't work on web server hosted on Linux)

        You revived a 7 year old thread. In the mean time, PHP3 is obsolete, PHP4's end of life date has been announced, and the DBM functions have been deprecated.

        Perhaps you would like to consider using SQLite3 with the PDO extension under PHP5.2.3 (or later)?

          hmm.. i didn't look at the thread's starting date before posting the reply 🙂
          Btw My problem is i have made a php script which read and write data from a file the function at which my program breaks is dbmopen($this->path,"w");..

          This same program is working fine under my system running WindowsXP but not on web server on which linux is installed..

            This same program is working fine under my system running WindowsXP but not on web server on which linux is installed..

            As I noted, the DBM functions are deprecated. It is possible that your web server does not have that extension, especially since it has been removed as of PHP5.

              Write a Reply...