Bug #13292 Updated: file_exists works with UNC names

From: Date: Tue, 30 Apr 2002 11:29:56 +0000
Subject: Bug #13292 Updated: file_exists works with UNC names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6560@lists.php.net to get a copy of this message
ID: 13292 Updated by: christoph.grottolo@gmx.net Reported By: Helmut.Himmelstoss@t-online.de Status: Bogus Bug Type: Filesystem function related Operating System: Windows NT/2000 PHP Version: 4.1.1 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-04-29 15:45:09] sniper@php.net 1. Update to 4.2.0 2. If it's permissions problem -> Not bug in PHP. ------------------------------------------------------------------------ [2002-04-29 15:44:59] sniper@php.net 1. Update to 4.2.0 2. If it's permissions problem -> Not bug in PHP. ------------------------------------------------------------------------ [2002-04-29 11:22:31] Helmut.Himmelstoss@t-online.de Yes, this functionality are ok. But only when the PC is trusted in a domäne and you are using a domain-user. ------------------------------------------------------------------------ [2002-04-29 04:14:15] manuzhai@php.net Have you tried the //computername/share/filename syntax? ------------------------------------------------------------------------ [2002-02-12 16:44:53] dadrewa@characterlink.net I'm using IIS 5.0 on Windows 2000. I installed PHP 4.1.1 configured to be a CGI interpreter. I'm trying to require a file located on another W2K computer on our LAN with this code: require '\\\\computername\\sharename\\functions.php'; However, when I try to execute this PHP script, I get this error: Fatal error: Failed opening required '\\computername\sharename\functions.php' (include_path='..') in c:\inetpub\wwwroot\keygen\index.php on line 3 Supposedly this functionality is supported with PHP 4.1.1, but I'm not sure why it isn't working for me. The share is a local share and full access is granted to everyone. ------------------------------------------------------------------------ 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

« previous php.bugs (#6560) next »