Including File Names in Headers

by deva 2007-09-04 15:00:30

Here are some headers and their purposes in PHP.

header("Content-Type: image/gif") - to display a gif image.
header("Content-Disposition: inline; filename='.$string'") - to save the image using the image name.
header("Content-Disposition: attachment; filename='.$string'") - to save the image as an attachment and to save in the image name.

Tagged in:

1514
like
0
dislike
0
mail
flag

You must LOGIN to add comments