Include Funktion - Ist jemand so freundlich es zu testen?

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Include Funktion - Ist jemand so freundlich es zu testen?

    da ich selbst keinen server zur verfügung habe kann ich leider nicht selbst testen ob es funktioniert was ich mir da zusammen gereimt habe...
    da es ein schulprojekt ist (wird später mal ne schulhomepage) müsste ich aber bevor ich es meinem lehrer gebe wissen ob es so überhaupt funktionieren wird...
    unser schulserver läuft mit windows und unterstützt php (ka ob das wichtig is)
    da ich mich sehr sehr wenig mit php auskenne hoffe ich dass ich nich zu viel falsch gemacht habe...

    wäre jemand von euch bereit sich das folgende mal eben kurz anzuschaun und zu testen ob das mit der include funktion so funktioniert und das menu wirklich in die seite eingefügt wird?

    wäre euch wirklich dankbar!!!

    mfg ReeN


    index.htm:
    PHP-Code:
    <html>
    <head>
    <meta name="author" content="">
    <title> Gymnasium Bramfeld </title>

    <style>
       a.menu       { display:block;
                 background-image:url(menu.gif);
                 width:180px; height:20px }
       a:hover.menu { background-image:url(menu_hell.gif); }
    </style>

    <style><!--A{text-decoration:none}--></style>

    <style type="text/css">
    A:Hover
    {
            color: #FFDE00;
    }
    </style>

    <style type="text/css">
    #box2 { position:absolute; top:0px; }
    </style>

    </head>
    <body  text="#0000BF" bgcolor="#D1D2D5" link="#0000BF" alink="#0000BF" vlink="#0000BF">

    <div align="center">
    <table cellspacing="0" cellpadding="0" bgcolor="#D1D2D5" border="0" bordercolor="#FF0000" height="100%" width="100%">
    <tr>
     <td colspan="1" background="linien_top.gif">
        <div align="left">
         <img src="gymbram_logo.gif" alt="" border="0">
        </div>
     </td>
     <td colspan="2" background="linien_top.gif">
        <font size="+3">
         <b>
          <div align="center">
           <font face="Verdana">
               Gymnasium Bramfeld
           </font>
          </div>
         </b>
        </font>
     </td>
    </tr>
    <tr>
     <td height="0" width="16%" bgcolor="#D1D2D5">   </td>
     <td width="74%" colspan="2" rowspan="50" bgcolor="#FFFFFF" valign="top">

    <br>
      <div align="center">
        <img src="start.jpg" width="300" height="290">
      </div>
    <br>

      <div align="center">
       <font size="+2">
        <b>
             Willkommen auf der Homepage des Gymnasium Bramfeld.
        </b>
       </font>
      </div>

    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>


     </td>
    </tr>
    <tr>
     <td background="menu.gif">

    <?php

    error_reporting
    (E_ALL);
    include 
    "config.php";

    ?>

     </td>
    </tr>
    </table>
    </div>


    </body>
    </html>
    ________________________________________________________________________________________________

    config.php:
    PHP-Code:
    <table cellspacing="0" cellpadding="0">
    <
    tr>
     <
    td heigth="20" width="">  </td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" background="menu.gif">
      &
    nbsp;&nbsp;
       <
    font size="-2">
        <
    font face="Arial">
         <
    font color="">
          <
    b>

            
    &nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbspU

         
    </b>
        </
    font>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="">

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="index.htm"> &nbsp;&nbsp;&nbsp;     Home  </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="news.htm"> &nbsp;&nbsp;&nbsp;     News   </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="members.htm">  &nbsp;&nbsp;&nbsp;     Members   </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="squads.htm"> &nbsp;&nbsp;&nbsp;     Squads   </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="">

       <
    font size="-1">
        <
    font face="Arial">
         <
    font color="#0013C7">
          <
    b>

            <
    class="menu" href="clanwars.htm"> &nbsp;&nbsp;&nbsp;     Clanwars   </a>

         </
    b>
        </
    font>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="">

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="http://reen87.re.funpic.de/?path=forumsdisplay" target="NEW"> &nbsp;&nbsp;&nbsp;     Forum   </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="">

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="http://reen87.re.funpic.de/include.php?path=guestbook/viewgb.php"> &nbsp;&nbsp;&nbsp;     Gästebuch   </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="">

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="joinus.htm"> &nbsp;&nbsp;&nbsp;     Joinus   </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

          <
    class="menu" href="fightus.htm"> &nbsp;&nbsp;&nbsp;  Fightus   </a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>

    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

           <
    class="menu" href="Kontakt.htm"> &nbsp;&nbsp;&nbsp;  Kontakt</a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

           <
    class="menu" href="regeln.htm"> &nbsp;&nbsp;&nbsp;  Clan Regeln</a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

           <
    class="menu" href="impressum.htm"> &nbsp;&nbsp;&nbsp;  Impressum</a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td heigth="20" width="" >

       <
    font size="-1">
        <
    font face="Arial">
         <
    b>

           <
    class="menu" href="sponsoren.htm"> &nbsp;&nbsp;&nbsp;  Sponsoren</a>

        </
    b>
       </
    font>
      </
    font>
     </
    td>
    </
    tr>
    <
    tr>
     <
    td bgcolor="#A4A4A4">  </td>
    </
    tr>
    <
    tr>
     <
    td height="0" width="" background="menu.gif">  </td>
    </
    tr>
    </
    table
    Zuletzt geändert von Trekkie87; 28.02.2006, 15:52.

  • #2
    Und warum testest du das nicht selber ??

    Gruss

    tobi
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Kommentar


    • #3
      sry hatte eben nen kleinen fehler
      der oberste teil des threads wurde nich gespeichert sry

      habs jetzt editiert.
      kann es nich selber testen da ich keinen eigenen server habe. steht jetzt da oben

      Kommentar


      • #4
        Original geschrieben von Trekkie87
        kann es nich selber testen da ich keinen eigenen server habe. steht jetzt da oben
        Wenn Du eh keinen Server hast ... wofür brauchst Du's dann ...
        carpe noctem

        [color=blue]Bitte keine Fragen per EMail ... im Forum haben alle was davon ... und ich beantworte EMail-Fragen von Foren-Mitgliedern in der Regel eh nicht![/color]
        [color=red]Hinweis: Ich bin weder Mitglied noch Angestellter von ebiz-consult! Alles was ich hier von mir gebe tue ich in eigener Verantwortung![/color]

        Kommentar


        • #5
          aber du hast nen Rechner -> get XAMPP
          Ihr habt ein Torturial durchgearbeitet, das auf den mysql_-Funktionen aufbaut?
          Schön - etwas Geschichte kann ja nicht schaden.
          Aber jetzt seht euch bitte php.net/pdo oder php.net/mysqli bevor ihr beginnt!

          Kommentar


          • #6
            steht auch da oben in meinem ersten beitrag
            es is ein schulprojekt

            soll später auf dem schulserver laufen

            Kommentar


            • #7
              Also was für ein Entwickler bist du denn ohne Server So ein Apache mit PHP ist wirklich schnell eingerichtet.
              Ich sehe aber beim Überfliegen deines Codes, dass du im include()-Teil gar kein PHP Code hast (pures HTML) --> kopier den Inhalt des include() Files an die Position deiner index, wo du es haben willst (wo auch der include() steht)
              Dann ruf die Seite (index) mit einem x-beliebigen Browser auf und sieh ob der Code korrekt dargestellt wird.

              Gruss

              tobi
              Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

              [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
              Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

              Kommentar


              • #8
                ja dann wird es richtig angezeigt.
                aber mich interessiert jetzt ob die include funktion das menu jetzt auch dahin einfügt oder ob ich es falsch verwendet habe, keine ganze tabelle mit include eingefügt werden kann etc.


                das mit xampp werd ich mir ma anschaun

                Kommentar


                • #9
                  Du kannst alles einbinden, was du willst...

                  Kommentar

                  Lädt...
                  X