ID:               13292
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

1. Update to 4.2.0
2. If it's permissions problem -> Not bug in PHP.


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

[2002-04-29 15:44:59] [EMAIL PROTECTED]

1. Update to 4.2.0
2. If it's permissions problem -> Not bug in PHP.


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

[2002-04-29 11:22:31] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

Have you tried the //computername/share/filename syntax?

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

[2002-02-12 16:44:53] [EMAIL PROTECTED]

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

Reply via email to