|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-09-13 15:55 UTC] Helmut dot Himmelstoss at t-online dot 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
You have to change the Go to Internet Information Services, locate your php file, go to the properties of the file, Go to File security tab, Edit -> Anonymous access and authetication control 2 methods: first: Untick "Anonymous Access" and leave "Integrated Window Authentication" ticked second: Tick Anonymous Access, edit and change the user. The user that's currently listed may be restricted to certain access. The problem i had was similar to everyone elses. Here's a small script to check that the share works: Where: it-56a is the server Prod-Temp is the share name and Temp is the folder in the share name <?PHP //UNC connection $path = "\\\\it-56a\\Prod-Temp\\Temp"; if(file_exists($path)) { echo "$path exists<br>"; } else echo "Cannot find $path<br>"; ?> So i don't think this is a bug, it's more of an IIS setting.