PHP Classes

Error in Image display

Recommend this page to a friend!

      CGraph  >  All threads  >  Error in Image display  >  (Un) Subscribe thread alerts  
Subject:Error in Image display
Summary:The image cannot be displayed, because it contains errors.
Messages:1
Author:Sandip Patil
Date:2008-04-21 11:23:07
 

 


  1. Error in Image display   Reply   Report abuse  
Picture of Sandip Patil Sandip Patil - 2008-04-21 11:23:09
I m using ur CGraph class in my application but i m facing problem here.
I came across one error
The image “http://sagsug/sandip/beserve/admin/graphs/3dbargraph.php” cannot be displayed, because it contains errors.

I used bar graph code like this
<?php
echo require_once("../../_lib/config.ini.php");
echo require_once("../../_lib/db.lib.php");
echo require_once("../../_lib/global.class.php");
echo require_once('../classes/admin.class.php');
echo require_once("../../FCKeditor/fckeditor.php");
?>
<html>
<head>
<title><?=$title?></title>
<link href="<?=VP_ADMIN_CSS?>/stylesheet.css" type="text/css" rel="stylesheet">
<script language="javascript" type="text/javascript" src="<?=VP_ADMIN_JS?>/verticalMenu.js"></script>
<script language="javascript" type="text/javascript" src="<?=VP_ADMIN_JS?>/validation.js"></script>
<script language="javascript" type="text/javascript" src="<?=VP_ADMIN_JS?>/ajaxScript.js"></script>
<script language="javascript" type="text/javascript" src="<?=VP_ADMIN_JS?>/domComponents.js"></script>
</head>
<body>
<!--Header start-->
<? require_once(VP_ADMIN_INCLUDES."/header.html"); ?>
<!--Header end-->
<!--Left column start-->
<? require_once(VP_ADMIN_INCLUDES."/left_column.html"); ?>
<!--Left column end-->
<!--Middle contents start-->
<div id="right">
<div id="content-head">
<div class="ch-head"><?=$strHead?></div>
<div class="ch-description"><?=$strDesc?></div>
</div>
<div id="MessageBox_divMessage"></div>
<?php
include "class.3dbargraph.php";
$graph = new Graph();
$graph->LoadGraph(realpath("3dbargraph.def"));
$graph->DrawGraph();
?>
</div>
<!--Middle contents end-->
</body>
</html>

When i use only code
<?php
include "class.3dbargraph.php";
$graph = new Graph();
$graph->LoadGraph(realpath("3dbargraph.def"));
$graph->DrawGraph();
?>
in file it shows image very well.

Please give me solution of this