LZ,你不能直接调用这个函数产生的图片
假如单纯的
noname1.php
<?php
$s= new Hcms();
echo $s->doit();
?>
这样是对的
你应该把一个图片的插入
noname1.php:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="image/bmp; charset=iso-8859-1">
   <title>Untitled</title>
<link rel="stylesheet" type="text/css" href="my.css">
</head>
<body>
<img src='img.php'>
</body>
</html>
img.php:
<?php
require 'hcms.class.php';
$s= new Hcms();
echo $s->doit();
?>