Date: 10/15/00
- Next message: David Scherfgen: "[PHP-DB] Can't modify DBM key"
- Previous message: Cameron Brunner: "[PHP-DB] pgsql"
- Next in thread: David Scherfgen: "[PHP-DB] Can't modify DBM key"
- Maybe reply: David Scherfgen: "[PHP-DB] Can't modify DBM key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi.
I have the following problem:
When I run this script, "TestValue" appears on the screen (but it should
not):
$file = dbmopen("test", "c");
dbminsert($file, "TestKey", "TestValue");
dbmclose($file);
$file = dbmopen("test", "c");
dbmdelete($file, "TestKey");
dbmclose($file);
$file = dbmopen("test", "c");
$data = dbmfetch($file, "TestKey");
echo $data;
dbmclose($file);
You see, "TestValue" should not appear on the screen
because the key has been deleted with "dbmdelete".
After the call, the database files are modified.
But they don't get smaller but bigger!
Is this OK? Shouldn't they get smaller when I delete something?
Will the files grow for ever? Does an optimization function exist for DBM
files?
Why is the key not deleted?
Thank you
David Scherfgen
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: David Scherfgen: "[PHP-DB] Can't modify DBM key"
- Previous message: Cameron Brunner: "[PHP-DB] pgsql"
- Next in thread: David Scherfgen: "[PHP-DB] Can't modify DBM key"
- Maybe reply: David Scherfgen: "[PHP-DB] Can't modify DBM key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

