AddHandler php5-script. php\addtype text/html. php and AddType application/x-httpd-php. php differences?
Source: Internet
Author: User
<span id="Label3"><pre class="line mt-10 q-content">To allow Apache to support the interpretation of PHP files, there are 2 ways to configure, RPM installed by default configuration Is:<br>AddHandler php5-script. PHP<br>AddType text/html. PHP<br>Many people on the Web are configured by:<br>AddType application/x-httpd-php. PHP<br>I tried both of these can, do not know what the difference?</pre><pre class="best-text mb-10"><br><br><br>1. The role of the AddHandler directive is to establish a mapping between a file extension and a specific processor<br><br>For example: AddHandler php5-script. PHP<br><br>Specifies that files with the Extension. PHP should be processed by the Php5-srcipt Processor.<br><br>2. AddType Instructions<br>Role: establish a mapping between a given file extension and a specific content type<br>syntax: addtype mime-type Extension [extension] ...<br><br>The AddType directive establishes a mapping between a given file name extension and a specific content type. Mime-type indicates the media type of the file that contains the extension Extension.<br><br>AddType is related to the type table, which describes the relationship between extension and file Type.<br>AddHandler describes what kind of extension to use for processing, which describes the relationship between extension and Handler.</pre><p>AddHandler php5-script. php\addtype text/html. php and AddType application/x-httpd-php. php differences?</p></span>
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.