Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Permision denied Windows XP dba_open
I am testing my PHP scripts locally under XP Home SP2 / apache 1.3.23 / PHP
4.3.9 but I can't get a simple DBM script to work.  No problem running it on
my remote site, under Unix.

Locally, phpinfo() gives:

DBA support: enabled
Supported handlers: cdb cdb_make db3 inifile flatfile

This encourages me to think that I could open a database with db3 - so, my
test script reads:

$order_dbpath = "C:\Apache\htdocs\data\orders.db";
$dbtype = "db3";
$dbo = dba_open( $order_dbpath, "c", $dbtype ) or die( "Can't open Database
$order_dbpath" );

Running the script causes a zero-byte file (orders.db) to be created, but
results in the following browser output:

Notice: dba_open(): read: 0x12f550, 256: Permission denied in
c:\apache\htdocs\admin\orders.php on line 26

Notice: dba_open(): C:\Apache\htdocs\data\orders.db: Permission denied in
c:\apache\htdocs\admin\orders.php on line 26

Warning: dba_open(C:\Apache\htdocs\data\orders.db,c): Driver initialization
failed for handler: db3: Permission denied in
c:\apache\htdocs\admin\orders.php on line 26
Can't open Database C:\Apache\htdocs\data\orders.db

I can't figure out how to alter permissions under Windows XP or is something
else going wrong?

(A few ws ago I found a bug report on bugs.php.net, which I think said
this was a known problem, fixed in the latest release of PHP 4, but I can't
find this bug report again.)

Any suggestions please?  Thanks very much.  Ian



Report this thread to moderator Post Follow-up to this message
Old Post
Ian Wilkinson
12-23-04 08:58 PM


Re: Permision denied Windows XP dba_open
"Ian Wilkinson" <news@baringo.co.uk> wrote in message
news:330braF3ppvbgU1@individual.net...
[snip]

> Any suggestions please?  Thanks very much.  Ian

PS This appears to be a fixed bug (http://bugs.php.net/bug.php?id=28122) but
I still get "permission denied".

Since my original post I have installed PHP 4.3.10 and downloaded PHP 5.
Should I install this latest version?

Merry Christmas ;o)
Ian



Report this thread to moderator Post Follow-up to this message
Old Post
Ian Wilkinson
12-24-04 01:56 AM


Re: Permision denied Windows XP dba_open
"Ian Wilkinson" <news@baringo.co.uk> wrote in message
news:330braF3ppvbgU1@individual.net...
[snip]

> Any suggestions please?  Thanks very much.  Ian

PS This appears to be a fixed bug (http://bugs.php.net/bug.php?id=28122) but
I still get "permission denied".

Since my original post I have installed PHP 4.3.10 and downloaded PHP 5.
Should I install this latest version?

Merry Christmas ;o)
Ian



Report this thread to moderator Post Follow-up to this message
Old Post
Ian Wilkinson
12-28-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:06 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.