Click to See Complete Forum and Search --> : Require File Using UNC Path


Anon
02-12-2002, 05:11 PM
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

Am I doing this correctly? Does anyone know why I'm getting the error?

Thanks!

andrin
02-13-2002, 10:49 PM
I am not sure about this but I think itīs a security issue. Accessing another computer needs authentication. Maybe if the other computer running a webserver and you can get the result via the HTTP protocol.
Or maybe you should use DCOM, CORBA or SOAP ;-)

/Andrin