$file="../image.jpg";
$type="image/jpeg";
header('Content-Type:'.$type);
header('Content-Length: ' . filesize($file));
readfile($file);
More Related Contents:
- Echo in an image
- Saving image from PHP URL
- Can I store images in MySQL [duplicate]
- How do I convert a PDF document to a preview image in PHP?
- Full Secure Image Upload Script
- Efficient JPEG Image Resizing in PHP
- I need my PHP page to show my BLOB image from mysql database
- php: recreate and display an image from binary data
- Multiple Image Upload PHP form with one input
- PHP check if file is an image [duplicate]
- Resize animated GIF file without destroying animation
- PHP Data-URI to file
- Check whether image exists on remote URL
- Can I embed a .png image into an HTML page?
- Compare 2 images in php
- php link to image file outside default web directory
- Send email with PHPMailer – embed image in body
- PHP – get base64 img string decode and save as jpg (resulting empty image )
- How to get the browser to cache images, with PHP?
- Resize images in PHP without using third-party libraries?
- Loop code for each file in a directory [duplicate]
- How to display an BLOB image stored in MySql database?
- Scale Image Using PHP and Maintaining Aspect Ratio
- Resize images with PHP
- How to convert all images to JPG format in PHP?
- php resize image on upload
- Crop whitespace from image in PHP
- Cropping image in PHP
- How do you convert an image to black and white in PHP
- Convert HTML to Image in PHP without shell