If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Hilfe bei  XML
Forum Index » German Forum
Author Message
stefan1609
Newbie

Joined: 22/03/2002 23:14:28
Messages: 4
Location: Germany
Offline

Hi Leute,
ich bin noch am verzweifeln. Nach dem voten erscheint immer folgender Hinweis im Browser:
Warning: Cannot add header information - headers already sent by
(output started at ...) in ..poll_cookie.php on line ...


In den Faq´s steht ja auch eine Lösung dafür:
After voting I get the following error:
Warning: Cannot add header information - headers already sent by
(output started at ...) in ..poll_cookie.php on line ...

Make sure that the page your poll is embedded in has the
<?php require "poll_cookie.php"; ?>
tag before anything else.


Bis zum heutigen Tage dachte ich eigentlich, das ich der englischen Sprache wohl mächtig bin... aber wo genau im Html-code soll ich denn den tag <?php require "poll_cookie.php"; ?> einfügen? Ich habe schon alles versucht, aber es klappt einfach nicht.

Es wäre schön, wenn mir jemand helfen könnte...dann kann ich auch wieder besser schlafen...

Ach ja, die html-datei ändere ich immer vor dem upload in php um.

Viele Grüße aus Bremen
Stefan
[WWW] [ICQ]
Anonymous



stefan1609 wrote:
Make sure that the page your poll is embedded in has the
<?php require "poll_cookie.php"; ?>
tag before anything else.[/b]


"before anything else" bedeutet...: Gaaaaanz oben, also bevor eine andere HTML-Ausgabe kommt, pack es also ganz oben in die PHP-Datei!
stefan1609
Newbie

Joined: 22/03/2002 23:14:28
Messages: 4
Location: Germany
Offline

Hi,
danke für Deine Hilfe, aber ich bekomme das einfach nicht hin. Nachstehend mal der Quellcode. Vielleicht kann da jemand etwas erkennen, was ich falsch mache (mit diesem Code wird das Poll zwar angezeigt, allerdings auch die Zeile <?php require "poll_cookie.php"; ?>...komisch...
also, hier kommt der quellcode:




<?php require "poll_cookie.php"; ?>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Neue Seite 1</title>
<?php
// Important! You have to include it before your html code
include_once "/homepages/45/d15952879/htdocs/phpkit/poll2/db/poll_cookie.php";
?>
</head>

<body>
<html>
<body>
<?php
include_once "/homepages/45/d15952879/htdocs/phpkit/poll2/db/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>
</body>

</html>


Bin mal gespannt, wo hier der Fehler steckt...

Danke für Eure Hilfe....

Gruß
Stefan
[WWW] [ICQ]
Anonymous



<?php
// Important! You have to include it before your html code
include_once "/homepages/45/d15952879/htdocs/phpkit/poll2/db/poll_cookie.php";
?>

Wieso steht dieser Part mittendrin? You have to include it before your html code ... also davor!

Aber wenn der Code angezeigt wird... kann Dein Webserver wirklich PHP?
stefan1609
Newbie

Joined: 22/03/2002 23:14:28
Messages: 4
Location: Germany
Offline

hier kommt der quellcode...

&lt;?php require ("poll_cookie.php"); ?&gt;
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Neue Seite 2</title>
<?php
include_once "/homepages/45/d15952879/htdocs/phpkit/poll/poll_cookie.php";
?>

</head>

<body>
<?php
include_once "/homepages/45/d15952879/htdocs/phpkit/poll/booth.php";
echo $php_poll->poll_process(4);
?>

</body>

</html>
[WWW] [ICQ]
stefan1609
Newbie

Joined: 22/03/2002 23:14:28
Messages: 4
Location: Germany
Offline

Dank Jochen´s Hilfe und ICQ habe ich es endlich hinbekommen. Für alle, die die gleichen Probs haben, poste ich den Quellcode meines Polls. Ich denke, da könnt Ihr alles ableiten, was Ihr braucht:

Bei "include" müßt Ihr natürlich jeweils Eure eigenen Daten eintragen!!!



<?php
include ("/homepages/45/d15952879/htdocs/phpkit/poll/poll_cookie.php");
?>

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Umfrage EDV-Klinik</title>

</head>

<body bgcolor="#0000B4">
<center>
&nbsp;<p><font face="Arial Narrow" color="#FFFFFF"><b><font size="4">Eure
Meinung ist mir wichtig!!<br>
</font></b>Bitte daher </font><font face="Arial Narrow" color="#FFFF00">nur
ernst gemeinte</font><font face="Arial Narrow" color="#FFFFFF"> Stimmen
abgeben!!<br>
Danke!</font></p>
<p>
<br>
<br>
<?php
include_once "/homepages/45/d15952879/htdocs/phpkit/poll/booth.php";
echo $php_poll->poll_process(5);
?> </p>
</p>
</center>
</body>

</html>


Gruß
Stefan
[WWW] [ICQ]
 
Forum Index » German Forum
Go to:   
Based on the open source JForum