读取图片流代码
<?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");?>立即学习“PHP免费学习笔记(深入)”;
立即学习“PHP免费学习笔记(深入)”;
显示图片<img alt="JS相册特效" src="<?php echo "photop_api.php?imagespath=".$imagesarray[$i]?>" onload="scaleImage(this,99,75)" alt=""/>
版权声明:本文为博主原创文章,未经博主允许不得转载。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号