请问图像如何显示到浏览器上?
在windows上调试,
逻辑是这样的:
<br /> test.php页面<br /> $pipe_mode="rb";<br /> read_config_option("path_rrdtool") 为rrdtool可执行文件。<br /> $fp = popen(read_config_option("path_rrdtool") . escape_command(" $command_line"), $pipe_mode);<br /> <br /> if (isset($fp) && is_resource($fp)) {<br /> $line = "";<br /> while (!feof($fp)) {<br /> $line =$line . fgets($fp, 4096);<br /> }<br /> <br /> pclose($fp);<br /> <br /> return $line;<br /> }<br /> <br /> print $line;<br /> 然后把 test.php放到 img src中:img src="test.php?......"<br /> <br />