Page 1 of 1

PHP! is it installed as a module?

PostPosted: 02. April 2012 16:03
by jlock45
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

Re: PHP! is it installed as a module?

PostPosted: 02. April 2012 18:00
by Altrea
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

Re: PHP! is it installed as a module?

PostPosted: 03. April 2012 10:26
by jlock45
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