Ciao a tutti!


questa č la mia semplice pagina (solo un test) da cui generare un PDF:

Codice PHP:

<?
require_once( $_SERVER["DOCUMENT_ROOT"] . "/php/pdf/html2fpdf.php" ) ; 
ob_start();
?>
<html>
   <body>
    <table width="100%" border="1" cellspacing="0" cellpadding="0">
          <tr>
            <th scope="col"></th>
            <th scope="col"></th>
            <th scope="col"></th>
            <th scope="col"></th>
            <th scope="col"></th>
          </tr>
  </body>
</html>

<?

//Output buffer in variable
$html ob_get_contents();

//delete output buffer
ob_end_clean();

$pdf=new HTML2FPDF();
$pdf -> AddPage();
$pdf -> WriteHTML($html);
$pdf ->Output ('doc.pdf','I');

?>
in locale, nel server locale di prova con ubuntu, tutto funziona, sul server dove ospito il mio sito niente...
č un configurazione del server? dove sbaglio? grazie...