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

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.


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

[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/ ??


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

[2003-02-11 09:48:49] [EMAIL PROTECTED]

Dear Gracious and Grand Volunteer (how's that for laying it on think?!)
:-) Seriously, thanks for what your volunteer team does, PHP is a
fantastic piece of work thanks to the effort of all of you who make it
a reality. Thanks.

On to the Problem at hand:

When I use the OpenDir() function on a UNC mapped network drive (code
snippet submitted previously on 2/10/03), The OpenDir() function does
not return a reference to the requested directory.

It works fine for a local drive such as "C:\" or "D:\" but when I try
to use "I:\" or "I:\templates" which is a UNC mapping to my intranet
web server of "\\intranet\www\templates" it does not reconize the
drive. I am able to access this drive from DOS and from Windows
Explorer. I have full access to the drive (read, write, modify, delete,
etc.). I am running PHP as an Apache module (Apache 2.0.43 win32) and I
am running Apache as a service on Win2K SP3.

I have read through the bug database and have parused the news groups.
I have seen similar instances of this problem but none with a specific
fix. Most entries are marked "Bogus" or "Need More Info".

In two instances there is a reference to giving new authorites to the
Apache user or to change the Apache to a different user with
appropriate privileges. I am assuming that this refers to Linux/UNIX
version of Apache as the User ID I am running Apache under in Win2K has
accesss to these network drivers and directories.

A specific, detailed example of a fix would be most helpful and
appreciated.

Thanks again.

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

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