For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > October 2004 > #13292 [Opn->Csd]: file_exists works with UNC names









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #13292 [Opn->Csd]: file_exists works with UNC names
didou@php.net

2004-10-31, 3:55 pm

ID: 13292
Updated by: didou@php.net
Reported By: Helmut dot Himmelstoss at t-online dot de
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Windows NT/2000
PHP Version: 4.1.1
New Comment:

FAQ entry added, thank you Paul


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

[2004-08-25 09:24:02] derick@php.net

This last comment is something for the FAQ i think...

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

[2004-08-25 09:17:59] paul dot yau at travelex dot com dot au

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.

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

[2002-06-02 15:03:47] k.schroeder@php.net

This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.



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

[2002-04-30 08:06:26] christoph dot grottolo at gmx dot net

Addition to my previous post:

If you use apache and PHP as CGI under Windows and install it as a
service, you have to make it run under a domain account to let PHP
access remote shares (check in control panel -> services). Usually it's
run under the local system account.

I think this is also valid if you run PHP as an apache module but I
didn't test.

Maybe this should also go into the documentation.

Christoph

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

[2002-04-30 07:40:57] mfischer@php.net

Sounds reasonable as this kind of things keep coming more often
recently. Marking as documentation problem

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

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com