You create a PHPlot object by first including the code to be used, and then defining the variable:
<?php require_once 'phplot.php'; // here we include the PHPlot code $plot =& new PHPlot; // here we define the variable //Rest of code goes below
The above code assigns the PHPlot object to the variable
$plot
. Please,
use that '&' to create a reference.
It is needed by phplot's approximation of a destructor,
a facility unavailable in PHP4.