Output an Image in PHP -


मेरे पास एक छवि है $ file (जैसे ../ image.jpg )

जिसमें माइम प्रकार $ type

मैं इसे ब्राउज़र में कैसे आउटपुट कर सकता / सकती हूं?

<पूर्व> $ file = '../image.jpg'; $ प्रकार = 'चित्र / जेपीईजी'; हैडर (। 'सामग्री प्रकार:' $ प्रकार); शीर्ष लेख ('सामग्री-लंबाई:'। फ़ाइल आकार ($ फ़ाइल)); readfile ($ फ़ाइल);

Comments

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -