how to load image in php code example Example: php file for image load $image = 'path/to/image.jpg'; header('Content-Type: image/jpeg'); readfile($image);