Bug #13292 Updated: file_exists works with UNC names
| From: | Helmut dot Himmelstoss at t-online dot de | Date: | Mon, 29 Apr 2002 15:22:31 +0000 |
| Subject: | Bug #13292 Updated: file_exists works with UNC names | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6465@lists.php.net to get a copy of this message | ||
ID: 13292
Updated by: Helmut.Himmelstoss@t-online.de
Reported By: Helmut.Himmelstoss@t-online.de
Status: Open
Bug Type: Filesystem function related
Operating System: Windows NT/2000
PHP Version: 4.0.6
New Comment:
Yes, this functionality are ok.
But only when the PC is trusted in a domäne and you are using a
domain-user.
Previous Comments:
------------------------------------------------------------------------
[2002-04-29 04:14:15] manuzhai@php.net
Have you tried the //computername/share/filename syntax?
------------------------------------------------------------------------
[2002-02-12 16:44:53] dadrewa@characterlink.net
I'm using IIS 5.0 on Windows 2000. I installed PHP 4.1.1 configured to
be a CGI interpreter. I'm trying to require a file located on another
W2K computer on our LAN with this code:
require '\\\\computername\\sharename\\functions.php';
However, when I try to execute this PHP script, I get this error:
Fatal error: Failed opening required
'\\computername\sharename\functions.php' (include_path='..') in
c:\inetpub\wwwroot\keygen\index.php on line 3
Supposedly this functionality is supported with PHP 4.1.1, but I'm not
sure why it isn't working for me. The share is a local share and full
access is granted to everyone.
------------------------------------------------------------------------
[2001-12-15 05:54:56] sander@php.net
Markus noted that you should always use double backslashes (or single
slashes): "\\\\computername\\share\\filename"
BTW: sorry for the typo Christoph... ;)
------------------------------------------------------------------------
[2001-12-15 05:25:33] sander@php.net
Actually, it does work!!!
Use "//computername/share/filename" or
"\\\\computername\share\filename"
Thanks to Christph Grottolo for the tip.
Now it's only a documentation problem.
------------------------------------------------------------------------
[2001-12-14 14:38:09] sander@php.net
Doesn't work with 4.1.0 nor with 4.2.0-dev.
------------------------------------------------------------------------
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/13292
--
Edit this bug report at http://bugs.php.net/?id=13292&edit=1