PHP! is it installed as a module?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP! is it installed as a module?

Postby jlock45 » 02. April 2012 16:03

Hi all

I have just installed xampp 1.7.7 and i keep getting Undefined 'PHP_AUTH_USER'!

The web site does work, but needs PHP installed as a module, so is there a way of doing this please?

Many thanks for any help anyone may be able to give me.

John
jlock45
 
Posts: 2
Joined: 23. July 2009 16:56

Re: PHP! is it installed as a module?

Postby Altrea » 02. April 2012 18:00

Hi John,

jlock45 wrote:...needs PHP installed as a module, so is there a way of doing this please?

XAMPP implements PHP as Apache Module by default.

jlock45 wrote:i keep getting Undefined 'PHP_AUTH_USER'!

That's no qualified error reporting.
We need some kind of sourcecode, what you are requesting (Browser-URL), Browser type and version and very important the FULL error message.
Otherwise you are still on your own with the debugging of your secret secret script.

Ressource for further reading: http://php.net/manual/en/features.http-auth.php

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: PHP! is it installed as a module?

Postby jlock45 » 03. April 2012 10:26

Thanks for the reply Altrea

My code it this... The Bold Red bit is the line with the error. Image below code..

If you goto www.rbrownfrs.co.uk it works. No Errors.
<?php
/***************************************************************************
* index.php
* ---------
* begin : Friday, 11 December 2009
* copyright : (C) John Lock
* email : support@bigfooters.co.uk
*
* Last updated : 05/11/2010
*
* index.php Version 1.0a
*
* Updates
* ---------------------------
*
*
***************************************************************************/

session_start(); // Start the session
header("Cache-control: private"); //IE 6 Fix

if (!isset($_SESSION['username'])) {
$_SESSION['username'] = $_SERVER['PHP_AUTH_USER'];
}

include_once $_SERVER['DOCUMENT_ROOT']."/common/overall_header.php";

echo "<h1>Welcome...</h1>";
echo "<p>May I welcome you to this site. It is still being constructed, so please bare with us, Thanks.</p>";


include_once $_SERVER['DOCUMENT_ROOT']."/common/overall_footer.php";
?>

Error in image
Image
jlock45
 
Posts: 2
Joined: 23. July 2009 16:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 206 guests