Bug #13292 Updated: file_exists works with UNC names

From: Date: Tue, 12 Feb 2002 21:44:53 +0000
Subject: Bug #13292 Updated: file_exists works with UNC names
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-212@lists.php.net to get a copy of this message
 ID:               13292
 Updated by:       dadrewa@characterlink.net
-Reported By:      Helmut.Himmelstoss@t-online.de
+Reported By:      dadrewa@characterlink.net
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: Windows NT/2000
 PHP Version:      4.0.6
 New Comment:

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.


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

[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.

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

[2001-12-14 14:29:39] yohgaki@php.net

This is not a Scripting Engine Problem, but a FIle System function
report.

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

[2001-12-14 14:28:20] yohgaki@php.net

Any updates for this? This is a known issue for a long time.

To reporter: I don't use windows. Could you try 4.1.0 and report the
result?

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

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



Thread (1 message)

  • dadrewa at characterlink dot net
  • Unknown Message
    • dadrewa at characterlink dot net
« previous php.bugs (#212) next »