summaryrefslogtreecommitdiff
path: root/lang/php_db4/samples
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php_db4/samples')
-rw-r--r--lang/php_db4/samples/simple_counter.php4
-rw-r--r--lang/php_db4/samples/transactional_counter.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/lang/php_db4/samples/simple_counter.php b/lang/php_db4/samples/simple_counter.php
index 80ba693b..b391f8bc 100644
--- a/lang/php_db4/samples/simple_counter.php
+++ b/lang/php_db4/samples/simple_counter.php
@@ -2,9 +2,9 @@
// Create a new Db4 Instance
$db = new Db4();
-// Open it outside a Db4Env environment with datafile /var/lib/db4
+// Open it outside a Db4Env environment with datafile db4
// and database name "test." This creates a non-transactional database
-$db->open(null, "/var/tmp/db4", "test");
+$db->open(null, "./db4", "test");
// Get the current value of "counter"
$counter = $db->get("counter");
diff --git a/lang/php_db4/samples/transactional_counter.php b/lang/php_db4/samples/transactional_counter.php
index 489ff91d..93330cf1 100644
--- a/lang/php_db4/samples/transactional_counter.php
+++ b/lang/php_db4/samples/transactional_counter.php
@@ -3,8 +3,8 @@
// Open a new Db4Env. By default it is transactional. The directory
// path in the open() call must exist.
$dbenv = new Db4Env();
-$dbenv->set_data_dir("/var/tmp/dbhome");
-$dbenv->open("/var/tmp/dbhome");
+$dbenv->set_data_dir(".");
+$dbenv->open(".");
// Open a database in $dbenv.
$db = new Db4($dbenv);