Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Mi dite l'errore?

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2004
    Messaggi
    60

    Mi dite l'errore?

    Nella seguente pagina:

    http://www.soccerlandia.net/gianfranco/guestbook

    Ho il seguente errore
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/giuamat/public_html/gianfranco/guestbook/index.php:100) in /home/giuamat/public_html/gianfranco/guestbook/index.php on line 116
    Ecco il codice della mia pagina:

    codice:
    <?php
    echo'
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Associazione Gianfranco Troina</title>
    <style type="text/css">
    <!--
    .style2 {
    	color: #0000CC;
    	font-family: "Comic Sans MS";
    }
    -->
    </style>
    </head>
    <STYLE TYPE="text/css">
    <!-- 
    A:link {text-decoration: none; color:#000000}
    A:visited {text-decoration: none; color:#000000; size:12; font: Verdana}
    A:hover {text-decoration: none; color:#FF0000; size:12; font: Verdana}
    -->
    </STYLE>
    <body background="sfondo.gif">
    <center>[img]banner.gif[/img]</center>
    
    
    <div align="center">
    <table width="800" border="0">
      <tr>
        <td>
    	<table width="800" border="0">
      <tr>
        <td valign="top" width="165">
    	<table width="165" border="0">
      <tr>
        <td>
    	<table width="165" border="0">
      <tr>
        <td>
    	<table width="165" border="0">
      <tr>
        <td width="30"></td>
        <td width="135"><font face="Comic Sans MS" size="2" color="#0000CC">MENU</font></td>
      </tr>
    </table>
    
    	</td>
      </tr>
    </table></td>
      </tr>
    </table>
    <table width="165" border="0">
      <tr>
        <td>
    	  <table width="165" border="0">
            <tr>
              <td><div align="left">
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Chi era Gianfranco</font>
    
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Cosa ha lasciato</font>
    
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Obiettivi</font>
    	
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Iniziative & Eventi</font>
    	  
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Galleria</font>
    		  
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Statuto</font>
    		  
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Guestbook</font>
    		  
    		  <font face="Comic Sans MS" size="+2">.</font> <font face="Comic Sans MS" size="2,5" color="#0000CC">Contatti</font>
    
    </div>
    		  </td>
            </tr>
          </table>	
    <table width="155" border="0">
      <tr>
        <td>
    	<table width="155" border="0">
      <tr>
        <td>	<embed width="155" height="50" src="http://www.soccerlandia.net/gianfranco/illbemissingyou.mp3" autostart="true" /></td>
      </tr>
    </table>
    
    	</td>
      </tr>
    </table>
    
    	  </td>
      </tr>
    </table>
    	</td>
    	
    	
    	
        <td valign="top" width="605">
    	<table width="635" border="0">
      <tr>
        <td><div style="width: 635px; 
    height: 400px; 
    overflow: auto; 
    scrollbar-3dlight-color : #ECD3D3; 
    scrollbar-arrow-color : #40120F; 
    scrollbar-base-color : #B65858;">
    <center>
    	
    ';
    //
    // VALORI MODIFICABILI
    //
    
    // MESSAGGI PER PAGINA
    $messaggi_xpag = 20;
    
    // STILE CHE VIENE USATO COME PREDEFINITO
    $stile_base = "base.css";
    
    
    //
    // NON MODIFICARE NULLA SOTTO QUESTA RIGA!!
    //
    
    session_start();
    
    require_once("config.inc.php");
    require_once("function.php");
    
    $output = template("header.tpl");
    $output = template("index.tpl", $output);
    $output = template("footer.tpl", $output);
    
    $completo = "";
    
    $fp = fopen("messaggi.txt", 'r');
    @flock($fp, LOCK_EX);
    $content = fread($fp, filesize("messaggi.txt"));
    
    $messaggi = explode("### Nuovo messaggio ###", $content );
    
    @flock($fp, LOCK_UN);
    fclose($fp);
    
    $messaggi_tot = count($messaggi) - 1;
    $pagine_tot = ceil ( $messaggi_tot / $messaggi_xpag );
    $pagina = get_page($pagine_tot);
    
    if ($pagina==1) { $output = hidepart("CAMPO PAGINA", $output); }
    
    $output = preg_replace("#{PAGINA_CORRENTE}#si", $pagina, $output); 
    
    $start = $messaggi_tot - ( ($pagina - 1) * $messaggi_xpag );
    $end = ($start - $messaggi_xpag < 1) ? 0 : $start - $messaggi_xpag;
    
    $parti = explode("", $output);
    $ciclo = $parti[1];
    for ($x=$start; $x > $end; $x=$x-1)
    {
     $completo .= $ciclo;
     $parti_messaggio = explode("#p#", trim($messaggi[$x]) );
     $completo = preg_replace("#{NICK}#si", view_nick($parti_messaggio[1]), $completo);
     $completo = preg_replace("#{DATA_ORA}#si", date("d/m/Y G:i", $parti_messaggio[2]), $completo);
     $completo = preg_replace("#{TESTO}#si", view_text($parti_messaggio[3]), $completo);
     $completo = preg_replace("#{MEX_ID}#si", $x, $completo);
    }
    $output = ciclo_sub("MESSAGGI", $completo, $output);
    
    $output = preg_replace("#{PAGINAZIONE}#si", create_pagination($pagine_tot, $pagina), $output);
    
    $stile = ( (isset($_GET['stile'])) AND (file_exists("stile/".$_GET['stile'])) ) ? $_GET['stile'] : $stile_base;
    $output = preg_replace("#{FILE_STILE}#si", $stile, $output); 
    
    
    $parti = explode("", $output);
    $ciclo = $parti[1];
    $completo = "";
    foreach (glob("stile/*.css") as $filename)
    {
     $completo .= $ciclo;
     $stile_file = substr($filename, 6);
     $stile_nome = str_replace("_", " ", substr(substr($filename, 6), 0, -4 ) );
     $completo = preg_replace("#{STILE_FILE}#si", $stile_file, $completo);
     $selected = ($stile_file == $stile) ? " selected=\"selected\"" : "";
     $completo = preg_replace("#{STILE_SELECTED}#si", $selected, $completo);
     $completo = preg_replace("#{STILE_NOME}#si", $stile_nome, $completo);
    }
    $output = ciclo_sub("STILI", $completo, $output);
    
    $output = preg_replace("#{QSTRING}#si", qstring_remove("delete"), $output);
    
    if ( (!isset($_SESSION['pugiabook_admin'])) OR ($_SESSION['pugiabook_admin']!=md5($admin_password)) )
    {
     $output = hidepart("admin", $output);
    }
    else
    {
     $output = hidepart("admin_login", $output);
    }
    
    echo $output;
    echo '
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    		</td>
      </tr>
    </table>
    	
    	</center>
    	
    
    	
    	
    	</div>
    	</td>
      </tr>
    </table>
    	</td>
      </tr>
    </table>
    
    
    	</td>
      </tr>
    </table>
    
    	
    	</td>
      </tr>
    </table>
    <table width="780" border="0">
      <tr>
        <td><table height="60" width="780" border="0">
      <tr>
        <td></td>
      </tr>
    </table></td>
      </tr>
    </table>
    </div>
    </body>
    </html>';
    ?>

    Mi potreste dire qual è l'errore?


    Grazie mille a tutti in anticipo

  2. #2

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.