ID: 13292
Updated by: sander
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
Doesn't work with 4.1.0 nor with 4.2.0-dev.
------------------------------------------------------------------------
[2001-12-14 14:29:39] [EMAIL PROTECTED]
This is not a Scripting Engine Problem, but a FIle System function report.
------------------------------------------------------------------------
[2001-12-14 14:28:20] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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