Wieso entscheint diese Fehlermeldung in PHP

Juljano

Grünschnabel
Die Fehlermeldung :
Fatal error : Class'PHPLOT' not found in....

Der Code:
<?php

require_once 'C:\xampp\htdocs\phplot\phplot1.php'; $data = array(

array('',1800, 5),array('',1810, 7),array('',1820, 10), array('',1830, 13),array('',1840, 17),array('',1850, 23), array('',1860, 31),array('',1870, 39),array('',1880, 50), array('',1890, 63),array('',1900, 76),array('',1910, 92), array('',1920, 106),array('',1930, 123),array('',1940, 132), array('',1950, 151),array('',1960, 179),array('',1970, 203), array('',1980, 227),array('',1990, 249),array('',2000, 281),

);

$plot = new PHPlot(800,600); $plot -> SetImageBorderType('plain'); $plot -> SetPlotType('lines'); $plot -> SetDataType('data-data'); $plot -> SetDataValues($data);

$plot->SetTitle('Juljano'); $plot->SetPlotAreaWorld(Null,0,NULL,NULL); $plot->DrawGraph();

?>
 
Hallo Juljano,
für das nächste mal:
Bitte nutze die BBCode-Tags zum formatieren und besseren lesen des Quellcodes.
Dies kannst du hier im Forum mittel der Tags [ Code=PHP ]//Code[ /Code ].
Dadurch lässt sich der Quellcode für uns besser lesen und es wird dir wahrscheinlich lieber geholfen.

Zu deinen Problem:
der Pfad zum PHPlot scheint nicht korrekt zu sein.
Nutze mal einen relativen Pfad und keinen Absoluten.

So z.B.
PHP:
require_once('pfad/zu/phplot/phplot.php');
 
Zurück