[pmwiki-users] Page Statistics - counter-dba.php

Patrick Ogay lists at basel-inside.ch
Fri Feb 11 09:38:41 CST 2005


Hallo Hans, 

>I tried counter-dba.php, got an error message:
>Fatal error: Call to undefined function: dba_open() in [....]/counter-dba.php on line 37
>How do I test if dba is supported, in a gentle (non-fatal) way?


I had the problem with dbm_open. My provider said that DBM is not 
supportet (php is not compiled with dbm by standard), so I tried with 
DBA a interface, which supports a lot of DB's like gdbm, dbb4.

But You may try dbm_open (and so on) directly, it might work, the calls 
are analog but not identical.
(see on php-page). .

in phpinfo look for dbm and dba: and you should see, what is supported 
with you.


    dba  (blug) -> $dbtype = "gdbm"

DBA support 	enabled
Supported handlers 	gdbm ndbm cdb cdb_make inifile flatfile



I looked at the script, and there is a curious reference to
Blug.HomePage on line 33:
   if ($key_ct == '$Group.$Name') $key_ct= 'Blug.HomePage';  /* apache rewrite *

The first page generates $Group.$Name, may be because of apache rewrite, I don't know. I my case it's correct to count the entry page.



regards
Patrick Ogay





More information about the pmwiki-users mailing list