Jump to content
php.lv forumi

www.kkurlis.lv/biles.php?id=123456


leisure

Recommended Posts

drīzāk info par, to, e.g. kur tā fiziski atrodama uz diska un tad ar php izvada bildi, piem:

 

SELECT * FROM tabula WHERE id=$_GET['id']

 

header('Cache-Control: no-cache, no-store, must-revalidate, post-check=0, pre-check=0');

header('Pragma: no-cache');

header('Content-Type: '.$result['image_type']);

header('Content-Disposition: inline; filename="'.$result['file_name'].'"');

echo file_get_contents($image_dir.$result['file_name']);

Link to comment
Share on other sites

×
×
  • Create New...