QDBM on Windows
am 06.04.2009 09:54:08 von Harold Fuchs
I'm running Win XP Pro/SP3, Apache 2.2.11 and PHP 5.2.9.1.
I have a database built by a Perl program using its "dbm" database system
that binds a file to an associative array.
I have discovered via Google etc. that there's a PHP extension that can
read/write this type of database. It is called "qdbm".
I have followed the instructions in the PHP manual at
http://uk3.php.net/manual/en/dba.requirements.php and related pages but
nothing works. When I try to run Example 1 at
http://uk3.php.net/manual/en/function.dba-handlers.php which calls
dba_handlers I get an "undefined function" error.
I have found the Windows binaries qdbm-1.8.75-win32.zip on SourceForge by
following the instructions at
http://uk.php.net/manual/en/dba.installation.php which say "Note: This was
added in PHP 5.0.0. The qdbm library can be loaded from »
http://qdbm.sourceforge.net. " but this .zip has many files which I don't
know what to do with.
Can someone please help? Step by step please. I've used Perl a lot but am
completely new to PHP.
--
Harold Fuchs
London, England
Please do *not* reply to my personal e-mail address.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: QDBM on Windows
am 06.04.2009 11:26:55 von Harold Fuchs
""Harold Fuchs"" wrote in message
news:0A.05.02528.725B9D94@pb1.pair.com...
> I'm running Win XP Pro/SP3, Apache 2.2.11 and PHP 5.2.9.1.
>
> I have a database built by a Perl program using its "dbm" database system
> that binds a file to an associative array.
>
> I have discovered via Google etc. that there's a PHP extension that can
> read/write this type of database. It is called "qdbm".
>
> I have followed the instructions in the PHP manual at
> http://uk3.php.net/manual/en/dba.requirements.php and related pages but
> nothing works. When I try to run Example 1 at
> http://uk3.php.net/manual/en/function.dba-handlers.php which calls
> dba_handlers I get an "undefined function" error.
>
> I have found the Windows binaries qdbm-1.8.75-win32.zip on SourceForge by
> following the instructions at
> http://uk.php.net/manual/en/dba.installation.php which say "Note: This was
> added in PHP 5.0.0. The qdbm library can be loaded from »
> http://qdbm.sourceforge.net. " but this .zip has many files which I don't
> know what to do with.
>
> Can someone please help? Step by step please. I've used Perl a lot but am
> completely new to PHP.
>
One step further. I re-installed PHP choosing the DBA extension. Now when I
run the "dba_handlers.php " script mentioned above, I get
Available DBA handlers:
- cdb: 0.75, Revision: 1.10.2.1.2.5
- cdb_make: 0.75, Revision: 1.9.2.1.2.3
- db3: Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
- inifile: 1.0, Revision: 1.14.2.1.2.6
- flatfile: 1.0, Revision: 1.14.2.1.2.3
So, how do I get qdbm? Please.
--
Harold Fuchs
London, England
Please do *not* reply to my personal e-mail address.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: QDBM on Windows
am 06.04.2009 19:15:00 von Niel Archer
> ""Harold Fuchs"" wrote in message=20
> news:0A.05.02528.725B9D94@pb1.pair.com...
> > I'm running Win XP Pro/SP3, Apache 2.2.11 and PHP 5.2.9.1.
> >
> > I have a database built by a Perl program using its "dbm" database syst=
em=20
> > that binds a file to an associative array.
> >
> > I have discovered via Google etc. that there's a PHP extension that can=
=20
> > read/write this type of database. It is called "qdbm".
> >
> > I have followed the instructions in the PHP manual at=20
> > http://uk3.php.net/manual/en/dba.requirements.php and related pages but=
=20
> > nothing works. When I try to run Example 1 at=20
> > http://uk3.php.net/manual/en/function.dba-handlers.php which calls=20
> > dba_handlers I get an "undefined function" error.
> >
> > I have found the Windows binaries qdbm-1.8.75-win32.zip on SourceForge =
by=20
> > following the instructions at=20
> > http://uk.php.net/manual/en/dba.installation.php which say "Note: This =
was=20
> > added in PHP 5.0.0. The qdbm library can be loaded from »
> > http://qdbm.sourceforge.net. " but this .zip has many files which I don=
't=20
> > know what to do with.
> >
> > Can someone please help? Step by step please. I've used Perl a lot but =
am=20
> > completely new to PHP.
> >
>=20
> One step further. I re-installed PHP choosing the DBA extension. Now when=
I=20
> run the "dba_handlers.php " script mentioned above, I get
> Available DBA handlers:
> - cdb: 0.75, Revision: 1.10.2.1.2.5
> - cdb_make: 0.75, Revision: 1.9.2.1.2.3
> - db3: Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
> - inifile: 1.0, Revision: 1.14.2.1.2.6
> - flatfile: 1.0, Revision: 1.14.2.1.2.3
>=20
> So, how do I get qdbm? Please.
I'm not sure about this, but I think you have to compile the qdbm
handler into the dba extension. I looked at this briefly myself a
few months ago, in order to transfer the data from an OLD database, but
haven't had time to complete it.
Also not sure, but IIRC the Berkeley handler will open dbm files too. I
don't have any dbm files to test this with though.
> --=20
> Harold Fuchs
> London, England
> Please do *not* reply to my personal e-mail address.=20
>=20
>=20
>=20
> --=20
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20
--
Niel Archer
niel.archer (at) blueyonder.co.uk
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: QDBM on Windows
am 07.04.2009 02:00:01 von Harold Fuchs
Niel Archer" wrote in message
news:20090406181229.B854.A5CB2C2A@chance.now...
> ""Harold Fuchs"" wrote in message
> news:0A.05.02528.725B9D94@pb1.pair.com...
> > I'm running Win XP Pro/SP3, Apache 2.2.11 and PHP 5.2.9.1.
> >
> > I have a database built by a Perl program using its "dbm" database
> system
> > that binds a file to an associative array.
> >
> > I have discovered via Google etc. that there's a PHP extension that can
> > read/write this type of database. It is called "qdbm".
> >
> > I have followed the instructions in the PHP manual at
> > http://uk3.php.net/manual/en/dba.requirements.php and related pages but
> > nothing works. When I try to run Example 1 at
> > http://uk3.php.net/manual/en/function.dba-handlers.php which calls
> > dba_handlers I get an "undefined function" error.
> >
> > I have found the Windows binaries qdbm-1.8.75-win32.zip on SourceForge
> by
> > following the instructions at
> > http://uk.php.net/manual/en/dba.installation.php which say "Note: This
> was
> > added in PHP 5.0.0. The qdbm library can be loaded from »
> > http://qdbm.sourceforge.net. " but this .zip has many files which I
> don't
> > know what to do with.
> >
> > Can someone please help? Step by step please. I've used Perl a lot but
> am
> > completely new to PHP.
> >
>
> One step further. I re-installed PHP choosing the DBA extension. Now when
> I
> run the "dba_handlers.php " script mentioned above, I get
> Available DBA handlers:
> - cdb: 0.75, Revision: 1.10.2.1.2.5
> - cdb_make: 0.75, Revision: 1.9.2.1.2.3
> - db3: Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
> - inifile: 1.0, Revision: 1.14.2.1.2.6
> - flatfile: 1.0, Revision: 1.14.2.1.2.3
>
> So, how do I get qdbm? Please.
> I'm not sure about this, but I think you have to compile the qdbm
> handler into the dba extension. I looked at this briefly myself a
> few months ago, in order to transfer the data from an OLD database, but
> haven't had time to complete it.
> Also not sure, but IIRC the Berkeley handler will open dbm files too. I
> don't have any dbm files to test this with though.
> -
> iel Archer
> iel.archer (at) blueyonder.co.uk
Thanks. I've tried all the handlers available and non works. So this is
going on the "can't be bothered" pile and I'll go back to perl which I know
works. Seems the PHP folk are not very interested in Windows and I very much
doubt there's a port to the iPod Touch ...
--
Harold Fuchs
London, England
Please do *not* reply to my personal e-mail address.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php