That won't work because, assuming we're talking about the same class (see my prev email), the files need to be put somewhere in your website's directory structure so they can be pulled in by the calling script. I do something similar, without classes, on a website I've written. I'll have a require("./framework/helpers.php"); somewhere at the top that calls in the needed functions. The same would apply to pulling in classes.
Ok, now I get you:) Ultimately I am trying to get the AGC from Zack Bloom working with embedded php code in dokuwiki.
Looking at the example code:
<?php include "graph.oo.php"; $graph = new graph(); $graph->addPoint(1); $graph->addPoint(4); $graph->addPoint(5); $graph->addPoint(2); $graph->addPoint(3); $graph->graph(); $graph->showGraph("test.png"); ?> <img src="test.png">
This doesn't work, all the files are in the root of a test site. The png doesn't seem to be delivered to the browser, logs are empty. What am I missing?
Thanks! jlc