php讀取圖片流輸出到頁面圖片
讀取圖片流代碼
<?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"); ?> </pre>
顯示圖片<img alt="JS相冊特效" src="<?php echo "photop_api.php?imagespath=".$imagesarray[$i]?>" onload="scaleImage(this,99,75)" alt=""/>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!