Bug #13292 Updated: file_exists works with UNC names

From: Date: Sat, 15 Dec 2001 10:54:57 +0000
Subject: Bug #13292 Updated: file_exists works with UNC names
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-73895@lists.php.net to get a copy of this message
ID: 13292
Updated by: sander
Reported By: Helmut.Himmelstoss@t-online.de
Status: Open
Bug Type: Documentation problem
Operating System: Windows NT/2000
PHP Version: 4.0.6
New Comment:

Markus noted that you should always use double backslashes (or single slashes):
"\\\\computername\\share\\filename"

BTW: sorry for the typo Christoph... ;)

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

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

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

[2001-09-13 15:55:36] Helmut.Himmelstoss@t-online.de

On a Windows 2000 box with PHP and IIS5.0, create a page the calls the file_exists function on a
known machine\share\file

You will need to create a share on that machine or another.

For example :

if (file_exists("\\\\machine\\share\\test.txt") {
  echo "Exists<BR>";
} else {
  echo "Does not Exist<BR>";
}

The file_exists function will always return false.

The function works fine with drive letter associations, but not for UNC notation on win32.

You have closed this bug with id #6554.

But this bug is not fixed in 4.0.6

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



Edit this bug report at http://bugs.php.net/?id=13292&edit=1



Thread (8 messages)

« previous php.dev (#73895) next »