Using dl() to load GDBM
| From: | Nissim Chudnoff | Date: | Wed, 14 Mar 2001 01:57:18 +0000 |
| Subject: | Using dl() to load GDBM | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2378@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to write a PHP script that will use the dba_* functions to store data. However, the admins at the host I'm working on built PHP without any dba libraries.
I got the gdbm package, and built the .so file, but when I call dl("libgdbm.so"), I get a message about "it might not be a PHP library". How should I go about dynamically loading a lib? Is there any way to use the dba_ functions without needing to rebuild PHP?
Thank you,
Nissim Chudnoff