Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 4 Aug 2008 15:09:40 -0700 (PDT),    group: microsoft.public.inetserver.iis        back       


HTTP request failed! HTTP/1.1   
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
date: Mon, 4 Aug 2008 15:09:40 -0700 (PDT)   author:   yakimo

Re: HTTP request failed! HTTP/1.1   
"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
date: Tue, 5 Aug 2008 08:25:58 +0100   author:   Anthony Jones

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us