Wir füge ich ein PHP Script in eine html Seite ein

Hallo,

ich möchte mir gerne ein VotingScript in meine HP einbauen. Ich weiss aber nicht wo ich die Sachen einfügen muss. Im header? body?

Hier mal die Anleitung


  1. To INCLUDE INTO YOUR WEBSITE:

* Add the following line to the VERY top of your webpage:

<?php include ("top.php"); ?>

Where the path to top.php is correct.

* Add the following line to where you want your poll to be on your webpage:

<?php include ("polls.php"); ?>

Where the path to polls.php is correct.

* If you wish to display a specific poll on a page (for example a poll with ID 2)
Then use this code at the VERY top of your webpage:

<?php $_REQUEST['poll'] = 2; include ("top.php"); ?>

Where the path to top.php is correct.

  1. View archive.php for a list of polls (with results) that have been created and have a
    start date which has passed.

Wäre super nett wenn mir einer helfen würde :smile:

gruss sovvi

Da wo es erscheinen soll
Außerdem steht es da doch dabei

* Add the following line to the VERY top of your webpage:

Ganz OBEN hin, hinter die HTML-Startzeile würde ich sagen.

* Add the following line to where you want your poll to be on your webpage:

Na? Schon länger her der Englischkurs?

Gruß

Stefan

Hi Stefan,

Na? Schon länger her der Englischkurs?

ich weiss was dort steht :wink: , nur es ist halt relativ ungenau beschrieben. Der Fehler lag aber daran das ich die Datei nicht in php umbenannt habe. (Hätte nicht gedacht das das dann auch noch funktioniert):

Naja, jetzt funzt alles. Aber danke noch für dein Antwort!

gruss sovvi

Gruß

Stefan