Home >Backend Development >PHP Tutorial >php读取图片流输出到页面图片

php读取图片流输出到页面图片

WBOY
WBOYOriginal
2016-06-23 13:27:561357browse

读取图片流代码

<?php @ header("Content-Type:image/png");$imagespath = $_GET['imagespath'];$vms_ini_path=dirname(dirname(dirname(dirname(__FILE__)))).'\vms.ini';//vms.ini文件绝对路径$ini_array = parse_ini_file($vms_ini_path);$imagespath = $ini_array['CAPTURE_PATHNAME'].$imagespath;echo file_get_contents($imagespath);function isExist($path){	if (!is_dir($path)){		return false;	}else{		return true;	}}//声明需要创建的图层的图片格式//@ header("Content-Type:image/png");//echo file_get_contents("C:\VMS_CAPTURE\hulu.png");?>



显示图片

<img alt="JS相册特效" src="<?php%20echo%20" photop_api.php>" onload="scaleImage(this,99,75)" alt=""/>



版权声明:本文为博主原创文章,未经博主允许不得转载。

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
Previous article:多级数组遍历问题Next article:PHP开发笔记