Re: Problem with permissions Win32 dba_open

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Bastien Koert" <bastien_k@xxxxxxxxxxx> wrote:

> have you set the permissions in the folders? Right click on the folder and 
> choose Properties...then set the appropraiate permissions
>
> bastien
[snip]

Thanks, Bastien.

Altering permissions doesn't appear to work, at least not the way it seems 
to be implemented with Service Pack 2.  Are you aware of the current method?

What seems to be necessary, after right-clicking a folder and selecting 
Properties, is to choose the Sharing tab.  XP then presents you with options 
for Local sharing and security (by dragging the folder into a new folder 
called Shared Documents) and for Network and security.

Now, my PC isn't used by anyone else and isn't connected to a LAN, so which 
method is appropriate for an Apache web server htdocs folder?  I haven't 
tried moving htdocs to this Shared Documents folder, that seems mad!, so 
just for a laugh, I selected my Apache folder and ticked the boxes for 
'sharing this folder on the network' and 'allow network users to change my 
files'.  A progress box appeared, to indicate that file permissions were 
being altered.  Great! I thought.

My test script STILL fails with 'Permission denied', even though it makes a 
zero-byte file in the right place.

Amended test script reads:

$dbh = dba_open( "C:/Apache/htdocs/test.db", "c" , "db3" );

dba_replace("fred", "test", $dbh);
dba_sync($dbh);
dba_close($dbh);

Response is:

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

Notice: dba_open(): C:/Apache/htdocs/test.db: Permission denied in 
c:\apache\htdocs\admin\dba.php on line 3

Warning: dba_open(C:/Apache/htdocs/test.db,c): Driver initialization failed 
for handler: db3: Permission denied in c:\apache\htdocs\admin\dba.php on 
line 3

Warning: dba_replace(): supplied argument is not a valid DBA identifier 
resource in c:\apache\htdocs\admin\dba.php on line 5

Warning: dba_sync(): supplied argument is not a valid DBA identifier 
resource in c:\apache\htdocs\admin\dba.php on line 6

Warning: dba_close(): supplied argument is not a valid DBA identifier 
resource in c:\apache\htdocs\admin\dba.php on line 7

Ian 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux