berkeley db3 on windows
| From: | Dave Viner | Date: | Wed, 08 Jan 2003 17:46:47 +0000 |
| Subject: | berkeley db3 on windows | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17725@lists.php.net to get a copy of this message | ||
hi,
i just got my windows/php/db3 env compiled. But
when I run a simple test script, I get this error:
C:\TEMP>php -f simple.php
Notice: dba_open()
[http://www.php.net/function.dba-open]: read:
0x12f8f4, 256:
Permission denied in C:\TEMP\simple.php on line 3
Notice: dba_open()
[http://www.php.net/function.dba-open]:
testdbcache.db: Permission denied in
C:\TEMP\simple.php on line 3
Warning: dba_open(testdbcache.db,c)
[http://www.php.net/function.dba-open]: Driver
initialization failed for handler: db3: Permission
denied in C:\TEMP\simple.php on line 3
opened testdbcache.db ->
C:\TEMP>
The script looks like this:
<?php
$path = "testdbcache.db";
$id = dba_open($path,"c","db3");
echo "opened $path -> $id<br>\n";
if($id)
{
dba_close($id);
echo "closed $path<br>\n";
}
else
echo "nothing opened<br>\n";
?>
It looks like a simple permissions problem, but the
weird thing is that the testdbcache.db file is
actually created in the directory, with 0 length.
has anyone seen this type of error or know how to fix
it?
thanks
dave
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com