<?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>codeterrorizer.com</title>
	<atom:link href="http://www.codeterrorizer.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codeterrorizer.com</link>
	<description>Code Snippets</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:57:57 +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>Typo3 ke_troubletickets Call to undefined method t3lib_div::fixed_lgd_pre</title>
		<link>http://www.codeterrorizer.com/t3-extension-development/typo3-ke_troubletickets-call-to-undefined-method-t3lib_divfixed_lgd_pre</link>
		<comments>http://www.codeterrorizer.com/t3-extension-development/typo3-ke_troubletickets-call-to-undefined-method-t3lib_divfixed_lgd_pre#comments</comments>
		<pubDate>Fri, 03 Feb 2012 11:56:46 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[t3 extension development]]></category>
		<category><![CDATA[Call to undefined method t3lib_div::fixed_lgd_pre]]></category>
		<category><![CDATA[t3lib_div::fixed_lgd_pre]]></category>
		<category><![CDATA[typo3 ke_troubletickets]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=445</guid>
		<description><![CDATA[Change the following line typo3conf/ext/ke_troubletickets/mod1/index.php on line 181

to
Related posts:
Load additional locallang.xml
Typo3 Extension: Howto get startingpoint and recursive value
Typo3 Extension Flexform onchange reload

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/load-additional-locallang-xml' rel='bookmark' title='Load additional locallang.xml'>Load additional locallang.xml</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-extension-howto-get-startingpoint-and-recursive-value' rel='bookmark' title='Typo3 Extension: Howto get startingpoint and recursive value'>Typo3 Extension: Howto get startingpoint and recursive value</a></li>
<li><a href='http://www.codeterrorizer.com/php/typo3-extension-flexform-onchange-reload' rel='bookmark' title='Typo3 Extension Flexform onchange reload'>Typo3 Extension Flexform onchange reload</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Change the following line typo3conf/ext/ke_troubletickets/mod1/index.php on line 181<br />
<span id="more-445"></span></p>
<pre class="brush: php; title: ; notranslate">
$headerSection = $this-&gt;doc-&gt;getHeader('pages',$this-&gt;pageinfo,$this-&gt;pageinfo['_thePath']).'&lt;br /&gt;'.$LANG-&gt;sL('LLL:EXT:lang/locallang_core.xml:labels.path').': '.t3lib_div::fixed_lgd_pre($this-&gt;pageinfo['_thePath'],50);
</pre>
<p>to</p>
<pre class="brush: php; title: ; notranslate">
$headerSection = $this-&gt;doc-&gt;getHeader('pages',$this-&gt;pageinfo,$this-&gt;pageinfo['_thePath']).'&lt;br /&gt;'.$LANG-&gt;sL('LLL:EXT:lang/locallang_core.xml:labels.path').': '.t3lib_div::fixed_lgd_cs($this-&gt;pageinfo['_thePath'],-50);
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/load-additional-locallang-xml' rel='bookmark' title='Load additional locallang.xml'>Load additional locallang.xml</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-extension-howto-get-startingpoint-and-recursive-value' rel='bookmark' title='Typo3 Extension: Howto get startingpoint and recursive value'>Typo3 Extension: Howto get startingpoint and recursive value</a></li>
<li><a href='http://www.codeterrorizer.com/php/typo3-extension-flexform-onchange-reload' rel='bookmark' title='Typo3 Extension Flexform onchange reload'>Typo3 Extension Flexform onchange reload</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/t3-extension-development/typo3-ke_troubletickets-call-to-undefined-method-t3lib_divfixed_lgd_pre/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typo3 seo_basics add Title Tag from Extension</title>
		<link>http://www.codeterrorizer.com/php/typo3-seo_basics-add-title-tag-from-extension</link>
		<comments>http://www.codeterrorizer.com/php/typo3-seo_basics-add-title-tag-from-extension#comments</comments>
		<pubDate>Thu, 05 Jan 2012 09:32:46 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[t3 extension development]]></category>
		<category><![CDATA[seo_basics]]></category>
		<category><![CDATA[title tag]]></category>
		<category><![CDATA[typo3 seo_basics title]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=439</guid>
		<description><![CDATA[You have seo_basics installed and want to change your title tag from within your own extension.
Use the following code snippet:

Related posts:
Change Head Title, Meta Description and Meta Keywords from within your Extension
Typo3 Extension &#8211; Get translation overlay of your records
Typo3 Dev: Get Base URL in Extension

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/php/change-head-title-meta-description-and-meta-keywords-from-within-your-extension' rel='bookmark' title='Change Head Title, Meta Description and Meta Keywords from within your Extension'>Change Head Title, Meta Description and Meta Keywords from within your Extension</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-extension-get-translation-overlay-of-your-records' rel='bookmark' title='Typo3 Extension &#8211; Get translation overlay of your records'>Typo3 Extension &#8211; Get translation overlay of your records</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-dev-get-base-url-in-extension' rel='bookmark' title='Typo3 Dev: Get Base URL in Extension'>Typo3 Dev: Get Base URL in Extension</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You have seo_basics installed and want to change your title tag from within your own extension.<br />
Use the following code snippet:<br />
<span id="more-439"></span></p>
<pre class="brush: php; title: ; notranslate">
$GLOBALS['TSFE']-&gt;page['tx_seo_titletag'] = 'New Title';
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/php/change-head-title-meta-description-and-meta-keywords-from-within-your-extension' rel='bookmark' title='Change Head Title, Meta Description and Meta Keywords from within your Extension'>Change Head Title, Meta Description and Meta Keywords from within your Extension</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-extension-get-translation-overlay-of-your-records' rel='bookmark' title='Typo3 Extension &#8211; Get translation overlay of your records'>Typo3 Extension &#8211; Get translation overlay of your records</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-dev-get-base-url-in-extension' rel='bookmark' title='Typo3 Dev: Get Base URL in Extension'>Typo3 Dev: Get Base URL in Extension</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/php/typo3-seo_basics-add-title-tag-from-extension/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL Server Backup / Import</title>
		<link>http://www.codeterrorizer.com/uncategorized/mssql-server-backup-import</link>
		<comments>http://www.codeterrorizer.com/uncategorized/mssql-server-backup-import#comments</comments>
		<pubDate>Wed, 04 Jan 2012 15:35:04 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mssql backup]]></category>
		<category><![CDATA[mssql export]]></category>
		<category><![CDATA[mssql import]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=433</guid>
		<description><![CDATA[To backup your database use following SQL:

To import an existing dump use following SQL:
Related posts:
Fast SQLite Tutorial
How to import and alias namespaces (Namespaces Part III)

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/sqlite/fast-sqlite-tutorial' rel='bookmark' title='Fast SQLite Tutorial'>Fast SQLite Tutorial</a></li>
<li><a href='http://www.codeterrorizer.com/php/using-the-use-statement-to-import-and-alias-namespaces-namespaces-part-iii' rel='bookmark' title='How to import and alias namespaces (Namespaces Part III)'>How to import and alias namespaces (Namespaces Part III)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To backup your database use following SQL:</p>
<pre class="brush: plain; title: ; notranslate">
BACKUP DATABASE &lt;databaseName&gt; TO DISK = '&lt;pathToSqlFile&gt;'
</pre>
<p><span id="more-433"></span><br />
To import an existing dump use following SQL:</p>
<pre class="brush: plain; title: ; notranslate">
RESTORE DATABASE &lt;databaseName&gt; FROM DISK = '&lt;pathToSqlFile&gt;'
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/sqlite/fast-sqlite-tutorial' rel='bookmark' title='Fast SQLite Tutorial'>Fast SQLite Tutorial</a></li>
<li><a href='http://www.codeterrorizer.com/php/using-the-use-statement-to-import-and-alias-namespaces-namespaces-part-iii' rel='bookmark' title='How to import and alias namespaces (Namespaces Part III)'>How to import and alias namespaces (Namespaces Part III)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/uncategorized/mssql-server-backup-import/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Email Validation with build in Function</title>
		<link>http://www.codeterrorizer.com/uncategorized/php-email-validation-with-build-in-function</link>
		<comments>http://www.codeterrorizer.com/uncategorized/php-email-validation-with-build-in-function#comments</comments>
		<pubDate>Wed, 30 Nov 2011 16:40:30 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[email validation]]></category>
		<category><![CDATA[mail valid]]></category>
		<category><![CDATA[php email]]></category>
		<category><![CDATA[php email validation]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=426</guid>
		<description><![CDATA[Related posts:
Using function pointers (Function pointer Part II)
Subnamespaces with PHP (Namespaces Part II)
Function subwords, gets words by max string length

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/cc/using-function-pointers-function-pointer-part-ii' rel='bookmark' title='Using function pointers (Function pointer Part II)'>Using function pointers (Function pointer Part II)</a></li>
<li><a href='http://www.codeterrorizer.com/php/subnamespaces-with-php-namespaces-part-ii' rel='bookmark' title='Subnamespaces with PHP (Namespaces Part II)'>Subnamespaces with PHP (Namespaces Part II)</a></li>
<li><a href='http://www.codeterrorizer.com/php/function-subwords-gets-words-by-max-string-length' rel='bookmark' title='Function subwords, gets words by max string length'>Function subwords, gets words by max string length</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
if (!filter_var('bob@example.de', FILTER_VALIDATE_EMAIL)) {
	print &quot;thats not right&quot;;
} else {
	print &quot;that right&quot;;
}
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/cc/using-function-pointers-function-pointer-part-ii' rel='bookmark' title='Using function pointers (Function pointer Part II)'>Using function pointers (Function pointer Part II)</a></li>
<li><a href='http://www.codeterrorizer.com/php/subnamespaces-with-php-namespaces-part-ii' rel='bookmark' title='Subnamespaces with PHP (Namespaces Part II)'>Subnamespaces with PHP (Namespaces Part II)</a></li>
<li><a href='http://www.codeterrorizer.com/php/function-subwords-gets-words-by-max-string-length' rel='bookmark' title='Function subwords, gets words by max string length'>Function subwords, gets words by max string length</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/uncategorized/php-email-validation-with-build-in-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typo3 Webserver PHP Fehlermeldungen aktivieren</title>
		<link>http://www.codeterrorizer.com/t3-extension-development/typo3-webserver-php-fehlermeldungen-aktivieren</link>
		<comments>http://www.codeterrorizer.com/t3-extension-development/typo3-webserver-php-fehlermeldungen-aktivieren#comments</comments>
		<pubDate>Sun, 13 Nov 2011 15:28:17 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[t3 extension development]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=420</guid>
		<description><![CDATA[Who didn&#8217;t have this problem yet, you upload your old Typo3 Installation to a new hoster and nothing is working!
You don&#8217;t have any Log files, nothing!
To see what is going on simply add the following line to your typo3conf/localconf.php
Related posts:
Typo3 Turn off depracation Log
Mail Deprecation Bug after Typo3 Update to 4.5
Typo3 Multidomain RealURL

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-turn-off-depracation-log' rel='bookmark' title='Typo3 Turn off depracation Log'>Typo3 Turn off depracation Log</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/mail-deprecation-bug-after-typo3-update-to-4-5' rel='bookmark' title='Mail Deprecation Bug after Typo3 Update to 4.5'>Mail Deprecation Bug after Typo3 Update to 4.5</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-multidomain-realurl' rel='bookmark' title='Typo3 Multidomain RealURL'>Typo3 Multidomain RealURL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Who didn&#8217;t have this problem yet, you upload your old Typo3 Installation to a new hoster and nothing is working!<br/><br />
You don&#8217;t have any Log files, nothing!<br/><br />
To see what is going on simply add the following line to your typo3conf/localconf.php</p>
<pre class="brush: php; title: ; notranslate">
$TYPO3_CONF_VARS['SYS']['displayErrors'] = '1';
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-turn-off-depracation-log' rel='bookmark' title='Typo3 Turn off depracation Log'>Typo3 Turn off depracation Log</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/mail-deprecation-bug-after-typo3-update-to-4-5' rel='bookmark' title='Mail Deprecation Bug after Typo3 Update to 4.5'>Mail Deprecation Bug after Typo3 Update to 4.5</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-multidomain-realurl' rel='bookmark' title='Typo3 Multidomain RealURL'>Typo3 Multidomain RealURL</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/t3-extension-development/typo3-webserver-php-fehlermeldungen-aktivieren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail Deprecation Bug after Typo3 Update to 4.5</title>
		<link>http://www.codeterrorizer.com/t3-extension-development/mail-deprecation-bug-after-typo3-update-to-4-5</link>
		<comments>http://www.codeterrorizer.com/t3-extension-development/mail-deprecation-bug-after-typo3-update-to-4-5#comments</comments>
		<pubDate>Sat, 15 Oct 2011 14:23:52 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[t3 extension development]]></category>
		<category><![CDATA[typo3]]></category>
		<category><![CDATA[typo3 mail cryptic]]></category>
		<category><![CDATA[typo3 mail deprecation]]></category>
		<category><![CDATA[typo3 mail kryptisch]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=417</guid>
		<description><![CDATA[After updating Typo3 4.3, 4.4 to Typo3 4.5 I received some Deprecation Warnings: Validation failed for: &#8230;
Also I had had one project where the mail text was krypted.

Following typo3conf/localconf.php entry fixed this:
Related posts:
Typo3 Turn off depracation Log
Typo3 Webserver PHP Fehlermeldungen aktivieren
Encrypt E-Mail Addresses with TypoScript and in your Extension

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-turn-off-depracation-log' rel='bookmark' title='Typo3 Turn off depracation Log'>Typo3 Turn off depracation Log</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-webserver-php-fehlermeldungen-aktivieren' rel='bookmark' title='Typo3 Webserver PHP Fehlermeldungen aktivieren'>Typo3 Webserver PHP Fehlermeldungen aktivieren</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/encrypt-e-mail-adresses-with-typoscript-and-in-your-extension' rel='bookmark' title='Encrypt E-Mail Addresses with TypoScript and in your Extension'>Encrypt E-Mail Addresses with TypoScript and in your Extension</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After updating Typo3 4.3, 4.4 to Typo3 4.5 I received some Deprecation Warnings: Validation failed for: &#8230;<br />
Also I had had one project where the mail text was krypted.<br />
<span id="more-417"></span><br />
Following typo3conf/localconf.php entry fixed this:</p>
<pre class="brush: php; title: ; notranslate">
$TYPO3_CONF_VARS['MAIL']['substituteOldMailAPI'] = '0';
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/typoscript/typo3-turn-off-depracation-log' rel='bookmark' title='Typo3 Turn off depracation Log'>Typo3 Turn off depracation Log</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-webserver-php-fehlermeldungen-aktivieren' rel='bookmark' title='Typo3 Webserver PHP Fehlermeldungen aktivieren'>Typo3 Webserver PHP Fehlermeldungen aktivieren</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/encrypt-e-mail-adresses-with-typoscript-and-in-your-extension' rel='bookmark' title='Encrypt E-Mail Addresses with TypoScript and in your Extension'>Encrypt E-Mail Addresses with TypoScript and in your Extension</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/t3-extension-development/mail-deprecation-bug-after-typo3-update-to-4-5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL &#8211; TIMESTAMP to Unix Timestamp</title>
		<link>http://www.codeterrorizer.com/php/mysql-timestamp-to-unix-timestamp</link>
		<comments>http://www.codeterrorizer.com/php/mysql-timestamp-to-unix-timestamp#comments</comments>
		<pubDate>Tue, 20 Sep 2011 20:21:18 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[mysql timestamp]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[unix timestamp]]></category>
		<category><![CDATA[unixtimestamp]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=411</guid>
		<description><![CDATA[Ever wanted to create an attribute of type timestamp to a unix timestamp?
Related posts:
Typo3 Extension Flexform, outsourcing Language Files for your flexform
Fast SQLite Tutorial
Typo3 Extension Flexform onchange reload

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/php/typo3-flexform-outsourcing-language-for-your-flexform' rel='bookmark' title='Typo3 Extension Flexform, outsourcing Language Files for your flexform'>Typo3 Extension Flexform, outsourcing Language Files for your flexform</a></li>
<li><a href='http://www.codeterrorizer.com/sqlite/fast-sqlite-tutorial' rel='bookmark' title='Fast SQLite Tutorial'>Fast SQLite Tutorial</a></li>
<li><a href='http://www.codeterrorizer.com/php/typo3-extension-flexform-onchange-reload' rel='bookmark' title='Typo3 Extension Flexform onchange reload'>Typo3 Extension Flexform onchange reload</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to create an attribute of type timestamp to a unix timestamp?</p>
<pre class="brush: plain; title: ; notranslate">
SELECT UNIX_TIMESTAMP(mydate) FROM mytable;
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/php/typo3-flexform-outsourcing-language-for-your-flexform' rel='bookmark' title='Typo3 Extension Flexform, outsourcing Language Files for your flexform'>Typo3 Extension Flexform, outsourcing Language Files for your flexform</a></li>
<li><a href='http://www.codeterrorizer.com/sqlite/fast-sqlite-tutorial' rel='bookmark' title='Fast SQLite Tutorial'>Fast SQLite Tutorial</a></li>
<li><a href='http://www.codeterrorizer.com/php/typo3-extension-flexform-onchange-reload' rel='bookmark' title='Typo3 Extension Flexform onchange reload'>Typo3 Extension Flexform onchange reload</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/php/mysql-timestamp-to-unix-timestamp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.3 Compile on CentOS</title>
		<link>http://www.codeterrorizer.com/php/php-5-3-compile-on-centos</link>
		<comments>http://www.codeterrorizer.com/php/php-5-3-compile-on-centos#comments</comments>
		<pubDate>Sat, 23 Jul 2011 14:01:34 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[compile php on centos]]></category>
		<category><![CDATA[php 5.3]]></category>
		<category><![CDATA[php centos]]></category>
		<category><![CDATA[php kompilieren]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=399</guid>
		<description><![CDATA[I am using standard http and MySQL server setup with a freshly installed Centos 5.6 64 Bit system.

Update your system to the latest:
Install all necessary programs:
Get latest PHP 5.3 source from http://www.php.net/downloads.php.
Create install config
Press i and Insert by pasting the follwing configs:
Press escape to leave Text-mode and save the file:
Give running permissions to install-sh:
Start configure:
If Read More
Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/uncategorized/centos-nrpe-from-source-tutorial' rel='bookmark' title='CentOS NRPE from Source Tutorial'>CentOS NRPE from Source Tutorial</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/encrypt-e-mail-adresses-with-typoscript-and-in-your-extension' rel='bookmark' title='Encrypt E-Mail Addresses with TypoScript and in your Extension'>Encrypt E-Mail Addresses with TypoScript and in your Extension</a></li>
<li><a href='http://www.codeterrorizer.com/php/php-ms-sql-odbc-on-debian' rel='bookmark' title='PHP MS SQL ODBC on Debian'>PHP MS SQL ODBC on Debian</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I am using standard http and MySQL server setup with a freshly installed Centos 5.6 64 Bit system.<br />
<span id="more-399"></span><br />
Update your system to the latest:</p>
<pre class="brush: bash; title: ; notranslate">
 yum update
</pre>
<p>Install all necessary programs:</p>
<pre class="brush: bash; title: ; notranslate">
 yum install libxslt-devel xslt-devel aspell-devel libmcrypt-devel bzip2-devel httpd-devel gcc make automake curl-devel freetype-devel libpng-devel gd-devel gmp-devel libjpeg-devel openssl-devel pcre-devel zlib-devel unixODBC-devel sqlite-devel libxml2-devel mysql-devel net-snmp-devel pcre-devel
</pre>
<p>Get latest PHP 5.3 source from http://www.php.net/downloads.php.</p>
<pre class="brush: bash; title: ; notranslate">
 cd /tmp
 wget php-source
 tar xvfj php-version
 rm php-version
</pre>
<p>Create install config</p>
<pre class="brush: bash; title: ; notranslate">
 cd php-Version
 vi install-sh
</pre>
<p>Press i and Insert by pasting the follwing configs:</p>
<pre class="brush: bash; title: ; notranslate">
 ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix=\
  --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share\
  --includedir=/usr/include --libdir=/usr/ --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com\
  --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc\
  --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --with-pear --with-bz2 --with-curl\
  --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext\
  --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pspell --with-libexpat-dir=/usr --with-pcre-regex=/usr\
  --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem\
  --enable-sysvshm --enable-sysvmsg --enable-wddx --with-kerberos --enable-ucd-snmp-hack --with-unixODBC=shared,/usr\
  --enable-shmop --enable-calendar --with-mime-magic=/usr/share/file/magic.mime --without-sqlite --with-libxml-dir=/usr\
  --enable-xml --enable-force-cgi-redirect --enable-pcntl --enable-mbstring=shared\
  --enable-mbregex --with-ncurses=shared --with-gd=shared --enable-bcmath=shared --enable-dba=shared --with-db4=/usr\
  --with-xmlrpc=shared --with-mysql=shared,/usr \
  --enable-dom=shared --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr\
  --enable-xmlreader=shared --enable-xmlwriter=shared --enable-fastcgi --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr\
  --with-pdo-sqlite=shared,/usr --enable-dbase=shared\
  --with-pdo-mysql=shared,/usr/ --with-mysql-sock=/var/lib/mysql/mysql.sock \
  --with-mcrypt --with-apxs2=/usr/sbin/apxs --enable-static=no
</pre>
<p>Press escape to leave Text-mode and save the file:</p>
<pre class="brush: bash; title: ; notranslate">
 : x
</pre>
<p>Give running permissions to install-sh:</p>
<pre class="brush: bash; title: ; notranslate">
 chmod 755 install-sh
</pre>
<p>Start configure:</p>
<pre class="brush: bash; title: ; notranslate">
 ./install-sh
</pre>
<p>If something is missing try find the missing program, mostly it will be the -devel missing, with &#8220;yum search&#8221; and install it with &#8220;yum install&#8221;. Run ./instal-sh again.<br />
If the problem still occurs take a closer look to config.log and/or use google. Usually there is always help out there.</p>
<p>If everything is alright, run make and install php:</p>
<pre class="brush: bash; title: ; notranslate">
 make
 make install
</pre>
<p>That&#8217;s it, now you have a running current selfcompiled php Version on your server.</p>
<p>Cheers</p>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/uncategorized/centos-nrpe-from-source-tutorial' rel='bookmark' title='CentOS NRPE from Source Tutorial'>CentOS NRPE from Source Tutorial</a></li>
<li><a href='http://www.codeterrorizer.com/typoscript/encrypt-e-mail-adresses-with-typoscript-and-in-your-extension' rel='bookmark' title='Encrypt E-Mail Addresses with TypoScript and in your Extension'>Encrypt E-Mail Addresses with TypoScript and in your Extension</a></li>
<li><a href='http://www.codeterrorizer.com/php/php-ms-sql-odbc-on-debian' rel='bookmark' title='PHP MS SQL ODBC on Debian'>PHP MS SQL ODBC on Debian</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/php/php-5-3-compile-on-centos/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Typo3 Fluid &#8211; nested Translation in Fluid Tags</title>
		<link>http://www.codeterrorizer.com/t3-extension-development/typo3-fluid-verschachtelte-ubersetzung-in-fluid-tags</link>
		<comments>http://www.codeterrorizer.com/t3-extension-development/typo3-fluid-verschachtelte-ubersetzung-in-fluid-tags#comments</comments>
		<pubDate>Sat, 05 Mar 2011 23:38:46 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[t3 extension development]]></category>
		<category><![CDATA[fluid]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=392</guid>
		<description><![CDATA[Related posts:
Typo3 Extension &#8211; Get translation overlay of your records
Mail Deprecation Bug after Typo3 Update to 4.5
Typo3 image processing

Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-extension-get-translation-overlay-of-your-records' rel='bookmark' title='Typo3 Extension &#8211; Get translation overlay of your records'>Typo3 Extension &#8211; Get translation overlay of your records</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/mail-deprecation-bug-after-typo3-update-to-4-5' rel='bookmark' title='Mail Deprecation Bug after Typo3 Update to 4.5'>Mail Deprecation Bug after Typo3 Update to 4.5</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/simple-image-processing' rel='bookmark' title='Typo3 image processing'>Typo3 image processing</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml; title: ; notranslate">
&lt;f:form.submit name=&quot;select-name&quot; value=&quot;{f:translate(key:'send')}&quot;/&gt;
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/typo3-extension-get-translation-overlay-of-your-records' rel='bookmark' title='Typo3 Extension &#8211; Get translation overlay of your records'>Typo3 Extension &#8211; Get translation overlay of your records</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/mail-deprecation-bug-after-typo3-update-to-4-5' rel='bookmark' title='Mail Deprecation Bug after Typo3 Update to 4.5'>Mail Deprecation Bug after Typo3 Update to 4.5</a></li>
<li><a href='http://www.codeterrorizer.com/t3-extension-development/simple-image-processing' rel='bookmark' title='Typo3 image processing'>Typo3 image processing</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/t3-extension-development/typo3-fluid-verschachtelte-ubersetzung-in-fluid-tags/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS NRPE from Source Tutorial</title>
		<link>http://www.codeterrorizer.com/uncategorized/centos-nrpe-from-source-tutorial</link>
		<comments>http://www.codeterrorizer.com/uncategorized/centos-nrpe-from-source-tutorial#comments</comments>
		<pubDate>Sun, 13 Feb 2011 14:20:38 +0000</pubDate>
		<dc:creator>Christian Koch</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nrpe]]></category>

		<guid isPermaLink="false">http://www.codeterrorizer.com/?p=377</guid>
		<description><![CDATA[
Add Nagios Usergroup and User
Required Packages for install
Check if following packages are installed on your System: gcc, make, automake, openssl, openssl-devel
Install xinetd
Autostart xinetd
Install NRPE and Nagios Plugins
NRPE
Nagios Plugins
Check if Plugins are installed
Check with Plugin check_http
Preparing NRPE Service
Add following lines:
To cloas vi pre ESC then : and x Enter. Don&#8217;t forget to replace Nagios Server IP Read More
Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/php/php-ms-sql-odbc-on-debian' rel='bookmark' title='PHP MS SQL ODBC on Debian'>PHP MS SQL ODBC on Debian</a></li>
<li><a href='http://www.codeterrorizer.com/php/php-5-3-compile-on-centos' rel='bookmark' title='PHP 5.3 Compile on CentOS'>PHP 5.3 Compile on CentOS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><span id="more-377"></span></p>
<h2>Add Nagios Usergroup and User</h2>
<pre class="brush: bash; title: ; notranslate">
groupadd -g 9000 nagios
useradd -u 9000 -g nagios -d /usr/local/nagios -c &quot;Nagios NRPE&quot; nagios
</pre>
<h2>Required Packages for install</h2>
<p>Check if following packages are installed on your System: gcc, make, automake, openssl, openssl-devel</p>
<h2>Install xinetd</h2>
<pre class="brush: bash; title: ; notranslate">
yum install xinetd
</pre>
<h2>Autostart xinetd</h2>
<pre class="brush: bash; title: ; notranslate">
chkconfig --level 2345 xinetd on
</pre>
<h2>Install NRPE and Nagios Plugins</h2>
<pre class="brush: bash; title: ; notranslate">
cd /usr/local/src/
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz
tar xvfz nagios-plugins-1.4.15.tar.gz
tar xvfz nrpe-2.12.tar.gz
</pre>
<h3>NRPE</h3>
<pre class="brush: bash; title: ; notranslate">
cd nrpe-2.12
./configure --sysconfdir=/etc/nagios --enable-ssl
make all
make install
mkdir /etc/nagios
cp sample-config/nrpe.cfg /etc/nagios/
chown -R nagios:nagios /etc/nagios/
cd ..
rm -rf nrpe*
</pre>
<h3>Nagios Plugins</h3>
<pre class="brush: bash; title: ; notranslate">
cd nagios-plugins-1.4.15
./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios --enable-perl-modules
make
make install
cd ..
rm -rf nagios*
</pre>
<h3>Check if Plugins are installed</h3>
<pre class="brush: bash; title: ; notranslate">
l /usr/local/nagios/libexec/
cd /usr/local/nagios/libexec/
</pre>
<h3>Check with Plugin check_http</h3>
<pre class="brush: bash; title: ; notranslate">
./check_http -H www.google.de
</pre>
<h2>Preparing NRPE Service</h3>
<pre class="brush: bash; title: ; notranslate">
cd /etc/xinetd.d
vi nrpe
</pre>
<p>Add following lines:</p>
<pre class="brush: plain; title: ; notranslate">
service nrpe
{
	flags = REUSE
	socket_type = stream
	wait = no
	user = nagios
	group = nagios
	server = /usr/local/nagios/bin/nrpe
	server_args = -c /etc/nagios/nrpe.cfg --inetd
	log_on_failure += USERID
	disable = NO
	only_from	= Nagios Server IP
}
</pre>
<p>To cloas vi pre ESC then : and x Enter. Don&#8217;t forget to replace <strong>Nagios Server IP</strong> with your acutal IP.</p>
<p>Listen to NRPE Port 5666:</p>
<pre class="brush: bash; title: ; notranslate">
vi /etc/services
</pre>
<p>Append:</p>
<pre class="brush: plain; title: ; notranslate">
nrpe		5666/tcp			# Nagios NRPE
</pre>
<h2>Start xinetd</h2>
<pre class="brush: bash; title: ; notranslate">
/etc/init.d/xinetd start
</pre>
<h2>Check if NRPE Port ist listening</h2>
<pre class="brush: bash; title: ; notranslate">
netstat -lnt|grep ':5666'
</pre>
<p>Should give you something as following:</p>
<pre class="brush: plain; title: ; notranslate">
=&gt; tcp        0      0 0.0.0.0:5666                0.0.0.0:*                   LISTEN
</pre>
<h2>Make a check form your Nagios Server</h2>
<pre class="brush: bash; title: ; notranslate">
cd /usr/local/nagios/libexec
./check_nrpe -H www.my-new-nrpe-client.com -c check_users
Connection refused or timed out
</pre>
<p>=> Port is closed due to Iptables Firewall, good! <img src='http://www.codeterrorizer.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Iptables Check if Port is open for Nagios Server, here is a short Introduction I found usefull (on NRPE Client)<br />
<a href="http://www.cyberciti.biz/faq/howto-rhel-linux-open-port-using-iptables/" target="_blank">http://www.cyberciti.biz/faq/howto-rhel-linux-open-port-using-iptables/</a></p>
<pre class="brush: bash; title: ; notranslate">
vi /etc/sysconfig/iptables
</pre>
<p>Append before deny all others rule:</p>
<pre class="brush: plain; title: ; notranslate">
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5666 --source Nagios Server IP -j ACCEPT
</pre>
<p>Allow Connections on NRPE Port 5666 from Nagios Server IP. Don&#8217;t forget to replace <strong>Nagios Server IP</strong> with your acutal IP.</p>
<pre class="brush: bash; title: ; notranslate">
service iptables restart
</pre>
<h2>Check it again</h2>
<pre class="brush: bash; title: ; notranslate">
./check_nrpe -H www.my-new-nrpe-client.com -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0
</pre>
<p>Related posts:<ol>
<li><a href='http://www.codeterrorizer.com/php/php-ms-sql-odbc-on-debian' rel='bookmark' title='PHP MS SQL ODBC on Debian'>PHP MS SQL ODBC on Debian</a></li>
<li><a href='http://www.codeterrorizer.com/php/php-5-3-compile-on-centos' rel='bookmark' title='PHP 5.3 Compile on CentOS'>PHP 5.3 Compile on CentOS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codeterrorizer.com/uncategorized/centos-nrpe-from-source-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

