473,698 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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&ter ug=/php/hoofdmenu.php)
[<a href='function. include'>functi on.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'>functi on.include</a>]: Failed
opening 'http://filuntu/php/includes/header.php?
mask_menu1=1111 &amp;mask_menu2 =111111&amp;ter ug=/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;ter ug=/php/hoofdmenu.php)"
It opens immediatly.

What is the problem and how can I solve it ?
Has it something to do with "allow_url_incl ude" ? 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 2633
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;ter ug=/php/hoofdmenu.php)
[<a href='function. include'>functi on.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'>functi on.include</a>]: Failed
opening 'http://filuntu/php/includes/header.php?
mask_menu1=1111 &amp;mask_menu2 =111111&amp;ter ug=/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;ter ug=/php/hoofdmenu.php)"
It opens immediatly.

What is the problem and how can I solve it ?
Has it something to do with "allow_url_incl ude" ? 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*******@attgl obal.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'>functi on.include</a>]: Failed
opening 'http://filuntu/php/includes/header.php?
mask_menu1=1111 &mask_menu2=111 111&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=111 111&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_incl ude" ? 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
2317
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 include files also include other pages based on different values. All of these work together to select the right information from the database and display it in the correct format. I'm just wondering if it is better to put all the code in one file...
1
2441
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 in groups and groups have roles). I have one script which is included in EVERY page in the protected area (masterFuncs.php) and it contains function declarations as well as the authentication module kick-off. Here is a snippet from masterFuncs...
0
1568
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. How do I add the authentication detail in this jsp? And, how do I include the web page instead of plain text in the email to be sent just like how it appears in the email text area when I hit "Send page by email". Thanks. <%@ page...
4
1955
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, and i dont know why? i click cancel on it and the page still works as normal. How can i remove this, and why is it appearing? i am also not using any .NET authentication methods or anything..
1
1008
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 will be checked by this page, and if it authenticated he/she will be able to run on my ASP.NET pages. Now the question is, can i include this authentication page into my project to authenticate users with include method as in ASP or in a...
6
3338
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 to other apps without reenter UID/PWD. Everything works except it doesn't meet our security policy for new created users. When creating a new user, it's required to have "user must change password when first time login". In this case, the user will...
3
1565
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 prohibit this dialog? Some information provides for you: 1) Dev softs: - VS 2005, ASP.NET 2.0, SQL Server 2005 Enterprise edition 2) Server:
2
7514
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 up as follows: Client Userid-Password Plugin (CLNT_PW_PLUGIN) = Client Kerberos Plugin (CLNT_KRB_PLUGIN) = Group Plugin (GROUP_PLUGIN) = GSS Plugin for Local Authorization ...
4
424
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: <configuration> <system.web> <customErrors mode="Off"/>
0
8608
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9161
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8867
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7732
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.