473,388 Members | 1,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

failed to open stream: HTTP request failed! HTTP/1.1 401 AccessDenied in

Hi guys

I got a problem
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 ...'
My PHP script is very simple:

<?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:
session("dbcotel") = 0
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
There is something related with the permissions/rights, but I stuck
and cannot solve it.

Any help is appreciated

regards
Yakimo
Aug 4 '08 #1
5 9072
Hi,

Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.

IIS6 Anonymous Access:

http://www.microsoft.com/technet/pro....mspx?mfr=true

Regards,

John Peters

On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
Hi guys

I got a problem
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 ...'
My PHP script is very simple:

<?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:
session("dbcotel") = 0
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 withhttp://mese010/intranet/page.asp I can browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.

Any help is appreciated

regards
Yakimo
Aug 4 '08 #2
On Aug 4, 7:33*pm, petersprc <peters...@gmail.comwrote:
Hi,

Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.

IIS6 Anonymous Access:

http://www.microsoft.com/technet/pro...ver2003/Librar...

Regards,

John Peters

On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
Hi guys
I got a problem
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 ...'
My PHP script is very simple:
<?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:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedto open
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspI can browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -

- Show quoted text -
Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have "Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"

I also have in PHP.INI
allow_url_fopen = On

BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');

The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot

Regards
Yakimo
Aug 4 '08 #3
yakimo wrote:
On Aug 4, 7:33 pm, petersprc <peters...@gmail.comwrote:
>Hi,

Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.

IIS6 Anonymous Access:

http://www.microsoft.com/technet/pro...ver2003/Librar...

Regards,

John Peters

On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
>>Hi guys
I got a problem
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 ...'
My PHP script is very simple:
<?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:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedto open
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspI can browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -
- Show quoted text -

Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have "Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"

I also have in PHP.INI
allow_url_fopen = On

BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');

The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot

Regards
Yakimo
When you're accessing it through the windows path, you're accessing it
as your current user. When you do it via URL, you're using the IIS user.

I'd suggest you try one of the IIS newsgroups - you're problem is
Windows security, not PHP.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 4 '08 #4
On Aug 4, 10:17*pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
yakimo wrote:
On Aug 4, 7:33 pm, petersprc <peters...@gmail.comwrote:
Hi,
Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.
IIS6 Anonymous Access:
>http://www.microsoft.com/technet/pro...ver2003/Librar....
Regards,
John Peters
On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
>Hi guys
I got a problem
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 ...'
My PHP script is very simple:
<?php
*$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
*echo $menu_lines[3];
*$menu_lines = file('http://mese010/intranet/page.asp');//hereis
the error
*echo $menu_lines[3];
?>
The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedtoopen
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspIcan browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -
- Show quoted text -
Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have *"Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"
I also have in PHP.INI
allow_url_fopen = On
BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');
The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot
Regards
Yakimo

When you're accessing it through the windows path, you're accessing it
as your current user. *When you do it via URL, you're using the IIS user.

I'd suggest you try one of the IIS newsgroups - you're problem is
Windows security, not PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -
Thanks Jerry
You are right, but I was thinking that somebody could have met that -
PHP under IIS with anonymous off
Integrated WIndows auth. on

Regards,
Yakimo
Aug 4 '08 #5
yakimo wrote:
On Aug 4, 10:17 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>yakimo wrote:
>>On Aug 4, 7:33 pm, petersprc <peters...@gmail.comwrote:
Hi,
Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.
IIS6 Anonymous Access:
http://www.microsoft.com/technet/pro...ver2003/Librar...
Regards,
John Peters
On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
Hi guys
I got a problem
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 ...'
My PHP script is very simple:
<?php
$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
echo $menu_lines[3];
$menu_lines = file('http://mese010/intranet/page.asp');//hereis
the error
echo $menu_lines[3];
?>
The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedtoopen
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspIcan browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -
- Show quoted text -
Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have "Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"
I also have in PHP.INI
allow_url_fopen = On
BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');
The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot
Regards
Yakimo
When you're accessing it through the windows path, you're accessing it
as your current user. When you do it via URL, you're using the IIS user.

I'd suggest you try one of the IIS newsgroups - you're problem is
Windows security, not PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -

Thanks Jerry
You are right, but I was thinking that somebody could have met that -
PHP under IIS with anonymous off
Integrated WIndows auth. on

Regards,
Yakimo
I doubt there are many here using IIS. A few, but most are apache, and
I suspect most of those are on linux.

Those who are running IIS probably keep it as the default for local
testing or are running on shared servers and cannot change it.

It's why I suggested an IIS newsgroup - they're all using IIS there :-)

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 4 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Barti | last post by:
After upgrading php from 4.2.3 to 4.3.4 I have problem with "failed to open stream" Warning: main(): Failed opening '...........inc.php' for inclusion...
0
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it...
6
by: ruben | last post by:
Hi: I'm running a large database on PostgreSQL 7.1.3. 20 days ago the database failed with a threatening and not too descriptive error like: pg_exec() query failed: server closed the...
0
by: Dipen | last post by:
Hello All, I am using crystal report in my application. Everything is right but i end up with the following error. Failed to open a rowset. Description: An unhandled exception occurred during...
9
by: One | last post by:
I have a main.php file that calls a php navigation menu. I want to pass the menu file a parameter to tell it which menu to display. Inside the main.php I have : include...
16
by: Gary Wessle | last post by:
Hi please help with this. std::fstream iofs( f.c_str(), std::ios::in|std::ios::out ); std::cout << f << '\n' << iofs.is_open() << std::endl; puts out...
2
by: simbarashe | last post by:
Hie I'm trying to pass variables between pages using URLs however I am encountering the following error when I do so: Warning: main(jobSheetDisplay.php?id=20071403PB136CoA) : failed to open...
6
by: Andy2500 | last post by:
Hi, I'd like to upload an image to a folder, then I have 3 diffrents examples but all of them give an error "failed to open stream: Permission denied", althrough the C:\Inetpub\wwwroot is not...
2
by: swethak | last post by:
Hi, when i run my code it gives error as fopen(lib/providers//provider.RVLogic.php): failed to open stream: Permission denied in F:\Facebook\furniture11\Data...
5
by: phpnewbie26 | last post by:
I've been having trouble trying to open a file. It outputs fopen(/projects/CCPROT/ts_classes) : failed to open stream: No such file or directory in /mnt/raid/www/intra/admin/ts2/test2.php on line 72...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.