Hi guys II tried ths in PHP group, and they suggested IIS :-) On my IIS server I changed the password for the Internet Guest Account 'IUSR_Machine' and suddenly the PHP part of the intranet stopped working. - '... failed to open stream: HTTP request failed! HTTP/1.1 401 Access Denied in ...' <?php $menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp'); echo $menu_lines[3]; $menu_lines = file('http://mese010/intranet/page.asp'); // here is the error echo $menu_lines[3]; ?> The output is: some text Warning: file(http://mese010/intranet/page.asp): failed to open stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs \tzy.php on line 4 If I open IE with http://mese010/intranet/page.asp I can browse the page that PHP cannot open. This is something related to the permissions/rights, but I stuck and cannot solve it. on my site - anonymous access is off (I need that) - "Integrated windows authentication" is on I also have in PHP.INI allow_url_fopen = On Any help is greatly appreciated. Regards, Yakimo
"yakimo" wrote in message news:d943f3e4-15e1-43f8-a3c9-d6c0afb872c6@m45g2000hsb.googlegroups.com... > Hi guys > > II tried ths in PHP group, and they suggested IIS :-) > > On my IIS server I changed the password for the Internet Guest > Account > 'IUSR_Machine' and suddenly the PHP part of the intranet stopped > working. - '... failed to open stream: HTTP request failed! HTTP/1.1 > 401 Access Denied in ...' > > <?php > $menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp'); > echo $menu_lines[3]; > $menu_lines = file('http://mese010/intranet/page.asp'); // here is > the error > echo $menu_lines[3]; > ?> > > The output is: > some text > Warning: file(http://mese010/intranet/page.asp): failed to open > stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs > \tzy.php on line 4 > > If I open IE with http://mese010/intranet/page.asp I can browse the > page that PHP cannot open. > This is something related to the permissions/rights, but I stuck > and cannot solve it. > > on my site > - anonymous access is off (I need that) > - "Integrated windows authentication" is on > > I also have in PHP.INI > allow_url_fopen = On > > Any help is greatly appreciated. > My guess is that the mese010 server also has a Guest user account with same name and password as your server. Only you now need to change its password on mese010 as well. -- Anthony Jones - MVP ASP/ASP.NET