Include authentication problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bvdamme@hotmail.com

    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
  • Jerry Stuckle

    #2
    Re: Include authentication problem

    bvdamme@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.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • C. (http://symcbean.blogspot.com/)

      #3
      Re: Include authentication problem

      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.

      Comment

      Working...