Created
December 19, 2017 20:35
-
-
Save anonymous/0dfd2b173a600d07b8c846fdfc37451b to your computer and use it in GitHub Desktop.
http headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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