Home >Backend Development >PHP Tutorial > 请教图像怎么显示到浏览器下

请教图像怎么显示到浏览器下

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:59:341058browse

请问图像如何显示到浏览器上?
在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 />

请问如何显示图像到浏览器?
------解决方案--------------------
就这样就行了啊
你有什么困惑?
------解决方案--------------------
那就把这个test.php? 的东西直接在浏览器打开查错啊
------解决方案--------------------
检查是否有 BOM 头,检查php标记之外是否有内容(包括空格、空行)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn