|
|
Including File Names in Headers - PHP
|
Views : 618
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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. |
|
By deva, On - 2007-09-04 |
|
|
|