ID: 13292 Updated by: [EMAIL PROTECTED] Reported By: Helmut dot Himmelstoss at t-online dot de -Status: Closed +Status: Open Bug Type: Documentation problem Operating System: Windows NT/2000 PHP Version: 4.1.1 New Comment:
This last comment is something for the FAQ i think... Previous Comments: ------------------------------------------------------------------------ [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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] Sounds reasonable as this kind of things keep coming more often recently. Marking as documentation problem ------------------------------------------------------------------------ [2002-04-30 07:29:56] christoph dot grottolo at gmx dot net In IIS you can check the option 'check that file exists' in the IIS Admin interface on the panel where you enter the file extensions (.php -> c:\php\php.exe). Then IIS will check the permissions and open the file for php. The anonymous webserver account (usually IUSER_MACHINENAME) must have appropriate permissions on the remote share. If not IIS will check if the remote user is a domain user with permission to access the share, but this only works if the remote user is in the same or in a trusted domain AND uses MSIE AND NTLM authentication is enabled in IIS. PHP as CGI in IIS starts on a local account and cannot access remote shares itself. I've been asked questions about this issue quite often, maybe the correct settings should be explained in the manual. Christoph ------------------------------------------------------------------------ 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