Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 5, 2018 9:26 AM
Views: 17
Tags: browser image
  1. $file = '../image.jpg';
  2. $type = 'image/jpeg';
  3. header('Content-Type:'.$type);
  4. header('Content-Length: ' . filesize($file));
  5. readfile($file);