<?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>iTechLog &#187; Web Programming</title>
	<atom:link href="http://itechlog.com/category/web-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://itechlog.com</link>
	<description>Your source to IT solutions, interesting technology news and code snipets.</description>
	<lastBuildDate>Tue, 10 Jan 2012 17:06:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>It is not safe to rely on the system’s timezone settings</title>
		<link>http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/</link>
		<comments>http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 14:33:09 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[DATE]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[time setting]]></category>

		<guid isPermaLink="false">http://itechlog.com/?p=976</guid>
		<description><![CDATA[<a href="http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/" title="It is not safe to rely on the system’s timezone settings"></a>Recently I have been having the following error on my PHP code every time I call the PHP function date();  Mostly when running it on my local test server. Warning: date(): It is not safe to rely on the system&#8217;s &#8230;<p class="read-more"><a href="http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/" title="It is not safe to rely on the system’s timezone settings"></a><p><img style="float: left; padding-right: 10px;" src="http://itechlog.com/wp-content/uploads/2011/01/php_logo.png" alt="" width="150" height="80" align="left" />Recently I have been having the following error on my PHP code every time I call the PHP function date();  Mostly when running it on my local test server.</p>
<p><strong>Warning: date(): It is not safe to rely on the system&#8217;s timezone settings</strong></p>
<p><strong>Cause:</strong> Since PHP5.1.0 the E_RESTRICT setting causes PHP to report error for every call<br />
 to a date/time function, if no default time is set.<br />
 <strong><br />
 Fix: </strong>There are 2 approaches to  resolving this.</p>
<ol>
<li><strong>Set time setting to your PHP script</strong> with the function <a href="http://php.net/manual/en/function.date-default-timezone-set.php" target="_blank">date_default_timezone_set</a>();  with the intended time zone/location eg: for GMT one can use date_default_timezone_set(&#8216;Europe/London&#8217;); </li>
<li><strong>Set time setting to your php.ini </strong>file by editing the line <a href="http://php.net/manual/en/function.date-default-timezone-set.php" target="_blank"><strong><em>;date.timezone =</em></strong> to <strong><em>date.timezone = &#8220;Europe/London&#8221;</em></strong> </a> or you required location. This is good for setting a server wide time setting. </li>
</ol>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/DATE' rel='tag' target='_self'>DATE</a>, <a class='technorati-link' href='http://technorati.com/tag/error' rel='tag' target='_self'>error</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a>, <a class='technorati-link' href='http://technorati.com/tag/php.ini' rel='tag' target='_self'>php.ini</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP5' rel='tag' target='_self'>PHP5</a>, <a class='technorati-link' href='http://technorati.com/tag/time+setting' rel='tag' target='_self'>time setting</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>October 7, 2011 -- <a href="http://itechlog.com/easy-tips/2011/10/07/spotify-crashes-in-linux-under-wine/" title="Spotify crashes in Linux under Wine">Spotify crashes in Linux under Wine</a></li><li>August 10, 2011 -- <a href="http://itechlog.com/code-snipets/2011/08/10/cardsave-error-transaction-datetime-expired/" title="Cardsave error &#8220;transaction date/time expired&#8221;">Cardsave error &#8220;transaction date/time expired&#8221;</a></li><li>August 26, 2009 -- <a href="http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/" title="Wordpress Media upload HTTP Error">Wordpress Media upload HTTP Error</a></li><li>May 13, 2009 -- <a href="http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/" title="Automatically display form data with PHP">Automatically display form data with PHP</a></li><li>April 14, 2009 -- <a href="http://itechlog.com/web-programming/2009/04/14/pdf-to-email-with-registration/" title="PDF to Email with registration">PDF to Email with registration</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Add-on Collector</title>
		<link>http://itechlog.com/itechlog-news/2009/07/21/firefox-add-on-collector/</link>
		<comments>http://itechlog.com/itechlog-news/2009/07/21/firefox-add-on-collector/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:40:34 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Itechlog News]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[Firefox colletctor]]></category>
		<category><![CDATA[fireftp]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[twitterfox]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://itechlog.com/itechlog-news/2009/07/21/firefox-add-on-collector/</guid>
		<description><![CDATA[<a href="http://itechlog.com/itechlog-news/2009/07/21/firefox-add-on-collector/" title="Firefox Add-on Collector"></a>Now you can have a list of your favourite Firefox Add-ons to share. I have always tried to keep a list in my bookmarks of the Add-ons I find most useful and normally recommend to people, now life has become &#8230;<p class="read-more"><a href="http://itechlog.com/itechlog-news/2009/07/21/firefox-add-on-collector/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/itechlog-news/2009/07/21/firefox-add-on-collector/" title="Firefox Add-on Collector"></a><p><img style="float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://itechlog.com/wp-content/uploads/2009/07/collections.png" height="185" width="150" />Now you can have a list of your favourite Firefox Add-ons to share. I have always tried to keep a list in my bookmarks of the Add-ons I find most useful and normally recommend to people, now life has become much easier. </p>
<p>Discover more of the best add-ons and organize your favourites in easy-to-manage collections. Subscribe to see how the collections you admire grow, and fans follow when you manage and update your own collections with <a target="_blank" href="https://addons.mozilla.org/en-US/firefox/pages/collector">Mozilla Firefox Add-on Collector</a>.</p>
<p>You can have a look at my small collection at <a target="_blank" href="https://addons.mozilla.org/en-US/firefox/collection/itechlog">https://addons.mozilla.org/en-US/firefox/collection/itechlog</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=35f7d433-61ed-89f5-8caf-40c650c35328" /></div>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/add-on' rel='tag' target='_self'>add-on</a>, <a class='technorati-link' href='http://technorati.com/tag/browser' rel='tag' target='_self'>browser</a>, <a class='technorati-link' href='http://technorati.com/tag/Firefox+colletctor' rel='tag' target='_self'>Firefox colletctor</a>, <a class='technorati-link' href='http://technorati.com/tag/fireftp' rel='tag' target='_self'>fireftp</a>, <a class='technorati-link' href='http://technorati.com/tag/Mozilla' rel='tag' target='_self'>Mozilla</a>, <a class='technorati-link' href='http://technorati.com/tag/twitterfox' rel='tag' target='_self'>twitterfox</a>, <a class='technorati-link' href='http://technorati.com/tag/web+developer' rel='tag' target='_self'>web developer</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>May 21, 2009 -- <a href="http://itechlog.com/open-source/2009/05/21/mozilla-fennec-the-firefox-gone-mobile/" title="Mozilla FENNEC &#8211; the Firefox gone mobile">Mozilla FENNEC &#8211; the Firefox gone mobile</a></li><li>August 1, 2011 -- <a href="http://itechlog.com/itechlog-news/2011/08/01/chrome-overtakes-firefox-uk-number-two-browser-spot-in-july/" title="Chrome Overtakes Firefox for UK Number Two Browser Spot in July">Chrome Overtakes Firefox for UK Number Two Browser Spot in July</a></li><li>January 20, 2011 -- <a href="http://itechlog.com/web-design/2011/01/20/push-up-the-web/" title="Push up the Web">Push up the Web</a></li><li>August 12, 2010 -- <a href="http://itechlog.com/linux/2010/08/12/linuxcon-2010-just-for-fun-poll-results-explained/" title="LinuxCon 2010 Just for Fun Poll Results explained">LinuxCon 2010 Just for Fun Poll Results explained</a></li><li>December 8, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/12/08/google-chrome-beta-for-linux/" title="Google Chrome Beta for Linux">Google Chrome Beta for Linux</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/itechlog-news/2009/07/21/firefox-add-on-collector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1</title>
		<link>http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/</link>
		<comments>http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 12:19:14 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Easy Tips]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[1062 - Duplicate entry '2147483647' for key 1]]></category>
		<category><![CDATA[CRE Loaded]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHPMySQL]]></category>

		<guid isPermaLink="false">http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/</guid>
		<description><![CDATA[<a href="http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/" title="Error 1062 - Duplicate entry &#039;2147483647&#039; for key 1"></a>CRE Loaded was giving me the error&#160; 1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1 &#8211; when trying to add a new product. Cause: for some unexplained reason the auto_increment ID field on Table &#8220;products&#8221; has gone up to 2147483647 &#8230;<p class="read-more"><a href="http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/" title="Error 1062 - Duplicate entry &#039;2147483647&#039; for key 1"></a><p><a target="_blank" href="http://www.creloaded.com/"><b>CRE Loaded</b></a> was giving me the error&nbsp; <b>1062 &#8211; Duplicate entry &#8217;2147483647&#8242; for key 1</b> &#8211; when trying to add a new product.</p>
<p><b>Cause</b>: for some unexplained reason the auto_increment ID field on Table &#8220;products&#8221; has gone up to 2147483647 which is apparently the maximum number of rows permitted in an INT column.</p>
<p>Fix:
<ol>
<li>Go to your <a target="_blank" href="http://www.phpmyadmin.net/home_page/index.php"><b>phpMyadmin</b></a> interface</li>
<li>Backup your database (make sure you know how to restore it if needed)</li>
<li>Browse the products table (select to sort the fields by Descending order)</li>
<li>The top item should now have the ID = 2147483647</li>
<li>Change the ID to a number up from the previous item (e.g.: Previous was ID = 301, than change the ID = 2147483647 to 302)</li>
<li>Repeat same process with table &#8220;product_to_categories&#8221;</li>
<li>Return to table &#8220;products&#8221;</li>
<li>Select the SQL tab</li>
<li>run the following SQL Query :&nbsp; <b>ALTER TABLE products AUTO_INCREMENT=</b>303&nbsp;&nbsp; (note that 303 is the next number up from the example on step 5, you should use the next number up in your situation)</li>
</ol>
<p>It worked perfectly for me, hope this helps.</p>
<p></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/1062+-+Duplicate+entry+%272147483647%27+for+key+1' rel='tag' target='_self'>1062 - Duplicate entry '2147483647' for key 1</a>, <a class='technorati-link' href='http://technorati.com/tag/CRE+Loaded' rel='tag' target='_self'>CRE Loaded</a>, <a class='technorati-link' href='http://technorati.com/tag/Database' rel='tag' target='_self'>Database</a>, <a class='technorati-link' href='http://technorati.com/tag/MySQL' rel='tag' target='_self'>MySQL</a>, <a class='technorati-link' href='http://technorati.com/tag/PHPMySQL' rel='tag' target='_self'>PHPMySQL</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>August 12, 2010 -- <a href="http://itechlog.com/linux/2010/08/12/linuxcon-2010-just-for-fun-poll-results-explained/" title="LinuxCon 2010 Just for Fun Poll Results explained">LinuxCon 2010 Just for Fun Poll Results explained</a></li><li>April 21, 2009 -- <a href="http://itechlog.com/open-source/2009/04/21/oracle-to-own-mysql/" title="Oracle to own MySQL">Oracle to own MySQL</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/easy-tips/2009/07/10/error-1062-duplicate-entry-2147483647-for-key-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Keyword search and website ranking tools</title>
		<link>http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/</link>
		<comments>http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:43:30 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Itechlog News]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Bing]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Keyword lookup]]></category>
		<category><![CDATA[KPMRS]]></category>
		<category><![CDATA[ROI]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Site Explorer]]></category>
		<category><![CDATA[Sitemaps]]></category>
		<category><![CDATA[Visitor tracking]]></category>
		<category><![CDATA[webmaster tools]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/</guid>
		<description><![CDATA[<a href="http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/" title="Keyword search and website ranking tools"></a>Any webmaster and marketer will know how important it is to keep track of their website ranking, keyword positioning, visits, ROI and so on&#8230;&#160; There are a lot of interesting tools out there to help us.&#160; Google Analytics &#8211; Visitor &#8230;<p class="read-more"><a href="http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/" title="Keyword search and website ranking tools"></a><p><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://itechlog.com/wp-content/uploads/2009/06/seo.jpg" height="162" width="187" />Any webmaster and marketer will know how important it is to keep track of their website ranking, keyword positioning, visits, ROI and so on&#8230;&nbsp; There are a lot of interesting tools out there to help us.&nbsp; </p>
<ul>
<li><a target="_blank" href="http://www.google.com/analytics/">Google Analytics</a> &#8211; Visitor tracking, keyword positioning, goal setting, demographics and more&#8230;</li>
<li><a target="_blank" href="http://www.alexa.com">http://www.alexa.com</a> &#8211; web traffic metrics, top sites lists, site demographics, hot urls, and more&#8230;&nbsp; </li>
<li><a target="_blank" href="www.google.com/webmasters/tools/">Google Webmaster Tools</a> &#8211;  detailed reports about your pages&#8217; visibility on Google</li>
<li><a target="_blank" href="http://siteexplorer.search.yahoo.com/">Yahoo Site Explorer</a> &#8211;  detailed reports about your pages&#8217; visibility on Yahoo</li>
<li><a target="_blank" href="http://www.bing.com/webmaster">Bling Webmaster Center</a> &#8211;  detailed reports about your pages&#8217; visibility on Bling (former LiveSearch)</li>
<li><a target="_blank" href="http://www.keywordspy.com/">Keyword Spy</a> &#8211; Research and track keywords <span style="width: 115px;" class="style26">in 3 search engines and 30+ countries.</span></li>
<li><span style="width: 115px;" class="style26"><a target="_blank" href="http://kpmrs.com/index.php">KPMRS</a> &#8211; </span>website rank monitoring services on various search engines<br />
for multiple keywords. </li>
<li><a target="_blank" href="http://www.xml-sitemaps.com/">XML-Sitemaps</a> &#8211; Generate sitemaps online. Up to 500 urls Free.</li>
<li><a target="_blank" href="http://wordpress.org/extend/plugins/google-sitemap-generator/">WP Google XML Sitemaps</a> &#8211; This plugin will create a Google sitemaps compliant XML-Sitemap of your WordPress blog.</li>
</ul>
<p>These are just a few tools I use the most, please share yours.</p>
<p></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Analytics' rel='tag' target='_self'>Analytics</a>, <a class='technorati-link' href='http://technorati.com/tag/Bing' rel='tag' target='_self'>Bing</a>, <a class='technorati-link' href='http://technorati.com/tag/Google' rel='tag' target='_self'>Google</a>, <a class='technorati-link' href='http://technorati.com/tag/Keyword+lookup' rel='tag' target='_self'>Keyword lookup</a>, <a class='technorati-link' href='http://technorati.com/tag/KPMRS' rel='tag' target='_self'>KPMRS</a>, <a class='technorati-link' href='http://technorati.com/tag/ROI' rel='tag' target='_self'>ROI</a>, <a class='technorati-link' href='http://technorati.com/tag/Search' rel='tag' target='_self'>Search</a>, <a class='technorati-link' href='http://technorati.com/tag/SEO' rel='tag' target='_self'>SEO</a>, <a class='technorati-link' href='http://technorati.com/tag/Site+Explorer' rel='tag' target='_self'>Site Explorer</a>, <a class='technorati-link' href='http://technorati.com/tag/Sitemaps' rel='tag' target='_self'>Sitemaps</a>, <a class='technorati-link' href='http://technorati.com/tag/Visitor+tracking' rel='tag' target='_self'>Visitor tracking</a>, <a class='technorati-link' href='http://technorati.com/tag/webmaster+tools' rel='tag' target='_self'>webmaster tools</a>, <a class='technorati-link' href='http://technorati.com/tag/Wordpress' rel='tag' target='_self'>WordPress</a>, <a class='technorati-link' href='http://technorati.com/tag/Yahoo' rel='tag' target='_self'>Yahoo</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>December 13, 2008 -- <a href="http://itechlog.com/wordpress/2008/12/13/seo-and-wordpress/" title="SEO and Wordpress">SEO and Wordpress</a></li><li>April 1, 2011 -- <a href="http://itechlog.com/itechfeed/2011/04/01/facebook-acquires-bing/" title="Facebook acquires Bing">Facebook acquires Bing</a></li><li>January 10, 2012 -- <a href="http://itechlog.com/social-networking/2012/01/10/google-search-goes-social/" title="Google search goes social">Google search goes social</a></li><li>December 11, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/12/11/microsofts-attempt-to-bribe-its-way-to-the-top/" title="Microsoft&#8217;s attempt to bribe its way to the top">Microsoft&#8217;s attempt to bribe its way to the top</a></li><li>December 4, 2008 -- <a href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/" title="Search Engine Optimization  SEO in PHP (Book)">Search Engine Optimization  SEO in PHP (Book)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically display form data with PHP</title>
		<link>http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/</link>
		<comments>http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/#comments</comments>
		<pubDate>Wed, 13 May 2009 12:23:44 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[$_POST]]></category>
		<category><![CDATA[foreach()]]></category>
		<category><![CDATA[html form]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://itechlog.com/?p=723</guid>
		<description><![CDATA[<a href="http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/" title="Automatically display form data with PHP"></a>This is a simple PHP  script to automatically display (dump output)  data submited from a html form. The form setup all inputs (form fields) need to have the same name with [] at the end to turn it into an &#8230;<p class="read-more"><a href="http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/" title="Automatically display form data with PHP"></a><p>This is a simple PHP  script to automatically display (<strong>dump output</strong>)  data submited from a html form.</p>
<p><strong>The form setup</strong></p>
<ul>
<li>all inputs (form fields) need to have the same name with [] at the end to turn it into an array,  e.g &lt;input type=text name=formdata[]&gt;</li>
</ul>
<p style="padding-left: 30px;">formq.html content</p>
<p style="padding-left: 30px;"><span style="color: #3366ff;">&lt;form method=post action=showme.php&gt;<br />
Name: &lt;input type=text name=formdata[]&gt;&lt;br&gt;<br />
Email: &lt;input type=text name=formdata[]&gt;&lt;br&gt;<br />
</span></p>
<p style="padding-left: 30px;"><span style="color: #3366ff;">&lt;input type=submit value=ok&gt;<br />
&lt;/form&gt;</span>
</p>
<p style="padding-left: 30px;">
<p><strong>The Script setup</strong></p>
<p style="padding-left: 30px;">showme.php content</p>
<p style="padding-left: 30px;"><span style="color: #3366ff;">&lt;?php<br />
$data = $_POST['formdata']; # get value from the form fields</span>
</p>
<p style="padding-left: 30px;"><span style="color: #3366ff;">foreach ( $data as $key =&gt; $value ) { # loop through array collecting the results</span></p>
<p style="padding-left: 30px;"><span style="color: #3366ff;">echo  &#8220;$value&lt;br&gt;&#8221;;  # output the data  &#8211; print to page<br />
}<br />
?&gt;</span></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/%24_POST' rel='tag' target='_self'>$_POST</a>, <a class='technorati-link' href='http://technorati.com/tag/foreach%28%29' rel='tag' target='_self'>foreach()</a>, <a class='technorati-link' href='http://technorati.com/tag/html+form' rel='tag' target='_self'>html form</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a>, <a class='technorati-link' href='http://technorati.com/tag/Programming' rel='tag' target='_self'>Programming</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>December 4, 2008 -- <a href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/" title="Search Engine Optimization  SEO in PHP (Book)">Search Engine Optimization  SEO in PHP (Book)</a></li><li>November 7, 2011 -- <a href="http://itechlog.com/programming/2011/11/07/arduino-the-open-source-hardware/" title="Arduino the Open Source hardware">Arduino the Open Source hardware</a></li><li>August 10, 2011 -- <a href="http://itechlog.com/code-snipets/2011/08/10/cardsave-error-transaction-datetime-expired/" title="Cardsave error &#8220;transaction date/time expired&#8221;">Cardsave error &#8220;transaction date/time expired&#8221;</a></li><li>January 31, 2011 -- <a href="http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/" title="It is not safe to rely on the system’s timezone settings">It is not safe to rely on the system’s timezone settings</a></li><li>July 8, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/07/08/android-to-iphone-apps-with-xml/" title="Android to iPhone Apps with XML">Android to iPhone Apps with XML</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF to Email with registration</title>
		<link>http://itechlog.com/web-programming/2009/04/14/pdf-to-email-with-registration/</link>
		<comments>http://itechlog.com/web-programming/2009/04/14/pdf-to-email-with-registration/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 15:20:00 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[email pdf]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHPMailer]]></category>

		<guid isPermaLink="false">http://itechlog.com/?p=697</guid>
		<description><![CDATA[<a href="http://itechlog.com/web-programming/2009/04/14/pdf-to-email-with-registration/" title="PDF to Email with registration"></a>Serve PDF files on your website by requesting the user to register their email address. The PDF file is sent to the given email address and the user details registered on a database. This is a very simple script and &#8230;<p class="read-more"><a href="http://itechlog.com/web-programming/2009/04/14/pdf-to-email-with-registration/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/web-programming/2009/04/14/pdf-to-email-with-registration/" title="PDF to Email with registration"></a><p>Serve PDF files on your website by requesting the user to register their email address. The PDF file is sent to the given email address and the user details registered on a database. This is a very simple script and relies on four main features.</p>
<p><strong></strong></p>
<p><strong>Apache mod_rewrite (via the .htaccess file)</strong></p>
<p><strong>PHPMailer</strong></p>
<p><strong>MySQL database</strong></p>
<p><strong>the simple-register.php script itself</strong></p>
<p><span id="more-697"></span></p>
<p>See a <a href="http://itechlog.com/pdf/test.pdf" target="_blank">demo here</a></p>
<p>Let&#8217;s start, first you need to create the folder on your site where you are going to place your PDF files, in my case I called it /pdf/ so the address to your files should be something like this, http://yoursite.com/pdf/yourfile.pdf</p>
<h3>1. Apache mod_rewrite (via the .htaccess file)</h3>
<p>create a text file and name it .htaccess and add the follwing text</p>
<pre class="”php”">RewriteEngine On
RewriteBase /
RewriteRule ^(.*).pdf$ /pdf/simple-register.php?file=$1 [R=301,NE,L]</pre>
<p>Mod_rewrite will redirect any trffic to your .pdf file to the registration form &#8220;/pdf/simple-register.php&#8221;, if you save the php file with a different name you will need to adjust this file with the correct filename.</p>
<h3>2. PHPMailer</h3>
<p>is an openSource mailer script which you can <a href="http://phpmailer.codeworxtech.com/" target="_blank">download from their official site</a>. After download extract the class.phpmailer.php file to your /pdf/ folder</p>
<h3>3. MySQL database</h3>
<p>Create a database with a table with the following details</p>
<pre class="”php”">`ID` int(10) unsigned zerofill NOT NULL auto_increment,
  `name` text NOT NULL,
  `email` text NOT NULL,
  `file` text NOT NULL,
  `ip` text NOT NULL,
  PRIMARY KEY  (`ID`)</pre>
<p>if you want you can save the following code as a .sql file and upload to your MySQL using PHPmyAdmin.</p>
<pre class="”php”">CREATE DATABASE `pdflog`;
USE `pdflog`;

-- --------------------------------------------------------

--
-- Table structure for table `download_log`
--

CREATE TABLE IF NOT EXISTS `download_log` (
  `ID` int(10) unsigned zerofill NOT NULL auto_increment,
  `name` text NOT NULL,
  `email` text NOT NULL,
  `file` text NOT NULL,
  `ip` text NOT NULL,
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;</pre>
<h3>4. Create the simple-register.php script</h3>
<p>just copy the following code to a text editor and save the file as &#8220;simple-register.php&#8221; or any other name you may want to, but remember to also change the redirection on your .htaccess file.</p>
<p>Before you can upload your script you will need to edit some details on your file, just look at the section &#8220;############ variables for the email function ######&#8221; and add the required information. You will also need to change the database connection information, just look for the line matching the details below and change accordingly.</p>
<pre class="”php”">$dbHost = "localhost"; 	# set host - most likely you don't need to change this
$dbUser = "user";		# set database user
$dbPass = "password";		# set password
$dbName = "databbse";		# set database name</pre>
<p><strong>The script code</strong></p>
<pre class="”php”" style="overflow: auto; height: 400px; width: 100%;"> &lt;?php

echo "&lt;center&gt;&lt;div style=\"width:500px;text-align:left\"&gt;";
$email = $_POST['email'] ;
$name = $_POST['name'] ;
$pdf_file = $_REQUEST['file'] ;

$file = str_replace(".pdf","",$pdf_file); # a workaround for frinedly URL stuff

$allowed_file = "pdf"; # set single filetype

$file = "$pdf_file.$allowed_file";

$filename = str_replace("/pdf/","",$file); # removes the directory /pdf/ from the string

$ip=@$REMOTE_ADDR; // get IP address
if(!$ip) {$ip=$_SERVER['REMOTE_ADDR'];}

############ variables for the email function ######

$webmaster = "webmaster@yourdomain.com"; 	#webmaster or site email address
$site_name = "your site name";			#website name

$subject = "Your requested File: $filename"; #email subject line
$body_html = "&lt;b&gt;Dear $name&lt;/b&gt;&lt;br&gt;&lt;bR&gt;Please find attached the file requested.&lt;/b&gt;"; # HTML version of the message sent to user
$body_txt = "Dear $name\n\nPlease find attached the file requested."; # TEXT only version of the message sent to user
$sent_msg = "&lt;center&gt;&lt;h2&gt;Thank you&lt;/h2&gt; The file has been sent to $name - $email&lt;/center&gt;"; # message displayed on the page after file has been sent

$errot_subject = "Blocked action attempt [$email]"; # error email subject line
$error_body_html    = "&lt;b&gt;This person: $name - $email&lt;/b&gt;&lt;br&gt;&lt;br&gt;has attempted to downlod the file: $filename"; # HTML message to webmaster in case of attempt to access not permited file
$error_body_txt = "This person: $name - $email\n\nhas attempted to downlod the file: $filename";# TEXT message to webmaster in case of attempt to access not permited file
$error_msg = "&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;&lt;center&gt;&lt;font color=#ff0000&gt;Access to this file is not permited.&lt;/center&gt;&lt;/h2&gt;&lt;h4&gt;&lt;/font&gt;&lt;br&gt;Your details have been logged.&lt;br&gt;&lt;br&gt;IP Address: $ip &lt;br&gt; Email: $email &lt;br&gt; Name: $name &lt;br&gt; &lt;/h4&gt;"; # error message showed when user attempt to download a not permited filetype 

############ end vadiables #########################

if(!$email) {  #if email field is blank display the registration form

echo "&lt;center&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;&lt;b&gt;Please enter your details to proceed!&lt;/b&gt;&lt;/h2&gt;&lt;br&gt;&lt;br&gt;&lt;form method=post&gt;&lt;input type=hidden value=\"$filename\" name=name&gt; Name: &lt;input type=text name=name&gt;&lt;br&gt;Email: &lt;input type=text name=email&gt;&lt;br&gt; &lt;input type=submit value=send&gt;&lt;br&gt;&lt;br&gt;&lt;div style=\"text-align:left\"&gt;"; 

echo "&lt;/div&gt;&lt;/form&gt;&lt;/center&gt;";

}

else { #otherwise send the file 

$data[] = explode(".", $file);

while (list ($key,$val) = @each ($data)) {

$file_type = $val[1];

}
 # can only email PDF files, for security
if($file_type == $allowed_file) {
$blocked = 0; # information for the database 0 = no attempt to access unauthorized file

sendInfo($webmaster, $site_name, $name, $email, $subject, $body_html, $body_txt, $filename, $sent_msg);

}

else {
$blocked = 1; # information for the database 1 = attempt to access unauthorized file

sendInfo($webmaster, $site_name, $webmaster, $site_name, $error_subject, $error_body_html, $error_body_txt, $filename, $error_msg);
}

	}# end else

###### write details to to database
regtodb($name, $email, $filename, $ip, $blocked); 

echo "&lt;div&gt;&lt;/center&gt;";

?&gt;

&lt;?php

############## functions #############

# write to database

function regtodb($name, $email, $dfiles, $ip, $blocked) {

$dbHost = "localhost"; 	# set host - most likely you don't need to change this
$dbUser = "user";		# set database user
$dbPass = "password";		# set password
$dbName = "databbse";		# set database name

mysql_connect ($dbHost, $dbUser, $dbPass) or die ('MySQL connect failed. ' . mysql_error());
mysql_select_db($dbName) or die('Cannot select database. ' . mysql_error());
$query="INSERT INTO download_log VALUES ('','$name','$email','$dfiles','$ip', '$blocked')";
$result=mysql_query($query);

mysql_close();

}

# send email with phpMailer

function sendInfo($webmaster, $site_name, $name, $email, $subject, $body_html, $body_txt, $filename, $sent_msg) {

require_once("class.phpmailer.php");

$mail = new PHPMailer();

$mail-&gt;From = $webmaster;
$mail-&gt;FromName = $site_name;
$mail-&gt;AddAddress($email, $name);
$mail-&gt;AddAttachment($filename, $filename);

$mail-&gt;IsHTML(true);                                  // set email format to HTML

$mail-&gt;Subject = $subject;
$mail-&gt;Body    = $body_html;
$mail-&gt;AltBody = $body_txt;

if(!$mail-&gt;Send())
{
   echo "Message could not be sent. &lt;p&gt;";
   echo "Mailer Error: " . $mail-&gt;ErrorInfo;
   exit;
}

echo $sent_msg;

	}

?&gt;</pre>
<p>Now upload your files to your newly create /pdf folder together with your pdfs. Remember that your links must be to the pdf file and not the script, the mod_rewrite will take care of the redirection for you.</p>
<p>You may also want to add a <a href="http://recaptcha.net/plugins/php" target="_blank">captcha</a> type feature to avoid spam.</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/email+pdf' rel='tag' target='_self'>email pdf</a>, <a class='technorati-link' href='http://technorati.com/tag/PDF' rel='tag' target='_self'>PDF</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a>, <a class='technorati-link' href='http://technorati.com/tag/PHPMailer' rel='tag' target='_self'>PHPMailer</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>August 10, 2011 -- <a href="http://itechlog.com/code-snipets/2011/08/10/cardsave-error-transaction-datetime-expired/" title="Cardsave error &#8220;transaction date/time expired&#8221;">Cardsave error &#8220;transaction date/time expired&#8221;</a></li><li>January 31, 2011 -- <a href="http://itechlog.com/web-programming/2011/01/31/it-is-not-safe-to-rely-on-the-systems-timezone-settings/" title="It is not safe to rely on the system’s timezone settings">It is not safe to rely on the system’s timezone settings</a></li><li>May 13, 2009 -- <a href="http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/" title="Automatically display form data with PHP">Automatically display form data with PHP</a></li><li>February 18, 2009 -- <a href="http://itechlog.com/open-source/2009/02/18/sugarcrm-installation-error-sessionsave_path-not-set/" title="SugarCRM Installation error: session.save_path not set">SugarCRM Installation error: session.save_path not set</a></li><li>December 4, 2008 -- <a href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/" title="Search Engine Optimization  SEO in PHP (Book)">Search Engine Optimization  SEO in PHP (Book)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/web-programming/2009/04/14/pdf-to-email-with-registration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess 301 Redirect</title>
		<link>http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/</link>
		<comments>http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 15:59:32 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[301 Redirect]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MOD_REWRITE]]></category>
		<category><![CDATA[Search Optimization]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SEO Book]]></category>

		<guid isPermaLink="false">http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/</guid>
		<description><![CDATA[<a href="http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/" title=".htaccess 301 Redirect"></a>.htaccess files (or &#8220;distributed configuration files&#8221;) provide a way to make configuration changes on a per-directory basis in an Apache HTTP Server. This file, containing one or more configuration directives, is placed in a particular document directory, and the directives &#8230;<p class="read-more"><a href="http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/" title=".htaccess 301 Redirect"></a><p><b><code>.htaccess</code></b> files (or &#8220;distributed configuration files&#8221;)    provide a way to make configuration changes on a per-directory basis in an <b>Apache HTTP Server</b>. This    file, containing one or more configuration directives, is placed in a    particular document directory, and the directives apply to that    directory, and all subdirectories thereof.</p>
<p>This <b>301&nbsp; Redirect</b> can be used anytime you want to redirect a URL. Here are some examples of its use:</p>
<ul>
<li>Single page &#8211; Redirect 301 /old_page.html http://www.mysite.com/new_page.html</li>
</ul>
<ul>
<li>entire site -&nbsp;&nbsp; Redirect 301 /&nbsp; http://www.new_site.com/</li>
</ul>
<ul>
<li>c<a href="http://www.amazon.co.uk/gp/product/0470100923?ie=UTF8&amp;tag=costafamily-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=0470100923" target="_blank"><img style="float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="https://images-na.ssl-images-amazon.com/images/I/5184%2B7hkqxL._SL160_.jpg" alt="" align="left" border="0" /></a>hange file extension (html to php in this case) -&nbsp; RedirectMatch 301 (.*)\.html$ http://www.mysite.com$1.php</li>
</ul>
<p>There are many other uses for Redirect 301 and <a target="_blank" href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">mod_rewrite on Apache</a>, if you are moving a site or redesigning a site with a new CMS make sure you redirect your old URLs to your new site. By failing to do so any user that clicks on a link to your old site (page) will hit a 404 ERROR page, this will affect your search rankings.&nbsp; </p>
<p>The book &#8220;<a target="_blank" href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/"><b>Professional SEO</b></a>&#8221; has a good chapter in<b> mod_rewrite and URL redirectio</b>n, and is also great SEO manual</p>
<p>For a full <a target="_blank" href="http://httpd.apache.org/docs/1.3/howto/htaccess.html">tutorial on .htaccess</a> visit the official Apache website.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=f4dc6eb8-fe8d-8f5f-b316-e99a32d6f252" /></div>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/.htaccess' rel='tag' target='_self'>.htaccess</a>, <a class='technorati-link' href='http://technorati.com/tag/301+Redirect' rel='tag' target='_self'>301 Redirect</a>, <a class='technorati-link' href='http://technorati.com/tag/Apache' rel='tag' target='_self'>Apache</a>, <a class='technorati-link' href='http://technorati.com/tag/MOD_REWRITE' rel='tag' target='_self'>MOD_REWRITE</a>, <a class='technorati-link' href='http://technorati.com/tag/Search+Optimization' rel='tag' target='_self'>Search Optimization</a>, <a class='technorati-link' href='http://technorati.com/tag/SEO' rel='tag' target='_self'>SEO</a>, <a class='technorati-link' href='http://technorati.com/tag/SEO+Book' rel='tag' target='_self'>SEO Book</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>December 4, 2008 -- <a href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/" title="Search Engine Optimization  SEO in PHP (Book)">Search Engine Optimization  SEO in PHP (Book)</a></li><li>August 12, 2010 -- <a href="http://itechlog.com/linux/2010/08/12/linuxcon-2010-just-for-fun-poll-results-explained/" title="LinuxCon 2010 Just for Fun Poll Results explained">LinuxCon 2010 Just for Fun Poll Results explained</a></li><li>January 7, 2010 -- <a href="http://itechlog.com/linux/2010/01/07/linux-clearos-to-rival-microsofts-sbs/" title="Linux ClearOS to rival Microsoft&#8217;s SBS">Linux ClearOS to rival Microsoft&#8217;s SBS</a></li><li>August 26, 2009 -- <a href="http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/" title="Wordpress Media upload HTTP Error">Wordpress Media upload HTTP Error</a></li><li>June 5, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/" title="Keyword search and website ranking tools">Keyword search and website ranking tools</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.2.8 Avaliable fixed the security bug on 5.2.7</title>
		<link>http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/</link>
		<comments>http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 07:34:33 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Itechlog News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[PHP 5.2.7]]></category>
		<category><![CDATA[PHP 5.2.8]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/</guid>
		<description><![CDATA[<a href="http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/" title="PHP 5.2.8 Avaliable fixed the security bug on 5.2.7"></a>the PHP version 5.2.7 was removed from distribution due to a bug that caused a security hole in some configurations. The bug was related to the magic_quotes_gpc which will be deprecated in version 2.6. The PHP development team has officially &#8230;<p class="read-more"><a href="http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/" title="PHP 5.2.8 Avaliable fixed the security bug on 5.2.7"></a><p>the<b> PHP version 5.2.7</b> was removed from distribution due to a bug that caused a security hole in some configurations. The bug was related to the magic_quotes_gpc which will be deprecated in version 2.6.</p>
<p>The PHP development team has officially announced the immediate availability of <b><a href="http://www.php.net/downloads.php" target=_blank>PHP 5.2.8</a></b>. This release addresses a regression introduced by 5.2.7 in regard to the magic_quotes functionality, that was broken by an incorrect fix to the filter extension. All users who have upgraded to 5.2.7 are encouraged to upgrade to this release, alternatively you can apply a work-around for the bug by changing &#8220;filter.default_flags=0&#8243; in php.ini.</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/PHP+5.2.7' rel='tag' target='_self'>PHP 5.2.7</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP+5.2.8' rel='tag' target='_self'>PHP 5.2.8</a>, <a class='technorati-link' href='http://technorati.com/tag/Programming' rel='tag' target='_self'>Programming</a>, <a class='technorati-link' href='http://technorati.com/tag/Security' rel='tag' target='_self'>Security</a>, <a class='technorati-link' href='http://technorati.com/tag/Web+Programming' rel='tag' target='_self'>Web Programming</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>November 7, 2011 -- <a href="http://itechlog.com/programming/2011/11/07/arduino-the-open-source-hardware/" title="Arduino the Open Source hardware">Arduino the Open Source hardware</a></li><li>August 22, 2011 -- <a href="http://itechlog.com/open-source/2011/08/22/truecrypt-tutorial/" title="TrueCrypt tutorial">TrueCrypt tutorial</a></li><li>October 25, 2010 -- <a href="http://itechlog.com/security/2010/10/25/laptop-mobile-and-firefox-security/" title="Laptop, mobile and Firefox security">Laptop, mobile and Firefox security</a></li><li>March 26, 2010 -- <a href="http://itechlog.com/itechlog-news/2010/03/26/books-for-sale-linux-shell-qmail-handbook-and-ssltls/" title="Books for sale &#8211; Linux Shell, Qmail Handbook and SSL/TLS">Books for sale &#8211; Linux Shell, Qmail Handbook and SSL/TLS</a></li><li>July 8, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/07/08/android-to-iphone-apps-with-xml/" title="Android to iPhone Apps with XML">Android to iPhone Apps with XML</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python3 &#8211; Intentionaly backward incompatible</title>
		<link>http://itechlog.com/itechlog-news/2008/12/08/python3-intentionaly-backward-incompatible/</link>
		<comments>http://itechlog.com/itechlog-news/2008/12/08/python3-intentionaly-backward-incompatible/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 08:05:15 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Itechlog News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[2to3]]></category>
		<category><![CDATA[Py3K]]></category>
		<category><![CDATA[Python 3.0]]></category>

		<guid isPermaLink="false">http://itechlog.com/itechlog-news/2008/12/08/python3-intentionaly-backward-incompatible/</guid>
		<description><![CDATA[<a href="http://itechlog.com/itechlog-news/2008/12/08/python3-intentionaly-backward-incompatible/" title="Python3 - Intentionaly backward incompatible"></a>Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries. The Python&#160;developers have released the final version &#8230;<p class="read-more"><a href="http://itechlog.com/itechlog-news/2008/12/08/python3-intentionaly-backward-incompatible/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/itechlog-news/2008/12/08/python3-intentionaly-backward-incompatible/" title="Python3 - Intentionaly backward incompatible"></a><p><b><strong></strong>Python</b> is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries.</p>
<p>The Python&nbsp;developers have released the final version of <b>Python<br />
3.0</b>, a major reworking of the programming language. It&#8217;s said to be intentionally incompatible<br />
with the Python 2 series. </p>
<p>According to Guido van Rossum (Project Founder)</p>
<p>&#8220;&#8230; the new features in Python 3.0, compared to 2.6.<br />
Python 3.0, also known as “Python 3000” or “Py3K”, is the first ever<br />
<em>intentionally backwards incompatible</em> Python release.  There are more<br />
changes than in a typical release, and more that are important for all<br />
Python users.  Nevertheless, after digesting the changes, you’ll find<br />
that Python really hasn’t changed all that much – by and large, we’re<br />
mostly fixing well-known annoyances and warts, and removing a lot of<br />
old cruft.&#8221;</p>
<p>read the official &#8220;<a target="_blank" href="http://docs.python.org/dev/3.0/whatsnew/3.0.html">What&#8217;s New in Python 3.0</a>&#8221; release.</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/2to3' rel='tag' target='_self'>2to3</a>, <a class='technorati-link' href='http://technorati.com/tag/Programming' rel='tag' target='_self'>Programming</a>, <a class='technorati-link' href='http://technorati.com/tag/Py3K' rel='tag' target='_self'>Py3K</a>, <a class='technorati-link' href='http://technorati.com/tag/Python+3.0' rel='tag' target='_self'>Python 3.0</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>November 7, 2011 -- <a href="http://itechlog.com/programming/2011/11/07/arduino-the-open-source-hardware/" title="Arduino the Open Source hardware">Arduino the Open Source hardware</a></li><li>July 8, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/07/08/android-to-iphone-apps-with-xml/" title="Android to iPhone Apps with XML">Android to iPhone Apps with XML</a></li><li>June 20, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/06/20/opensuse-factory/" title="OpenSuse Factory">OpenSuse Factory</a></li><li>May 13, 2009 -- <a href="http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/" title="Automatically display form data with PHP">Automatically display form data with PHP</a></li><li>December 9, 2008 -- <a href="http://itechlog.com/itechlog-news/2008/12/09/php-528-avaliable-fixed-the-security-bug-on-527/" title="PHP 5.2.8 Avaliable fixed the security bug on 5.2.7">PHP 5.2.8 Avaliable fixed the security bug on 5.2.7</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/itechlog-news/2008/12/08/python3-intentionaly-backward-incompatible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Connect</title>
		<link>http://itechlog.com/itechlog-news/2008/12/06/facebook-connect/</link>
		<comments>http://itechlog.com/itechlog-news/2008/12/06/facebook-connect/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 14:50:05 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Itechlog News]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Connect]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Social Networking]]></category>

		<guid isPermaLink="false">http://itechlog.com/?p=105</guid>
		<description><![CDATA[<a href="http://itechlog.com/itechlog-news/2008/12/06/facebook-connect/" title="Facebook Connect"></a>Facebook has finally released the so awaited Connect. This feature allows users to share actions and information from the internet with their friends on Facebook including publishing Feed stories to profiles and sending requests. Connect was first announced in May &#8230;<p class="read-more"><a href="http://itechlog.com/itechlog-news/2008/12/06/facebook-connect/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/itechlog-news/2008/12/06/facebook-connect/" title="Facebook Connect"></a><p><b><img alt="Facebook Pic" title="" style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://newsimg.bbc.co.uk/media/images/45257000/jpg/_45257915_-42.jpg" width="153" height="115" /><br />Facebook</b> has finally released the so awaited <b>Connect</b>. This feature allows users to share actions and information from the internet with their<br />
friends on Facebook including publishing Feed stories to profiles and<br />
sending requests.</p>
<p>Connect was first announced in May 2008 but only recently it has been made available. There are already a few sites that have implemented this new feature. Check out the <a target="_blank" href="http://developers.facebook.com/news.php?blog=1&amp;story=174">Facebook developer&#8217;s blog</a> and see the list of sites already making use of this new feature.</p>
<p>To get started with fb:connect, check out their <a target="_blank" href="http://wiki.developers.facebook.com/index.php/Facebook_Connect"><b>development tutorial</b></a>.</p>
<p></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Connect' rel='tag' target='_self'>Connect</a>, <a class='technorati-link' href='http://technorati.com/tag/Facebook' rel='tag' target='_self'>Facebook</a>, <a class='technorati-link' href='http://technorati.com/tag/Social+Networking' rel='tag' target='_self'>Social Networking</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>January 10, 2012 -- <a href="http://itechlog.com/social-networking/2012/01/10/google-search-goes-social/" title="Google search goes social">Google search goes social</a></li><li>July 22, 2011 -- <a href="http://itechlog.com/social-networking/2011/07/22/google-useful-info/" title="Google+ useful info">Google+ useful info</a></li><li>December 3, 2009 -- <a href="http://itechlog.com/social-networking/2009/12/03/mis-understanding-social-networking/" title="(Mis) understanding Social networking">(Mis) understanding Social networking</a></li><li>April 1, 2011 -- <a href="http://itechlog.com/itechfeed/2011/04/01/facebook-acquires-bing/" title="Facebook acquires Bing">Facebook acquires Bing</a></li><li>March 31, 2011 -- <a href="http://itechlog.com/social-networking/2011/03/31/google-1/" title="Google +1">Google +1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/itechlog-news/2008/12/06/facebook-connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Engine Optimization  SEO in PHP (Book)</title>
		<link>http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/</link>
		<comments>http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 23:55:02 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[MOD_REWRITE]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://itechlog.com/?p=101</guid>
		<description><![CDATA[<a href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/" title="Search Engine Optimization  SEO in PHP (Book)"></a>The term SEO (Search Engine Optimization) has become a new phenomenon with marketeers.  As a programmer/developer it&#8217;s very hard to find a good book on such a broad subject but recently I found this great book. The authors go about &#8230;<p class="read-more"><a href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/" title="Search Engine Optimization  SEO in PHP (Book)"></a><p><a href="http://www.amazon.co.uk/gp/product/0470100923?ie=UTF8&amp;tag=costafamily-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=0470100923" target="_blank"><img src="https://images-na.ssl-images-amazon.com/images/I/5184%2B7hkqxL._SL160_.jpg" border="0" alt="" align="right" /></a><br />
The term SEO (Search Engine Optimization) has become a new phenomenon with  <a title="or MARKETER - One that sells goods or services in or to a market, especially one that markets a specified commodity" href="http://www.thefreedictionary.com/marketeer" target="_blank">marketeers</a>.  As a programmer/developer it&#8217;s very hard to find a good book on such a broad subject but recently I found this great book. The authors go about explaining and guiding you through exercises that are relevant for both programmers and marketeers.  It contains detailed chapters on Website Content, Links, Webmaster tools and <a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html" target="_blank">MOD_REWRITE</a>. The code snipets found in this book can be used as a good reference guide to any SEO project.   This <a title="SEO with PHP" href="http://www.amazon.co.uk/gp/product/0470100923?ie=UTF8&amp;tag=costafamily-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=0470100923" target="_blank">book is for PHP Programmers</a> but they have also published a <a title="SEO with .net" href="http://www.amazon.co.uk/gp/product/0470131470?ie=UTF8&amp;tag=costafamily-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=0470100923" target="_blank">.NET version.</a></p>
<p>If  you develop with <a title="Wordpress.org" href="http://wordpress.org" target="_blank">WordPress.org</a> this releted post can also be very helpfull:  <a title="SEO and WordPress" href="http://itechlog.com/wordpress/2008/12/13/seo-and-wordpress/" target="_blank">SEO and WordPress</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Books' rel='tag' target='_self'>Books</a>, <a class='technorati-link' href='http://technorati.com/tag/MOD_REWRITE' rel='tag' target='_self'>MOD_REWRITE</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a>, <a class='technorati-link' href='http://technorati.com/tag/Programming' rel='tag' target='_self'>Programming</a>, <a class='technorati-link' href='http://technorati.com/tag/Search' rel='tag' target='_self'>Search</a>, <a class='technorati-link' href='http://technorati.com/tag/SEO' rel='tag' target='_self'>SEO</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>June 5, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/" title="Keyword search and website ranking tools">Keyword search and website ranking tools</a></li><li>May 13, 2009 -- <a href="http://itechlog.com/web-programming/2009/05/13/automatically-display-form-data-with-php/" title="Automatically display form data with PHP">Automatically display form data with PHP</a></li><li>March 27, 2009 -- <a href="http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/" title=".htaccess 301 Redirect">.htaccess 301 Redirect</a></li><li>December 13, 2008 -- <a href="http://itechlog.com/wordpress/2008/12/13/seo-and-wordpress/" title="SEO and Wordpress">SEO and Wordpress</a></li><li>January 10, 2012 -- <a href="http://itechlog.com/social-networking/2012/01/10/google-search-goes-social/" title="Google search goes social">Google search goes social</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/web-programming/2008/12/04/search-engine-optimization-seo-in-php-book/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

