473,394 Members | 1,821 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,394 software developers and data experts.

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
Oct 7 '08 #1
2 2614
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tom Cat | last post by:
Is there anything wrong with using a lot of include files? On one part of my website, I have a form. The page it posts data to, includes a different file based on some of the values. The...
1
by: Sean Pinto | last post by:
Ok, you all are going to have to bear with me on this one as it is kinda complicated to explain. I am implementing a company management suite that requires Role-Based authentiations (ie. users are...
0
by: BB | last post by:
Below is my sendmail jsp (I copied it from somewhere else and it works for me). It fetches the message from another page and sends it to a email. The problem is that the smtp needs authentication....
4
by: Paul M | last post by:
hi there, i've got a website i created, that i've put onto my test server on the web. I have a login page, that when the user comes to it, it first pops up a windows authentication dialog box,...
1
by: basulasz | last post by:
I have an authenticate page in ASP format. I want to include it in my ASP.NET project, in such a way that, I want it to run everytime when any request to my ASP.NET project pages occurs. The user...
6
by: Ming Zhang | last post by:
Hi guys, I have couple of ASP.NET applications that only support digest windows authentication, and credentials are managed in a central AD. When users login to one app, they can easily navigate...
3
by: KNC | last post by:
Hi all, I'm developing a website and deployed on webserver, it always display an authentication dialog that user must login with valid Windows user. Would anyone helps to instruct how to...
2
by: Frank Swarbrick | last post by:
I am trying to understand "client authentication" works. My environment is DB2/UDB LUW 8.2 on zSeries SLES9 as the database server and DB2 for VSE 7.4 as the client. We currently have DB2/LUW set...
4
by: =?Utf-8?B?R3V1czEyMw==?= | last post by:
Hi, I created a web site on a remote server. To logon the user must enter a user id and password. The site is uses Forms Authentication. The web config file looks as follows: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.