您好,欢迎访问一九零五行业门户网

jpgraph cache有关问题,异常提示25113

jpgraph cache问题,错误提示25113
jpg-config.inc.php配置如下:
define('use_cache',true);
define('read_cache',true);
define('cache_dir','c:/program files/www/oa/ywtj/tmp/jpgraph_cache/');
脚本如下:
include (../examples/jpgraph/jpgraph.php);
include (../examples/jpgraph/jpgraph_bar.php);
$datay=array(1,2,3,4);//纵坐标数据
$datax=array(a,b,c,d);//横坐标数据
foreach ($usernums as $key => $value){
$datay[] = $value;
$datax[] = $userids[$key];
}
$graph = new graph(800,600,'auto',1); //********缓存时间为1分钟************
$graph->setscale(textlin);
$graph->xaxis->setticklabels($datax);
$graph->xaxis->setfont(ff_verdana,fs_normal,10);
$graph->xaxis->setlabelangle(30);
$graph->yaxis->scale->setgrace(20);
$graph->xaxis->scale->setgrace(20);
$graph->setshadow();
$graph->img->setmargin(40,30,20,40);
$bplot = new barplot($datay);
$bplot->setfillcolor('orange');
$bplot->value->show();
$bplot->value->setfont(ff_arial,fs_bold,10);
$bplot->value->setangle(45);
$bplot->value->setformat('%d');
$graph->add($bplot);
$graph->title->set(光缆利用率统计表);
$graph->xaxis->title->set(经营部名称);
$graph->yaxis->title->set(经营部占用情况);
$graph->xaxis->title->setfont(ff_simsun,fs_bold);
$graph->yaxis->title->setfont(ff_simsun,fs_bold);
$graph->title->setfont(ff_simsun,fs_bold);
$graph->stroke();
第一次访问时,cache文件夹内生成一个copy图片,第2次访问时,生成的copy图片字节为0,第3次访问时就出现错误提示
分享到:
------解决方案--------------------
无法删除缓存图像?
文件名都是空的,如何能删除?
这个玩意很不稳定嘛,慎用
其它类似信息

推荐信息