<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Runtime Configuration</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="exif.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="exif.resources.html">Resource Types</a></div> <div class="up"><a href="exif.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="exif.configuration" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara"> The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>. </p> <p class="para"> Exif supports automatically conversion for Unicode and JIS character encodings of user comments when module <a href="ref.mbstring.html" class="link">mbstring</a> is available. This is done by first decoding the comment using the specified characterset. The result is then encoded with another characterset which should match your <em>HTTP</em> output. <table class="doctable table"> <caption><strong>Exif configuration options</strong></caption> <thead> <tr> <th>Name</th> <th>Default</th> <th>Changeable</th> <th>Changelog</th> </tr> </thead> <tbody class="tbody"> <tr> <td><a href="exif.configuration.html#ini.exif.encode-unicode" class="link">exif.encode_unicode</a></td> <td>"ISO-8859-15"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.3.0.</td> </tr> <tr> <td><a href="exif.configuration.html#ini.exif.decode-unicode-motorola" class="link">exif.decode_unicode_motorola</a></td> <td>"UCS-2BE"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.3.0.</td> </tr> <tr> <td><a href="exif.configuration.html#ini.exif.decode-unicode-intel" class="link">exif.decode_unicode_intel</a></td> <td>"UCS-2LE"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.3.0.</td> </tr> <tr> <td><a href="exif.configuration.html#ini.exif.encode-jis" class="link">exif.encode_jis</a></td> <td>""</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.3.0.</td> </tr> <tr> <td><a href="exif.configuration.html#ini.exif.decode-jis-motorola" class="link">exif.decode_jis_motorola</a></td> <td>"JIS"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.3.0.</td> </tr> <tr> <td><a href="exif.configuration.html#ini.exif.decode-jis-intel" class="link">exif.decode_jis_intel</a></td> <td>"JIS"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 4.3.0.</td> </tr> </tbody> </table> For further details and definitions of the PHP_INI_* modes, see the <a href="configuration.changes.modes.html" class="xref">Where a configuration setting may be set</a>. </p> <p class="para">Here's a short explanation of the configuration directives.</p> <p class="para"> <dl> <dt id="ini.exif.encode-unicode"> <span class="term"> <em><code class="parameter">exif.encode_unicode</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <p class="para"> <em>exif.encode_unicode</em> defines the characterset UNICODE user comments are handled. This defaults to ISO-8859-15 which should work for most non Asian countries. The setting can be empty or must be an encoding supported by mbstring. If it is empty the current internal encoding of mbstring is used. </p> </dd> </dt> <dt id="ini.exif.decode-unicode-motorola"> <span class="term"> <em><code class="parameter">exif.decode_unicode_motorola</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <p class="para"> <em>exif.decode_unicode_motorola</em> defines the image internal characterset for Unicode encoded user comments if image is in motorola byte order (big-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is UCS-2BE. </p> </dd> </dt> <dt id="ini.exif.decode-unicode-intel"> <span class="term"> <em><code class="parameter">exif.decode_unicode_intel</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <p class="para"> <em>exif.decode_unicode_intel</em> defines the image internal characterset for Unicode encoded user comments if image is in intel byte order (little-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is UCS-2LE. </p> </dd> </dt> <dt id="ini.exif.encode-jis"> <span class="term"> <em><code class="parameter">exif.encode_jis</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <p class="para"> <em>exif.encode_jis</em> defines the characterset JIS user comments are handled. This defaults to an empty value which forces the functions to use the current internal encoding of mbstring. </p> </dd> </dt> <dt id="ini.exif.decode-jis-motorola"> <span class="term"> <em><code class="parameter">exif.decode_jis_motorola</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <p class="para"> <em>exif.decode_jis_motorola</em> defines the image internal characterset for JIS encoded user comments if image is in motorola byte order (big-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is JIS. </p> </dd> </dt> <dt id="ini.exif.decode-jis-intel"> <span class="term"> <em><code class="parameter">exif.decode_jis_intel</code></em> <span class="type"><a href="language.types.string.html" class="type string">string</a></span> </span> <dd> <p class="para"> <em>exif.decode_jis_intel</em> defines the image internal characterset for JIS encoded user comments if image is in intel byte order (little-endian). This setting cannot be empty but you can specify a list of encodings supported by mbstring. The default is JIS. </p> </dd> </dt> </dl> </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="exif.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="exif.resources.html">Resource Types</a></div> <div class="up"><a href="exif.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>