<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RudiBela Solutions &#187; mbstring</title>
	<atom:link href="http://www.rudibela.com/tag/mbstring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rudibela.com</link>
	<description>Business Intelligence and Real Estate Solutions</description>
	<lastBuildDate>Sun, 11 Jul 2010 21:44:08 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP EXIF Extension</title>
		<link>http://www.rudibela.com/web-development/php/php-exif-extension/</link>
		<comments>http://www.rudibela.com/web-development/php/php-exif-extension/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 07:33:57 +0000</pubDate>
		<dc:creator>Sasa Bogdanovic</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[EXIF extension]]></category>
		<category><![CDATA[mbstring]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.rudibela.com/?p=61</guid>
		<description><![CDATA[EXIF (Exchangeable image information) data provide digital image metadata. This information is stored in the header of the image in JPEG or TIFF format. It can be very detailed (even thumbnails can be embedded) and is included in the file size of the image. In PHP web applications it is very easy to extract the [...]]]></description>
			<content:encoded><![CDATA[<p>EXIF (Exchangeable image information) data provide digital image metadata. This information is stored in the header of the image in JPEG or TIFF format. It can be very detailed (even thumbnails can be embedded) and is included in the file size of the image. In PHP web applications it is very easy to extract the available information, however, there are some prerequisites that need to be met.<br />
<a title="PHP exif extension" href="http://www.php.net/exif" rel="nofollow">EXIF extension</a> is a standard part of PHP distributions, but it must be enabled in php.ini file in order to use its functions. On windows, EXIF extension also depends on <a title="PHP mbstring extension" href="http://www.php.net/mbstring">mbstring</a>, an extension that provides multi-byte string parsing. Moreover, the sequence of enabling extensions in php.ini file does matter. If exif is enabled prior to mbstring, EXIF functions will not be available at run-time.</p>
<blockquote><p>mbstring extension must be enabled before EXIF!</p></blockquote>
<p>If you need to use EXIF functions in your environment, be it development or production, this is something you need to keep in mind. By default, extensions are ordered in alphabetical order in php.ini file. This makes it very easy to run into situation when you start banging your head against the wall as you don&#8217;t realize why <code>function_exists('exif_read_data')</code> keeps returning <em>FALSE</em> even though you have enabled both EXIF and mbstring extensions. Recently I needed a quick setup of development environment on my laptop and downloaded WAMP server, probably the most popular <a title="WAMP stack" href="http://wampserver.com/">WAMP stack</a> available, and I run into the that situation.<br />
I find it really awkward. Including extensions in alphabetical order does not make any sense when there are dependencies like this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rudibela.com/web-development/php/php-exif-extension/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
