#22153 [Opn->Bgs]: Trouble accessing network drives with opendir()
| From: | iliaa@php.net | Date: | Thu, 13 Feb 2003 16:08:59 +0000 |
| Subject: | #22153 [Opn->Bgs]: Trouble accessing network drives with opendir() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33047@lists.php.net to get a copy of this message | ||
ID: 22153
Updated by: iliaa@php.net
Reported By: cstreeter@andesagroup.com
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Win2K
PHP Version: 4.3.1-dev
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
User indicates the the problem was due to a local configuration issue.
Previous Comments:
------------------------------------------------------------------------
[2003-02-13 10:05:03] cstreeter@andesagroup.com
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
------------------------------------------------------------------------
[2003-02-13 07:45:47] iliaa@php.net
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] cstreeter@andesagroup.com
I'm sorry Sniper, I'm not sure.
------------------------------------------------------------------------
[2003-02-11 21:47:32] sniper@php.net
One more question: Did this work in any PHP version? (4.2.3 or older?)
------------------------------------------------------------------------
[2003-02-11 21:01:44] cstreeter@andesagroup.com
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?
------------------------------------------------------------------------
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