PHP-Problem mit include's

  • Moin Forum! :)


    Also, ich habe folgendes Problem:


    Ich habe eine Seite (index.php) deren Quelltext so aussieht..



    <html>
    <head>
    <? include="title.html"; ?>



    <!-- BEGIN META-TAGS -->


    <? include="metatags.html"; ?>


    <!-- END META-TAGS -->



    <script src="c.js"> </script>
    <script src="rollover.js"> </script>



    <!-- BEGIN STYLESHEETS -->


    <link rel="stylesheet" href="styles.css" type="text/css">


    <!-- END STYLESHEETS -->


    </head>



    <? include="body.html"; ?>



    <!-- BEGIN TOP -->


    <? include="top.html"; ?>



    <!-- END TOP -->



    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>


    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="116">



    <!-- BEGIN NAVIGATION -->


    <? include "nav.html"; ?>



    <!-- END NAVIGATION -->


    </td>


    <td width="501">



    <!-- BEGIN NEWS -->


    <? include="news.html"; ?>


    <!--END NEWS -->



    <td width="312">


    <? include="right.html"; ?>


    </td>
    <td width="58">&amp;nbsp;</td>
    </tr>
    </table>


    </td>
    </tr>
    <tr>
    <td>


    <!-- BEGIN LEGAL NOTICE -->


    <? include="bottom.html"; ?>


    <!-- END LEGAL NOTICE -->


    </td>
    </tr>


    </table>


    </body>
    </html>


    ------------------------------------------------------------


    Soweit okay (?),wenn ich aber alles auf den Server uploade und versuche die
    Datei aufzurufen bekomme ich diesen fehler:




    Parse error: parse error in /home/ (...) /index.php on line 3



    wei&szlig; jemand was ich falsch gemacht habe?


    CIAO Pascal
    --
    <img src="http://buerger.metropolis.de/pepcid/premiere_sig.jpg" border=0>
    &nbsp;

  • Ich habe keine Ahnung von PHP, aber...
    ... vielleicht liegt titel.html mit index.php nicht auf einer Ebene
    ... bei Perl ist das so, wenn man etwas mit HTML schreiben will, muss man davor noch folgende Zeile schreiben: print "Content-type: text/html


    "; die Zeile wird aber im Browser nict angezeigt. Das sagt dem Server nur, dass jetzt HTML-Tags kommen. Vielleicht gibt es so etwas bei PHP auch.
    ... vielleicht liegt es daran, dass du den <BODY>-Tag vergessen hast. Geschlossen hast du ihn, aber geöffnet ?


    P.S.: Scharfe Braut aus dem Premiere World Werbespot.


    <i>Bild in Arbeit</i> &nbsp;

  • include("datei");


    muss es heissen und nicht


    include="datei";


    <b><a href="http://www.lyricszone.de" target="_blank">lyricszone.de</a></b> &nbsp;

    :king: live long and prosper :king:
    [Color="#E50000"]A[/Color][Color="#E52700"]l[/Color][Color="#E54E00"]w[/Color][Color="#E57600"]a[/Color][Color="#E59D00"]y[/Color][Color="#E5C400"]s[/Color][Color="#DEE500"] [/Color][Color="#B7E500"]a[/Color][Color="#90E500"] [/Color][Color="#68E500"]p[/Color][Color="#41E500"]l[/Color][Color="#1AE500"]e[/Color][Color="#00E50D"]a[/Color][Color="#00E534"]s[/Color][Color="#00E55B"]u[/Color][Color="#00E583"]r[/Color][Color="#00E5AA"]e[/Color][Color="#00E5D1"] [/Color][Color="#00D1E5"]t[/Color][Color="#00AAE5"]o[/Color][Color="#0083E5"] [/Color][Color="#005BE5"]m[/Color][Color="#0034E5"]e[/Color][Color="#000DE5"]e[/Color][Color="#1A00E5"]t[/Color][Color="#4100E5"] [/Color][Color="#6800E5"]a[/Color][Color="#9000E5"] [/Color][Color="#B700E5"]j[/Color][Color="#DE00E5"]e[/Color][Color="#E500C4"]d[/Color][Color="#E5009D"]i[/Color][Color="#E50076"].[/Color]

  • Habe die Antwort jetzt schon auf <a href="phpforum.de" target="_blank">phpforum.de</a> bekommen, trotzdem Danke für eure Antworten.
    Jetzt wei&szlig; ich das es nicht <? include="irgendwas.html"; ?>
    hei&szlig;t sondern <? include"irgendwas.html"; ?> (also ohne das =). mit den Klammern geht es bestimmt auch, aber jetzt funktioniert es ja erstmal!
    --
    <img src="http://buerger.metropolis.de/pepcid/premiere_sig.jpg" border=0>
    &nbsp;