You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
391 B
28 lines
391 B
5 years ago
|
<?php
|
||
|
|
||
|
header('content-type:image/png');
|
||
|
|
||
|
//header('Content-type: text/json');
|
||
|
|
||
|
|
||
|
/************END::receive request ***************//***var::$key***/
|
||
|
|
||
|
|
||
|
$img=rand(1,10);
|
||
|
|
||
|
|
||
|
|
||
|
/*************img display***************/
|
||
|
|
||
|
|
||
|
$filename="img/$img.png";
|
||
|
|
||
|
header( "Content-Length: ".filesize($filename));
|
||
|
|
||
|
ob_clean();
|
||
|
|
||
|
echo file_get_contents($filename);
|
||
|
|
||
|
/*************END::img display***************/
|
||
|
|
||
|
?>
|