Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php response image

<?php
$name = './img/ok.png';
$fp = fopen($name, 'rb');

header("Content-Type: image/png");
header("Content-Length: " . filesize($name));

fpassthru($fp);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #response #image
ADD COMMENT
Topic
Name
2+3 =