index.php wird falsch angezeigt

Dieses Thema im Forum "Webentwicklung" wurde erstellt von warden, 25. Februar 2008 .

Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 25. Februar 2008
    moin, ich schon wieder...
    die seite wird ganz seltsam wiedergegeben: eine news wird wiederholt ins unendliche geladen und der rest garnicht. die seite hört nicht auf zu laden. hier der link: de.md - de beste bron van informatie over online shopping for dresses.

    vielleicht weiß einer, was da los ist...


    mfg warden
     
  2. 25. Februar 2008
    AW: index.php wird falsch angezeigt

    Das einzige was ich weiß ist das du eine klassische endlosschleife hast, ohne den code und nähere informationen kann dir wohl keiner helfen.
     
  3. 25. Februar 2008
    AW: index.php wird falsch angezeigt

    PHP:
    <?
    include(
    "_mysql.php" );
    include(
    "_settings.php" );
    include(
    "_functions.php" );
    ?>
    <html>
    <head>
    <title><?  echo  "Clan SERS" ?></title>
    <link href="_stylesheet.css" rel="stylesheet" type="text/css">
    <script src="js/bbcode.js" language="jscript" type="text/javascript"></script> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body {
        background-image: url(Bilder/bg.png);
    }
    -->
    </style></head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <!-- ImageReady Slices (clan sers1.psd) -->
    <div style="position:absolute; top:248px; left:586px; width:281px; height: 138px;">
    <?  include( "members.php" );  ?>
    </div>
    <div style="position:absolute; top:435px; left:104px; width:691px; height: 660px;">
    <?
    if(!isset( $site ))  $site = "news" ;
    $invalide  = array( '\\' , '/' , '/\/' , ':' , '.' );
    $site  str_replace ( $invalide , ' ' , $site );
    if(!
    file_exists ( $site . ".php" ))  $site  "news" ;
    include(
    $site . ".php" );
    ?></div>
    <div style="position:absolute; top:247px; left:50px; width:503px; height: 143px;">
    <?  include( "index.php" );  ?>
    </div>
    <table id="Tabelle_01" width="917" height="1129" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="9">
                <img src="Bilder/index_01.jpg" width="916" height="28" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="28" alt=""></td>
        </tr>
        <tr>
            <td rowspan="8">
                <img src="Bilder/index_02.jpg" width="47" height="1100" alt=""></td>
            <td colspan="4" rowspan="2">
                <img src="Bilder/index_03.jpg" width="510" height="129" alt=""></td>
            <td colspan="4">
                <img src="Bilder/index_04.jpg" width="359" height="10" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="10" alt=""></td>
        </tr>
        <tr>
            <td rowspan="5">
                <img src="Bilder/index_05.jpg" width="34" height="397" alt=""></td>
            <td colspan="2" rowspan="2">
                <img src="Bilder/index_06.jpg" width="272" height="136" alt=""></td>
            <td rowspan="7">
                <img src="Bilder/index_07.jpg" width="53" height="1090" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="119" alt=""></td>
        </tr>
        <tr>
            <td colspan="4" rowspan="2">
                <img src="Bilder/index_08.jpg" width="510" height="93" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="17" alt=""></td>
        </tr>
        <tr>
            <td colspan="2">
                <img src="Bilder/index_09.jpg" width="272" height="76" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="76" alt=""></td>
        </tr>
        <tr>
            <td rowspan="4">
                <img src="Bilder/index_10.jpg" width="15" height="878" alt=""></td>
            <td colspan="2">
                <img src="Bilder/index_11.jpg" width="479" height="137" alt=""></td>
            <td rowspan="2">
                <img src="Bilder/index_12.jpg" width="16" height="185" alt=""></td>
            <td colspan="2">
                <img src="Bilder/index_13.jpg" width="272" height="137" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="137" alt=""></td>
        </tr>
        <tr>
            <td colspan="2">
                <img src="Bilder/index_14.jpg" width="479" height="48" alt=""></td>
            <td colspan="2">
                <img src="Bilder/index_15.jpg" width="272" height="48" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="48" alt=""></td>
        </tr>
        <tr>
            <td rowspan="2">
                <img src="Bilder/index_16.jpg" width="31" height="693" alt=""></td>
            <td colspan="4">
                <img src="Bilder/index_17.jpg" width="697" height="660" alt=""></td>
            <td rowspan="2">
                <img src="Bilder/index_18.jpg" width="73" height="693" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="660" alt=""></td>
        </tr>
        <tr>
            <td colspan="4">
                <img src="Bilder/index_19.jpg" width="697" height="33" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="1" height="33" alt=""></td>
        </tr>
        <tr>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="47" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="15" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="31" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="448" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="16" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="34" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="199" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="73" height="1" alt=""></td>
            <td>
                <img src="Bilder/Abstandhalter.gif" width="53" height="1" alt=""></td>
            <td></td>
        </tr>
    </table>
    <!-- End ImageReady Slices -->
    </body>
    </html>
     
  4. 25. Februar 2008
    AW: index.php wird falsch angezeigt

    Mal eine Frage, wieso setzt du dich nicht einfach nochmal dran?

    Stichworte wären, Whitelisting, register_globals, html soup ....
     
  5. 26. Februar 2008
    AW: index.php wird falsch angezeigt

    @Maken, man du bist eine Riesenhilfe für jemanden der wahrscheinlich gerade erst angefangen hat zu programmieren...

    PHP:
    //register_globals: $_GET, $_POST, $_COOKIE, $_SESSION werden automatisch auf Variablen gelegt
    // $_GET['site'] wäre also automatisch auf $site, ist aber in der Regel aus
    // küger wäre:
    // if(!isset($_GET['site'])) $site="news";
    // else $site=$_GET['site'];
    if(!isset( $site ))  $site = "news" ;

    // du machst zwar einen Pfadcheck, allerdings hält das den User nicht davon ab Dateien zu includen, die unter umständen nicht gewollt sind. 
    //mach an dieser Stelle lieber einen Switch: switch($site), so werden auch wirklich nur Seiten aufgerufen, die von uns gewollt sind

    //das ist dann unnötig:
    $invalide  = array( '\\' , '/' , '/\/' , ':' , '.' );
    $site  str_replace ( $invalide , ' ' , $site );
    if(!
    file_exists ( $site . ".php" ))  $site  "news" ;
    include(
    $site . ".php" );

    PHP:
    // folgendes lässt eine Endlosschleife entstehen, wenn index als Seite angegeben wird, da sich index.php dann immerwieder selbst includet
    <?  include( "index.php" );  ?>
     
  6. 26. Februar 2008
    AW: index.php wird falsch angezeigt

    ... wäre es wohl sinnvoller seiten wie das q.net php-tut anzusehen anstatt in foren eine meta-frage nach der anderen zu stellen.

    nix gegen anfänger, jeder hatte mal angefangen, aber wenn ich schon lese "<!-- End ImageReady Slices -->" dann seh ich keinerlei ansatze was zu lernen.

    ~closed~
     
  7. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.