Hallo Leutz,
Auf meinen Server tritt bei einer Datei das Problem auf:
Warning: Cannot modify header information - headers already sent by (output started at Datei.php:7) in [Datei] on line 21

Der Codebereich:
PHP-Code:
<?session_start();?>
<html>
<head>
<title>Admin</title>
</head>
<body bgcolor="#c0c0c0" ms_positioning="gridlayout">
<?php
//Datenbankverbindung
Include("../cgi-bin/dbconnect.inc");
//Variablen
$UName $_POST['Name'];
$UPass $_POST['login'];
$logout $_GET['logout'];
$Eingeloggt $_SESSION['eingeloggt'];
$result mysql_query("SELECT * FROM users");
While (
$row mysql_fetch_object($result)){ 
If (isset(
$UName) && isset($UPass) && $UName ==$row->Name && $UPass == $row->Passwort){
$_SESSION['eingeloggt'] = 'OK';
header ("Location: [PFAD][DATEI] ");
}
Nach der Warnung muss der Fehler in Zeile 7 (started at Datei.php:7) liegen aber ich habe schon alles Mögliche versucht. Das Komische ist noch, das bei Xampp alles läuft.
Hatte jemand von euch schon das Problem und kann mir da weiterhelfen?