By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

Include authentication problem

P: n/a
Hello,

In my httpd error_log file I get following error :

[Tue Oct 07 19:22:04 2008] [error] [client 10.10.10.5] PHP Warning:
include(http://filuntu/php/includes/header.php?
mask_menu1=1111&mask_menu2=111111&terug=/php/hoofdmenu.php)
[<a href='function.include'>function.include</a>]: failed to open
stream: HTTP request failed! HTTP/1.1 401 Authorization Required\r\n
in /mnt/vg_hdg_3/alegra/website/php/hoofdmenu.php on line 43
[Tue Oct 07 19:22:04 2008] [error] [client 10.10.10.5] PHP Warning:
include() [<a href='function.include'>function.include</a>]: Failed
opening 'http://filuntu/php/includes/header.php?
mask_menu1=1111&amp;mask_menu2=111111&amp;terug=/php/hoofdmenu.php'
for inclusion (include_path='/mnt/vg_hdg_3/alegra/website/php/
includes') in /mnt/vg_hdg_3/alegra/website/php/hoofdmenu.php on line
43

When I open the URl "http://filuntu/php/includes/header.php?
mask_menu1=1111&amp;mask_menu2=111111&amp;terug=/php/hoofdmenu.php)"
It opens immediatly.

What is the problem and how can I solve it ?
Has it something to do with "allow_url_include" ? This is set to
"On".

This used to work. I really don't know why it gives the error.

Thanks a lot,

Bruno
Oct 7 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
bv*****@hotmail.com wrote:
Hello,

In my httpd error_log file I get following error :

[Tue Oct 07 19:22:04 2008] [error] [client 10.10.10.5] PHP Warning:
include(http://filuntu/php/includes/header.php?
mask_menu1=1111&amp;mask_menu2=111111&amp;terug=/php/hoofdmenu.php)
[<a href='function.include'>function.include</a>]: failed to open
stream: HTTP request failed! HTTP/1.1 401 Authorization Required\r\n
in /mnt/vg_hdg_3/alegra/website/php/hoofdmenu.php on line 43
[Tue Oct 07 19:22:04 2008] [error] [client 10.10.10.5] PHP Warning:
include() [<a href='function.include'>function.include</a>]: Failed
opening 'http://filuntu/php/includes/header.php?
mask_menu1=1111&amp;mask_menu2=111111&amp;terug=/php/hoofdmenu.php'
for inclusion (include_path='/mnt/vg_hdg_3/alegra/website/php/
includes') in /mnt/vg_hdg_3/alegra/website/php/hoofdmenu.php on line
43

When I open the URl "http://filuntu/php/includes/header.php?
mask_menu1=1111&amp;mask_menu2=111111&amp;terug=/php/hoofdmenu.php)"
It opens immediatly.

What is the problem and how can I solve it ?
Has it something to do with "allow_url_include" ? This is set to
"On".

This used to work. I really don't know why it gives the error.

Thanks a lot,

Bruno
It means your web server is set up to require authorization to include
this file.

Is it your own file? If so, you shouldn't be using http: (which
requires another request to the server) and just include the file directly.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 7 '08 #2

P: n/a
On 7 Oct, 18:52, bvda...@hotmail.com wrote:
Hello,

In my httpd error_log file I get following error :
<snip>
[Tue Oct 07 19:22:04 2008] [error] [client 10.10.10.5] PHP Warning:
include() [<a href='function.include'>function.include</a>]: Failed
opening 'http://filuntu/php/includes/header.php?
mask_menu1=1111&mask_menu2=111111&terug=/php/hoofdmenu.php'
for inclusion (include_path='/mnt/vg_hdg_3/alegra/website/php/
includes') in /mnt/vg_hdg_3/alegra/website/php/hoofdmenu.php on line
43

When I open the URl "http://filuntu/php/includes/header.php?
mask_menu1=1111&mask_menu2=111111&terug=/php/hoofdmenu.php)"
It opens immediatly.
You're probably still getting the error - just not seeing it on the
browser.
What is the problem and how can I solve it ?
Has it something to do with "allow_url_include" ? This is set to
"On".

This used to work. I really don't know why it gives the error.
It depends what you mean by "used to work".

Maybe someone changed the permissions at the other end?

C.
Oct 8 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.