| | | | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | ||
| Erfahrener Benutzer Registriert seit: 25.02.2004
Beiträge: 1.524
![]() | Zitat:
__________________ "die Mitte des Textes kann ja theor. mitten in einem Text liegen" | |
| |
| | |||
| Erfahrener Benutzer Registriert seit: 08.08.2003
Beiträge: 111
![]() | Zitat:
hmm das ist schlecht | ||
| |
| | |
| Erfahrener Benutzer Registriert seit: 25.02.2004
Beiträge: 1.524
![]() | steht in zeile 49 zufällig das? PHP-Code:
__________________ "die Mitte des Textes kann ja theor. mitten in einem Text liegen" |
| |
| | ||
| Erfahrener Benutzer Registriert seit: 08.08.2003
Beiträge: 111
![]() | Code: #Das hier ist auch die Zeile 49 wo der fehler sein soll
setcookie("djkoberthal", $usr_id, time() +3600);
| |
| |
| | |||
| Erfahrener Benutzer Registriert seit: 25.02.2004
Beiträge: 1.524
![]() | Zitat:
Zitat:
__________________ "die Mitte des Textes kann ja theor. mitten in einem Text liegen" | ||
| |
| | ||
| Moderator Registriert seit: 02.10.2006
Beiträge: 3.820
PHP-Kenntnisse: Fortgeschritten ![]() ![]() | Zitat:
__________________ Today you...Tomorrow me. | |
| |
| | |||
| Erfahrener Benutzer Registriert seit: 25.02.2004
Beiträge: 1.524
![]() | Zitat:
__________________ "die Mitte des Textes kann ja theor. mitten in einem Text liegen" | ||
| |
| | |
| Erfahrener Benutzer Registriert seit: 08.08.2003
Beiträge: 111
![]() | hmm ja stimmt schon aber wenn ich das so mache Code: <?
include_once 'php/funktionen.php';
include_once 'php/dbconnect.inc.php';
# Session gestartet und Funktionsdatei eingebunden
# Prüfen ob ein Cookie gefunden wurde
if(!$_COOKIE["djkoberthal"])
{
# Alle folgenden Aktionen passieren wenn kein Cookie gesetzt wurde
if(isset($_POST["login"]))
{
# mit der Funktion check_user wird getestet ob es zu diesem Passwort und Benutzernamen
# einen User gibt und ob alle Angaben korrekt sind
$usr_id = check_user($_POST["username"], $_POST["userpass"]);
if($usr_id!=false)
{
# alles korrekt: der user wird eingeloggt und ein cookie gesetzt
login($usr_id);
#Das hier ist auch die Zeile 49 wo der fehler sein soll
setcookie("djkoberthal", $usr_id, time() +3600);
counteradd($user_id);
# Hier kommt die Aktion nach erfolgreichem Login hin
include_once 'php/usermenu.inc.php';
}
else
{
# nix korrekt: dem user wird eine fehlermeldung ausgegeben
$fehler = "Fehlerhafter Login";
print_loginform($fehler);
}
}
else
{
$fehler = " ";
print_loginform($fehler);
}
}
else
{
# Alle Aktionen ab hier passieren nur noch wenn ein Cookie gefunden wurde
$usr_id = $_COOKIE["djkoberthal"];
# Das Cookie wird neugesetzt
setcookie("djkoberthal", $usr_id, time() +3600);
counteradd($user_id);
# Das Menue wird eingebunden
include_once 'php/usermenu.inc.php';
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Projekt X</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="163" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="bilder/ui_nav_bg.gif">&nbsp;</td>
<td width="21" background="bilder/ui_bg_left.gif">&nbsp;</td>
<td width="900">[img]bilder/header.jpg[/img]</td>
<td width="21" background="bilder/ui_bg_right.gif">&nbsp;</td>
<td background="bilder/ui_nav_bg.gif">&nbsp;</td>
</tr>
</table>
<table width="942" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="21" background="bilder/ui_bg_left2.gif">&nbsp;</td>
<td width="900" valign="top"><table width="900" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" valign="top" bgcolor="F2F2F2">
</td>
<td width="460" background="bilder/hg_mitte.gif" valign="top">
<center>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="bordermedia">
<tr background="bilder/hg_tabletop.gif">
<td width="46%" height="26" valign="bottom">[img]bilder/heads/media.gif[/img][img]bilder/heads/tb_rest.gif[/img]</td>
<td width="4%" height="26" valign="bottom"><div align="right">[img]bilder/heads/icon_corner.gif[/img]</div></td>
<td width="46%" height="26" valign="bottom">[img]bilder/heads/warstats.gif[/img][img]bilder/heads/tb_rest.gif[/img]</td>
<td width="4%"><div align="right">[img]bilder/heads/icon_corner.gif[/img]</div></td>
</tr>
<tr>
<td colspan="2"><? show_latest_media(); ?></td>
<td colspan="2"><? show_latest_wars(); ?></td>
</tr>
</table>
</center>
|
| |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Cannot modify header information | PHP-Fortgeschrittene | 13 | 24.10.2006 20:01 | |
| Cannot modify header information | nicobischof | PHP Tipps 2006 | 3 | 06.01.2006 15:46 |
| Cannot modify header information...??? | imported_FlasH | PHP Tipps 2007 | 33 | 12.11.2005 11:58 |
| Warning: Cannot modify header information - headers already | LP | PHP Tipps 2005-2 | 2 | 12.09.2005 19:28 |
| Fehler: Warning: Cannot modify header information - headers | PHP Tipps 2005-2 | 14 | 01.09.2005 15:02 | |
| Problem: Cannot modify header information | Alpha Centauri | PHP Tipps 2005 | 11 | 25.04.2005 13:05 |
| update auf php 5.0.4 | robo47 | Server, Hosting und Workstations | 6 | 10.04.2005 19:00 |
| Cannot modify header information - headers already sent | PHP Tipps 2005 | 2 | 15.03.2005 22:10 | |
| Warning: Cannot modify header information ... | PHP Tipps 2005 | 24 | 15.02.2005 11:07 | |
| Cannot modify header information | PHP Tipps 2004-2 | 6 | 05.12.2004 19:37 | |
| admincontrolpanel: Cannot modify header information ? | phpfortgeschrittener | PHP Tipps 2004 | 2 | 23.08.2004 19:17 |
| Warning: Cannot modify header... einbinden nicht möglich? | PHP Tipps 2004 | 2 | 07.08.2004 15:06 | |
| Cannot modify header information - headers already sent by | PHP Tipps 2004 | 2 | 25.07.2004 19:40 | |
| Warning: Cannot modify header information | PHP Tipps 2004 | 8 | 22.07.2004 00:50 | |
| Warning: Cannot modify header information.... | PHP Tipps 2004 | 4 | 18.06.2004 01:38 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| on line 942: cannot modify header information - headers already sent by |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.