// Specify a stream that cannot be read by the client and must be downloaded.Response. contenttype = "application/X-msdownload ";
Mime
The MIME type is the type used by an application to open a file with a certain extension. When a file with the
[1] common MIME types (general type): hypertext markup language text. HTML text/htmlxml document. XML text/xmlxhtml document. XHTML application/XHTML + XML plain text. TXT text/plainrtf text. RTF application/rtfpdf document. PDF
This article is still transferred from the old blog of juyou. The MIME type commonly used in the article is also reposted because the old blog is no longer updated and readers need this article.
The MIME type is the type used by an application to
Php accurately obtains the object MIME type
This example describes how php can accurately obtain the object MIME type. Share it with you for your reference. The specific implementation method is as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12
Mime_content_type: the MIME type of the specified object is returned,Usage: The code is as follows:Copy code Echo mime_content_type ('php.gif '). "n ";Echo mime_content_type ('test. Php '); Output:Image/gifText/plainHowever, this function will
Background introduction:MIME: Full name Multipurpose Internet Mail Extensions, multi-function Internet Message expansion service. It is a Multipurpose Internet Mail Expansion protocol that was first applied to the e-mail system in 1992, but was
The test release encountered a small problem, involving the previous no contact issues, recorded.
Background: Features require that video be called from the server, enabling the ability to browse videos in a Web page.
Problem: Your own video is ".
Note: I just wrote an article titled ihttphandler (2): anti-leech! My resources can only be downloaded by my users. The URL is http://blog.csdn.net/zhoufoxcn/archive/2008/01/11/2018.5.aspx. It is estimated that many friends are not familiar with the
Click start → programs → administrative tools → IIS Manager. Expand Local computer, Web site, right-click on your site, select Properties, click the HTTP headers tab → Click the MIME type button, click the New button, and then type in the "extension"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.