<?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 Business Solutions &#187; EXIF</title>
	<atom:link href="http://www.rudibela.com/tag/exif/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rudibela.com</link>
	<description>Business Intelligence Solutions</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP Configuration &#8211; Extensions</title>
		<link>http://www.rudibela.com/web-development/php/php-configuration-extensions/</link>
		<comments>http://www.rudibela.com/web-development/php/php-configuration-extensions/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 21:31:23 +0000</pubDate>
		<dc:creator>Sasa Bogdanovic</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[EXIF extension]]></category>
		<category><![CDATA[php.ini]]></category>

		<guid isPermaLink="false">http://www.rudibela.com/?p=95</guid>
		<description><![CDATA[PHP extensions are enabled inside configuration file. Use phpinfo function to find which configuration file is loaded when Apache starts and modify it to enable or disable specific extensions. &#8230; <a href="http://www.rudibela.com/web-development/php/php-configuration-extensions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="fullwidth">
When Apache starts, it loads PHP module and its extensions based on configuration in php.ini file. Once started, it is easy to see which extensions were loaded by using PHP&#8217;s <a href="http://php.net/manual/en/function.phpinfo.php">phpinfo()</a> function. Not only it will output detailed information on PHP configuration, it will also note which php.ini file was loaded, which is very useful in case thereare several php.ini files in the file system.<br />
To use the function, simply create new file called e.g. myphpinfo.php in the root directory of web server, with the following content:<br />
<code><br />
&lt;?php<br />
phpinfo();<br />
?&gt;<br />
</code><br />
In the browser, navigate to the newly created file, e.g. http://www.example.com/myphpinfo.php and you will see a large amount of information about the current state of PHP in your web server.<br />
As from PHP 5.2.2, &#8220;Loaded Configuration File&#8221; information was added, and it tells which php.ini file was used on Apache startup. That is the one you need to modify in order to change PHP configuration.<br />
To enable/disable PHP extensions, open php.ini file in your editor of choice and comment/uncomment the ones you need to affect.<br />
After saving the changes, Apache needs to be reloaded for them to come into effect.<br />
On Ubuntu, issue the command</p>
<p><code>sudo /etc/init.d/apache2 reload</code></p>
<p>The same applies if order of extensions needs to be changed, as is the case in <a href="http://www.rudibela.com/web-development/php/php-exif-extension/">enabling PHP EXIF extension</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rudibela.com/web-development/php/php-configuration-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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[Enable EXIF PHP extension to retrieve metadata stored in images. EXIF extension on Windows also requires mbstring extension to be enabled and their sequence in php.ini configuration file matters. &#8230; <a href="http://www.rudibela.com/web-development/php/php-exif-extension/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="fullwidth">
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.</p>
<p><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.</p>
<p>I find it really awkward. Including extensions in alphabetical order does not make any sense when there are dependencies like this.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rudibela.com/web-development/php/php-exif-extension/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

