IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques et frameworks PHP Discussion :

[phpToPDF] Strict Standards: Declaration of phpToPDF::AddPage() should be compatible with FPDF::AddPage


Sujet :

Bibliothèques et frameworks PHP

  1. #1
    Membre du Club
    Homme Profil pro
    Cobol sur Mainframe et Unix AIX
    Inscrit en
    Mars 2012
    Messages
    196
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Cobol sur Mainframe et Unix AIX

    Informations forums :
    Inscription : Mars 2012
    Messages : 196
    Points : 69
    Points
    69
    Par défaut [phpToPDF] Strict Standards: Declaration of phpToPDF::AddPage() should be compatible with FPDF::AddPage
    Bonjour,

    J'ai installé les 2 fichiers et le dossiers font dans mon répertoire avec mon code.

    J'ai créé la page dont le code est :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    <?php 
    /* 
     * La fonction fpdf.php ne doit être en même temps sur du code HTML.
     */
    $repertoire = explode("/", $_SERVER["PHP_SELF"]);
    $repertoire = $repertoire[0];
    print_r($repertoire);
     
    //require('../../phpToPDF/phpToPDF.php');
    require('phpToPDF.php');
    require_once '../../fonctions/Dates.php';
     
    $PDF=new phpToPDF();
    $PDF->AddPage();
    $PDF->SetFont('Arial','B',16);
    $PDF->Write(10, "Ceci est un texte multilignes \nEt voici la deuxième ligne");
    $PDF->Output();
    ?>

    voici ce que j'ai :

    Strict Standards: Declaration of phpToPDF::AddPage() should be compatible with FPDF::AddPage($orientation = '', $size = '', $rotation = 0) in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\projects\SCF\core\pages\phpToPDF.php on line 44

    Fatal error: Uncaught exception 'Exception' with message 'FPDF error: Could not include font definition file' in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\projects\SCF\core\pages\fpdf.php:271 Stack trace: #0 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\projects\SCF\core\pages\fpdf.php(1145): FPDF->Error('Could not inclu...') #1 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\projects\SCF\core\pages\fpdf.php(459): FPDF->_loadfont('helveticab.php') #2 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\projects\SCF\core\pages\fpdf.php(507): FPDF->AddFont('helvetica', 'B') #3 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\projects\SCF\core\pages\PDF_test.php(15): FPDF->SetFont('Arial', 'B', 16) #4 {main} thrown in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\projects\SCF\core\pages\fpdf.php on line 271
    Est-ce que quelqu'un pourrait m'aider ?

    Merci.

    Eddy

  2. #2
    Modérateur
    Avatar de sabotage
    Homme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    29 208
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2005
    Messages : 29 208
    Points : 44 155
    Points
    44 155
    N'oubliez pas de consulter les FAQ PHP et les cours et tutoriels PHP

  3. #3
    Membre du Club
    Homme Profil pro
    Cobol sur Mainframe et Unix AIX
    Inscrit en
    Mars 2012
    Messages
    196
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Cobol sur Mainframe et Unix AIX

    Informations forums :
    Inscription : Mars 2012
    Messages : 196
    Points : 69
    Points
    69
    Par défaut
    merci, je vais regarder

Discussions similaires

  1. Strict standards erreur.
    Par beegees dans le forum Langage
    Réponses: 1
    Dernier message: 04/05/2015, 13h49
  2. [Joomla!] Strict Standards: Non-static method JLoader::import() should not be called statically in
    Par ouldfella dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 0
    Dernier message: 23/01/2012, 10h04
  3. [PHP 5.3] Strict standards: Creating default object from empty value in
    Par pape0 dans le forum Langage
    Réponses: 8
    Dernier message: 16/05/2011, 22h54
  4. [1.x] Strict Standards: Non-static method
    Par mantex dans le forum Symfony
    Réponses: 6
    Dernier message: 26/11/2010, 19h39
  5. [XSL] Problème : Strict Standards
    Par Mo_Poly dans le forum Bibliothèques et frameworks
    Réponses: 2
    Dernier message: 15/11/2007, 00h33

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo