Bonjour à tous,
J'utilise la bibliothèque Image_GraphViz.
J'obtiens des erreurs de ce genre:
J'ai biensûre j'ai changé le error_reporting pour éviter les erreurs E_STRICT mais c'est encore pire quand je le change, j'obtiens un message rouge:Strict Standards: Non-static method System::mktemp() should not be called statically, assuming $this from incompatible context in C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\binaries\php\pear\PEAR-1.9.4\PEAR\Image\GraphViz.php on line 1005
Strict Standards: Non-static method System::_parseArgs() should not be called statically, assuming $this from incompatible context in C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\binaries\php\pear\PEAR-1.9.4\PEAR\System.php on line 393
Voici mon code:This page contains the following errors:
error on line 11 at column 47: EntityRef: expecting ';'
error on line 11 at column 65: Encoding error
Below is a rendering of the page up to the first error.
Pourriez-vous m'aider s'il vous plait à m'éviter ces erreurs ou bien à les masquer, j'ai cherché partout mais sans succès.
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
20
21
22
23
24
25
26
27
28 function dessineGrapheEtoile(){ require_once 'Image/GraphViz.php'; // création de l'objet graphe $graph = new Image_GraphViz(); // ajout des noeuds du graphe $graph->addNode('Node1', array('URL' => 'http://link1', 'label' => 'This is a label', 'shape' => 'box' ) ); $graph->addNode('Node2', array('URL' => 'http://link2', 'fontsize' => '14' ) ); $graph->addNode('Node3', array('URL' => 'http://link3', 'fontsize' => '20' ) ); // ajout des arcs entre les noeuds et spécification de quelques attributs $graph->addEdge(array('Node1' => 'Node2'), array('label' => 'Edge Label')); $graph->addEdge(array('Node1' => 'Node3'), array('color' => 'red')); // création de l'image de sortie représentant le graphe $graph->image(); //pour masquer des erreurs error_reporting(0); }
Ça deviens urgent.
Je vous remercie d'avance!
Partager