Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 7th, 2008, 06:55 PM
bvdamme@hotmail.com
Guest
 
Posts: n/a
Default Include authentication problem

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
  #2  
Old October 7th, 2008, 08:25 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default Re: Include authentication problem

bvdamme@hotmail.com wrote:
Quote:
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.
jstucklex@attglobal.net
==================

  #3  
Old October 8th, 2008, 12:55 PM
C. (http://symcbean.blogspot.com/)
Guest
 
Posts: n/a
Default Re: Include authentication problem

On 7 Oct, 18:52, bvda...@hotmail.com wrote:
Quote:
Hello,
>
In my httpd error_log file I get following error :
<snip>
Quote:
[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.
Quote:
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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles