Hi to all,
this is my 1st message here.
This is my problem: I have an application that read (and open) some wave's files on a remote folder, situated on a server inside the company lan.
This application run on an older Windows2000 and it has no problems.
I've transferred the files on a new machine, wich runs Windows 2003 Server R2, always inside the lan, but I'm not able to read the remote folder anymore.
PHP version is the same on both machine (old and new) and both are running as isapi module under IIS.
Of course, if I try to open the folder manually trought "run" command (from start menu), everything works fine.
Any suggestion??
Thanks!
Read remote folder on the same LAN
Moderator: General Moderators
Re: Read remote folder on the same LAN
are the fopen wrappers activated?
if so, then you are having an IIS issue. get rid of it, if possible.
if so, then you are having an IIS issue. get rid of it, if possible.
Re: Read remote folder on the same LAN
Gragoyle,
thank for your reply.
I've disable the wrappers into the php.ini
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = Off
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off
restarted IIS but the problem remains.
this is the simple code:
and the result is: bool(false)
thank for your reply.
I've disable the wrappers into the php.ini
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = Off
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off
restarted IIS but the problem remains.
this is the simple code:
Code: Select all
$path = "\\\\RemoteServer\\";
var_dump(file_exists($path));
Re: Read remote folder on the same LAN
are you running in safe mode? if so, try disabling it because of the folder restrictions.
try normal slashes instead of backslashes in your network path.
finally, if I remember right, IIS always runs on a user account, which may not have network privileges. run it as a network user.
try normal slashes instead of backslashes in your network path.
finally, if I remember right, IIS always runs on a user account, which may not have network privileges. run it as a network user.
Re: Read remote folder on the same LAN
no, safe mode is disabledGargoyle wrote:are you running in safe mode? if so, try disabling it because of the folder restrictions.
tried, nothing happensGargoyle wrote:try normal slashes instead of backslashes in your network path.
yes, but is anonymous....i've tried to change as administrator but nothing....Gargoyle wrote:finally, if I remember right, IIS always runs on a user account, which may not have network privileges. run it as a network user.
Re: Read remote folder on the same LAN
your problem is almost certainly with IIS then. I don't use IIS (for good reasons) so I can't be of further assistance here and this may be the wrong forum to get help on this.
Re: Read remote folder on the same LAN
ok, thanks the same...