[PHP-DB] Re: dba_open

2001-08-01 Thread Hugh Bothwell


Patrick Callihan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I don't seem to have the *.so modules available.  When I added the line
 'extension=php_dba.so' to php.ini, nothing changed.  When I tried to use
the
 dl() function, I just got an error message:
 Warning: Unable to load dynamic library './php_dba.so' - ./php_dba.so:
 cannot open shared object file: No such file or directory in
/home/pat/html

 I did a 'find / -name php_dba.so' and came up with nothing.

 Thanks in advance for any help.


 Hugh Bothwell [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  Patrick Callihan [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   HI,
  
   I have compiled php4 with the following command:
   /configure' '--with-mysql' '--with-apache=../apache_1.3.20'
   '--enable-track-vars' '--enable-tans-sid' '--enable-dba

I haven't found any information on where to find/get/make
php_dba.so; hopefully someone else can help with that.
I would check the directory it's in; should be under php/extensions,
I would think.

I did find more info on building PHP on *nix; in order to
compile dba support in, it looks like you need another switch:
http://www.php.net/manual/en/ref.dba.php

try adding '--with-gdbm' (for example - it changes
depending on exactly which database you are using).



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Re: dba_open

2001-08-01 Thread Patrick Callihan

Well, I have made it a little further.  I could not get it to configure
using the --with-db2 switch even after installing the sleepycat software.  I
did succeed in compiling php using the --with-gdbm switch.  After that I had
a module called dba.so.  I put that in the proper place and changed the line
in the php.ini file and it now recognizes the dba_open() function call.

Now it gives me this error message:
Warning: driver initialization failed in pathdb.php on line 6
and it does not open the database.

Any and all help are greatly appreciated.

Thanks,
Patrick

Patrick Callihan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 HI,

 I have compiled php4 with the following command:
 /configure' '--with-mysql' '--with-apache=../apache_1.3.20'
 '--enable-track-vars' '--enable-tans-sid' '--enable-dba

 The function dba_open() does not work for me.  I get the following error
 message:
 Fatal error: Call to undefined function: dba_open()

 It is not clear to me how I cause these functions to be available to me.
I
 have perused the online documentation and I have tried several different
 switches on the command line compilation.  All help is greatly
appreciated.

 Thanks





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Re: dba_open

2001-08-01 Thread Patrick Callihan

With the help of another friend, I now have it working.  The problem was I
needed to make the directory and file group apache and then give them both
group write permission.  It works!  I thought I would post this in case
someone else ran across the same problem.

Patrick


Patrick Callihan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Well, I have made it a little further.  I could not get it to configure
 using the --with-db2 switch even after installing the sleepycat software.
I
 did succeed in compiling php using the --with-gdbm switch.  After that I
had
 a module called dba.so.  I put that in the proper place and changed the
line
 in the php.ini file and it now recognizes the dba_open() function call.

 Now it gives me this error message:
 Warning: driver initialization failed in pathdb.php on line 6
 and it does not open the database.

 Any and all help are greatly appreciated.

 Thanks,
 Patrick

 Patrick Callihan [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  HI,
 
  I have compiled php4 with the following command:
  /configure' '--with-mysql' '--with-apache=../apache_1.3.20'
  '--enable-track-vars' '--enable-tans-sid' '--enable-dba
 
  The function dba_open() does not work for me.  I get the following error
  message:
  Fatal error: Call to undefined function: dba_open()
 
  It is not clear to me how I cause these functions to be available to me.
 I
  have perused the online documentation and I have tried several different
  switches on the command line compilation.  All help is greatly
 appreciated.
 
  Thanks
 
 





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Re: dba_open

2001-07-31 Thread Hugh Bothwell


Patrick Callihan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 HI,

 I have compiled php4 with the following command:
 /configure' '--with-mysql' '--with-apache=../apache_1.3.20'
 '--enable-track-vars' '--enable-tans-sid' '--enable-dba

 The function dba_open() does not work for me.  I get the following error
 message:
 Fatal error: Call to undefined function: dba_open()

If you will use this in many of your scripts, edit php.ini -
remove the ';' before 'extension=php_dba.so'.

If you'll only use it in a few, look up the dl() function in
the manual,
http://www.php.net/dl



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Re: dba_open

2001-07-31 Thread Patrick Callihan

I don't seem to have the *.so modules available.  When I added the line
'extension=php_dba.so' to php.ini, nothing changed.  When I tried to use the
dl() function, I just got an error message:
Warning: Unable to load dynamic library './php_dba.so' - ./php_dba.so:
cannot open shared object file: No such file or directory in /home/pat/html

I did a 'find / -name php_dba.so' and came up with nothing.

Thanks in advance for any help.


Hugh Bothwell [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Patrick Callihan [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  HI,
 
  I have compiled php4 with the following command:
  /configure' '--with-mysql' '--with-apache=../apache_1.3.20'
  '--enable-track-vars' '--enable-tans-sid' '--enable-dba
 
  The function dba_open() does not work for me.  I get the following error
  message:
  Fatal error: Call to undefined function: dba_open()

 If you will use this in many of your scripts, edit php.ini -
 remove the ';' before 'extension=php_dba.so'.

 If you'll only use it in a few, look up the dl() function in
 the manual,
 http://www.php.net/dl





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]