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.
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
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");
<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>
<!--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 id="MessageBox_divMessage"></div>
include "class.3dbargraph.php";
$graph = new Graph();
<!--Middle contents end-->

When i use only code
include "class.3dbargraph.php";
$graph = new Graph();
in file it shows image very well.

Please give me solution of this