faqts : Computers : Programming : Languages : PHP : General Information : About PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 4 people (50%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

I have a picture in a php3 file, how can I view this picture?Which program must I use? It is a big file.(5,3 mb.).

Oct 8th, 2006 10:13
Matthew Wilkinson, Abdel Slimani,


You need to output the picture. The proper way to do this is to first
output the correct header, then output the picture.
header('Content-Type: image/<image-type>');
echo $picturedata;
<image-type> can be jpeg/gif/png or whatever type the picture
is.$picturedata is the actual picture.