PHP+Root

Hi,
I use a PHP based web interface which has to generate some plots using data stored in a database. In this application, i generate most of the plots with Gnuplot and this works fine. For a bit more complicated plots, i tried to use Root by doing a system call from the PHP, like:

$UNXCmd = ‘/cern/root/v4.00.02/bin/root -q -n -l -b Plot300kHzRate.cxx\(\"’ . $data . ‘\"\);’;
exec("$UNXCmd");

the problem is that this is a bit slow. So my question is whether there is some way to call Root within PHP and not using my “naive approach”?
Many thanks for your help, nabil.

Hi Nabil,
it’s off-topic, please check
carrot.cern.ch/CarrotExamples/hs … ImageDemo(&what=surfaces

Regards. Valeriy