#22153 [Fbk->Opn]: Trouble accessing network drives with opendir()
| From: | cstreeter at andesagroup dot com | Date: | Tue, 11 Feb 2003 15:48:50 +0000 |
| Subject: | #22153 [Fbk->Opn]: Trouble accessing network drives with opendir() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32771@lists.php.net to get a copy of this message | ||
ID: 22153
User updated by: cstreeter@andesagroup.com
Reported By: cstreeter@andesagroup.com
-Status: Feedback
+Status: Open
Bug Type: Directory function related
Operating System: Win2K
PHP Version: 5CVS-2003-02-10 (dev)
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2003-02-10 17:56:23] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-02-10 15:50:29] cstreeter@andesagroup.com
This code:
if ($dir = opendir( $dirPath ) ) {
while ( ( $file = readdir( $dir ) ) !== false) {
echo "$file\n";
}
closedir( $dir );
}
Give me this error:
Warning: opendir(i:\templates) [function.opendir]: failed to open dir:
Invalid argument in C:\www\AndesaNet\function_library.php on line 298
I: is a UNC mapped drive and i:\templates is a network folder that I
have full access to. I can read, write, change and delete files here
both from a DOS prompt and from Windows Explorer.
I am running PHP as a module on Apache2 (win bianaries)
Is this a known bug?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22153&edit=1