PHP_AUTH_USER je prazna stran

Lepo pozdravljeni,
ko spustim kodo skozi, mi vrze vn prazno stran.

<?php
errorreporting(EALL);
errorreporting(0);
set
timelimit(0);
/*
if (($
SERVER['PHPAUTHUSER'] !== 'admin' ) || ($SERVER['PHPAUTH_PW'] !== 'xyz')) {
header('WWW-Authenticate: Basic realm="my realm"');
header('HTTP/1.0 401 Unauthorized');

echo '<HTML>

<HEAD><TITLE>Authorization Failed</TITLE></HEAD>
<BODY>
<H1>Authorization Failed</H1>
<P>Without a valid username and password,
access to this page cannot be granted.
Please click .reload. and enter a
username and password when prompted.
</P>
</BODY>
</HTML>';

exit;

}
*/

?>

<link rel=stylesheet href="/style.css" type="text/css">
<meta http-equiv="content-type" content="text/html; charset=Windows-1250">
<pre>
<?php

$start_time=microtime();

require_once('include.php');

#findimages(DISK_PREFIX().'/');

list_urls();

reset($popups);
while(list($key,$val)=each($popups)) {

Ko pa tole spustim skozi , mi pa vrze vn: Prenos podatkov je aktiviran. Prosim preverite cez 5 min ali je bil prenos uspesen.

<?php
// errorreporting(EALL);
?>

<?php

/*
if (isset($SERVER['PHPAUTHUSER'] !== 'admin' ) {
($
SERVER['PHPAUTHPW'] !== 'xxx')) {
header('WWW-Authenticate: Basic realm="xxxxxzzzzz"');
header('HTTP/1.0 401 Unauthorized');

echo '<HTML>

<HEAD><TITLE>Authorization Failed</TITLE></HEAD>
<BODY>
<H1>Authorization Failed</H1>
<P>Without a valid username and password,
access to this page cannot be granted.
Please click .reload. and enter a
username and password when prompted.
</P>
</BODY>
</HTML>';

exit;

}
*/

?>
<html>
<head>
<link rel=stylesheet href="/style.css" type="text/css">
<meta http-equiv="content-type" content="text/html; charset=Windows-1250">
</head>
<body>
Prenos podatkov je aktiviran. Prosim preverite cez 5 min ali je bil prenos uspesen.
<?php
touch('/tmp/prenos-aktiven');
?>
</body>
</html>

Kaj delam narobe?
Najlepša hvala za odg.

2 odgovora

error_reporting(0);

spremeni v

// error_reporting(0);

1

Hvala R3BORN, kaj pa pri drugi kodi?