Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente bannato
    Registrato dal
    Feb 2005
    Messaggi
    171

    [php] - errore che non capisco

    ho creato una pagina index.php che non fa altro che includere una pagina php a scelta.
    codice : <?php include('giornate/28a.php'); ?>

    se chiamo la pagina 28a.php dal file index.php come sopra descritto mi viene visualizzata perfettamente la pagina 28a.php
    se invece la chiamo tramite un semplice link
    (codice : 28a )
    non mi visualizza quasi niente. e mi da sempre lo stesso errore :
    "Warning: Failed opening 'menu-part.html' for inclusion (include_path='.;c:\php4\pear') in d:\siti\fanta\giornate\28a.php on line 27"

    il codice della pagina è il seguente:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Fantafrosties</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" type="text/css" href="../css/stylesheet.css">
    </head>
    <body>
    <div id="container">
    <div id="header">
    <center>
    <?php include('header.html') ?>
    </center>
    </div>
    <div id="navigation">
    <center>
    <?php include('classifiche/classpt.html') ?>
    </center>
    </div>
    <div id="extra">
    <center>
    <?php include('classifiche/classtot.html') ?>
    </center>
    </div>
    <div id="content">
    <center>
    <?php include('menu-part.html') ?></br></br></br></br>
    <FONT face="monotype corsiva" size="6"> 28a giornata di campionato </FONT> </br></br>
    <font face="Arial, Helvetica, sans-serif">
    <TABLE border="1" background="../../immagini/back.jpg">
    <TR>
    <TH>SQUADRE</TH>
    <TH>PUNTEGGI</TH>
    <TH>GOALS</TH>
    </TR>
    <TR>
    <TH>Gipsy Vs Clito</TH>
    <TH>0 - 0</TH>
    <TH>0 - 0</TH>
    </TR>
    <TR>
    <TH>Dama Vs Sandro</TH>
    <TH>0 - 0</TH>
    <TH>0 - 0</TH>
    </TR>
    <TR>
    <TH>Erico Vs Bona</TH>
    <TH>0 - 0</TH>
    <TH>0 - 0</TH>
    </TR>
    <TR>
    <TH>Pozzo Vs Emi</TH>
    <TH>0 - 0</TH>
    <TH>0 - 0</TH>
    </TR>
    <TR>
    <TH>Denis Vs Paolo</TH>
    <TH>0 - 0</TH>
    <TH>0 - 0</TH>
    </TR>
    </TABLE>
    </font>
    </center>
    </div>
    <div id="footer">
    <center>
    <?php include('footer.html') ?>
    </center>
    </div>
    </div>
    </body>
    </html>

    a cosa è dovuto l'errore?

  2. #2
    Sicuramente sbagli nel percorso dei files da includere,
    controlla meglio...<?php include('menu-part.html') ?></br></br></br></br>

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 © 2025 vBulletin Solutions, Inc. All rights reserved.