Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2017 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0dfd2b173a600d07b8c846fdfc37451b to your computer and use it in GitHub Desktop.
Save anonymous/0dfd2b173a600d07b8c846fdfc37451b to your computer and use it in GitHub Desktop.
http headers
header('Content-Type: '.(image_type_to_mime_type($row['immagetype'])));
header('Content-Length: ' . filesize($path));
header("X-Accel-Redirect: /Folder/".$d_classid."/".$row["pathInFileSystem"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment