Bug #13292 Updated: file_exists works with UNC names

From: Date: Sat, 15 Dec 2001 10:25:34 +0000
Subject: Bug #13292 Updated: file_exists works with UNC names
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to phpdoc+get-969339766@lists.php.net to get a copy of this message
ID: 13292 Updated by: sander Reported By: Helmut.Himmelstoss@t-online.de Old Summary: file_exists not working with UNC names Status: Open Old Bug Type: Filesystem function related Bug Type: Documentation problem Operating System: Windows NT/2000 PHP Version: 4.0.6 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc (#969339766) next »