Help with DBM (dbmfetch)
| From: | PHP Rules | Date: | Mon, 12 Nov 2001 12:04:11 +0000 |
| Subject: | Help with DBM (dbmfetch) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74262@lists.php.net to get a copy of this message | ||
Hi!!
I'm trying to visualize a .dbm file. It's hosted
in the same directory as my .php file.
With this test example:
-------------//---------------------------
<html><head><title>PHP Test</title></head>
<body>
<?php
$fn="myfile.mdb";
$db=dbmopen($fn,"r");
$key = dbmfirstkey ($db);
while ($key) {
echo "$key = " . dbmfetch ($db, $key) . "\n";
$key = dbmnextkey ($db, $key);
}
dbmclose($db);
?>
</body></html>
---------//--------------------------
I do not get anything.
Could anybody provide me an example of using DBM?
Thank you very much.
_______________________________________________________________________
Recibe el boletín semanal con lo mejor del mundo del motor de Movendus.com
http://www.movendus.com/pr.jsp?ID1=2403&ID2=2605