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

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

WBOY
Release: 2016-06-23 13:27:56
Original
1364 people have browsed it

读取图片流代码

<?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");?>
Copy after login



显示图片

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



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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template