ID:               22153
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         Directory function related
 Operating System: Win2K
 PHP Version:      4.3.1-dev
 New Comment:

Kind and Helpful PHP dudes and dudettes:

My Bad. Once I set the permissions on the share to "Everyone" the
problem went away. I had them only set for my ID (which I was using to
connect to the drives) but apprently, that wasn't getting resolved by
Apache.

SO - To anyone who needs to use UNC mapped drives with OpenDir(), if
you are having a problem with OpenDir() reading the directory, check
your permissions for the share on the host machine. Start with giving
full permission to everyone (which should work fine) and then back
accessability until you have a problem.

Please consider this issue closed for my account. Thank you.

Hope this helps others.

Chris


Previous Comments:
------------------------------------------------------------------------

[2003-02-13 07:45:47] [EMAIL PROTECTED]

I've ran a few tests on Windows XP using the latest PHP.

First of all PHP can open networked drives, however it can do so when
you specify the network share speficially, for example:
opendir("\\\\my.ip\\my_dir");
Also, the access to the drive needs to be previously authenticated, so
the auth process need not be done by PHP, which cannot do it. Meaning
that in my tests it only worked if I opened the network drive manually
first using explorer and supplied to proper credentials (login &
password), which the system then used automatically for all future
connections.

------------------------------------------------------------------------

[2003-02-11 23:05:50] [EMAIL PROTECTED]

I'm sorry Sniper, I'm not sure.

------------------------------------------------------------------------

[2003-02-11 21:47:32] [EMAIL PROTECTED]

One more question: Did this work in any PHP version? (4.2.3 or older?)


------------------------------------------------------------------------

[2003-02-11 21:01:44] [EMAIL PROTECTED]

Yes.

I tried it with my previous installation (DEV 4.4) and I also
donwloaded and installed the latest stable release from
http://snaps.php.net/ some time yesterday (2/10/03) and I have the same
problem with all three versions. For some reason OpenDir does not
appear to be fond of mapped drives.

Thanks again for looking into this...Do you have all the information
you need?

------------------------------------------------------------------------

[2003-02-11 20:41:00] [EMAIL PROTECTED]

Forgot to ask, but does this happen with PHP 4.3.0 ?
Or preferrably, with the latest STABLE snapshot from
http://snaps.php.net/ ??


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22153

-- 
Edit this bug report at http://bugs.php.net/?id=22153&edit=1

Reply via email to