1

Bonjour à toutes et à tous

Quand je j'affiche la page
<?php /*Pour tester sans base de donnée */ $data = serialize(file_get_contents('http://127.0.0.1/pdf/data.txt')); /*$conf configuration du site info personnelle siret nom*/ /*$p information sur le projet*/ /*$c information sur le client*/ /*$details détail sur le projet et différentes taches*/ ob_start(); ?> <table> <tr> <td>Salut</td> </tr> </table> <?php $content = ob_get_clean(); require('http://127.0.0.1/pdf/html2pdf_v4.03/html2pdf.class.php'); try{ $pdf = new HTML2PDF('P','A4','fr'); $pdf->writeHTML($content); $pdf->Output('test.pdf'); }catch(HTML2PDF_exeption $e){ die($e); } ?>

j'obitent ce message d'erreur : Class 'HTML2PDF' not found

si quelqu'un à une idée...

merci pour votre aide

2

essaye en mettant le chemin système vers ton fichier html2pdf.class.php et non une URL (commençant par http://http://)
avatar
"If you see strict DRM and copy protection that threatens the preservation of history, fight it: copy the work, keep it safe, and eventually share it so it never disappears. [...] no one living 500 years from now will judge your infringing deeds harshly when they can load up an ancient program and see it for themselves."

Benj Edwards - Why History Needs Software Piracy

- - -
Achat ou échange: topic de mes recherches Meilleur smiley = #helico# Obligatory XKCD

3

ok merci beaucoup sa fonctionne mais pourquoi sa fonctionne avec le chemin systeme et pas l'URL ??

4

c'est le fonctionnement de la fonction require qui le demande.

5

ok mais il va faloir que j'utilise une URL car c'est pour un site internet alors comment faire ???

6

Sa y est sa fonctionne avec ça : require_once(dirname(__FILE__).'/html2pdf_v4.03/html2pdf.class.php');

Merci beaucoup pour ton aide