<?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>TechPHP.org&#187; General</title>
	<atom:link href="http://www.techphp.org/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techphp.org</link>
	<description>Web development journal</description>
	<lastBuildDate>Tue, 15 Dec 2009 00:04:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Denied access with pure PHP</title>
		<link>http://www.techphp.org/general/denied-access-with-pure-php/</link>
		<comments>http://www.techphp.org/general/denied-access-with-pure-php/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 11:05:40 +0000</pubDate>
		<dc:creator>lexa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[denied]]></category>
		<category><![CDATA[directory listing]]></category>
		<category><![CDATA[HTTP Header]]></category>
		<category><![CDATA[protection]]></category>

		<guid isPermaLink="false">http://www.techphp.org/?p=164</guid>
		<description><![CDATA[Often you have to protect a directory or website, so that not everybody has access to it. Besides, there are several possibilities as for example using .htaccess, but the best and quickest method as it seems to me is with PHP code.
You create a file with the name login.php, with following contents:

&#60;?php

$user = &#34;test&#34;;
$pw = [...]]]></description>
			<content:encoded><![CDATA[<p>Often you have to protect a directory or website, so that not everybody has access to it. Besides, there are several possibilities as for example using .htaccess, but the best and quickest method as it seems to me is with PHP code.</p>
<p>You create a file with the name login.php, with following contents:</p>
<pre class="brush: php;">
&lt;?php

$user = &quot;test&quot;;
$pw = &quot;12345&quot;;

function authenticate () {
  Header(&quot;WWW-authenticate: basic realm=\&quot;Restricted Area\&quot;&quot;);
  Header(&quot;HTTP/1.0 401 Unauthorized&quot;);
  echo &quot;Restricted Area!&quot;;
  exit;
}

if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] != $user || $_SERVER['PHP_AUTH_PW'] != $pw) {
  authenticate();
}
?&gt;
</pre>
<p>Then you have to include the login.php to the top of index.php:</p>
<pre class="brush: php;">
&lt;?php
  include (&quot;login.php&quot;);
?&gt;
</pre>
<p>Thats all! It is important that there are no other index.* files in the directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/denied-access-with-pure-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Joomla 1.5.9 and Community Builder 1.2 in German</title>
		<link>http://www.techphp.org/general/problems-with-joomla-159-and-community-builder-12-in-german/</link>
		<comments>http://www.techphp.org/general/problems-with-joomla-159-and-community-builder-12-in-german/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 07:36:04 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[cb]]></category>
		<category><![CDATA[community builder]]></category>
		<category><![CDATA[german]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://techphp.net/?p=121</guid>
		<description><![CDATA[ I&#8217;was facing problems with installation of  Joomla 1.5.9 and Community Builder 1.2 in German. For both the language packs exist, but these does not seem to work properly. I installed the (old) Joomla German Language pack and it worked for me. After the installation of Community Builder (CB) I recognised, that it should be [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 10px; float: left;" title="umlaut" src="http://www.techphp.org/wp-content/uploads/2009/01/umlaut.jpg" alt="umlaut" width="107" height="110" /> I&#8217;was facing problems with installation of  <a href="http://www.joomla.org/">Joomla 1.5.9</a> and <a href="http://www.joomlapolis.com/">Community Builder</a> 1.2 in German. For both the language packs exist, but these does not seem to work properly. I installed the (old) Joomla German Language pack and it worked for me. After the installation of Community Builder (CB) I recognised, that it should be translated also. After the installation of additional language I faced the problems described <a href="http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,81537/catid,69/limit,6/limitstart,6/">here</a>. Even after the installation instructions provided in that site my CB remains English. (CB is completely localized and the template variables are replaced by the words from the localization file).</p>
<p>See comments for the resolution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/problems-with-joomla-159-and-community-builder-12-in-german/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Blog HTML Validity and plug-ins</title>
		<link>http://www.techphp.org/general/html/blog-html-validity-and-plugins/</link>
		<comments>http://www.techphp.org/general/html/blog-html-validity-and-plugins/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 01:34:20 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[html validity]]></category>
		<category><![CDATA[page rank]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[syntax highlighter]]></category>
		<category><![CDATA[validator]]></category>
		<category><![CDATA[w3C]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://techphp.net/?p=113</guid>
		<description><![CDATA[Maintaining the Wordpress blog valid to the declared HTML standard seems to be not very easy if many plug-ins are used. In fact, every plug-in contributes a piece of code to the page and sometimes breaks the HTML validity. Since plug-ins can be upgraded by a simple click in the dashboard, an error can be [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 3px 10px; float:left;" title="invalid-xhtml10" src="http://www.techphp.org/wp-content/uploads/2008/12/invalid-xhtml10.png" alt="invalid-xhtml10" width="88" height="31" />Maintaining the <a href="http://techphp.net/wp/" target="_self">Wordpress blog</a> valid to the declared HTML standard seems to be not very easy if many <a href="http://techphp.net/wp/plugins/" target="_self">plug-ins</a> are used. In fact, every plug-in contributes a piece of code to the page and sometimes breaks the HTML validity. Since plug-ins can be upgraded by a simple click in the dashboard, an error can be simply delivered and installed to your Blog. Thus, a re-check in a HML Validator of your choice is desireable after every new plugin upgrade. I prefer to use <a href="http://validator.w3.org/">W3C Validator</a> for checks.</p>
<p>Apparently, I realized running my monthly <a href="http://www.seitwert.de/" target="_blank">seitwert</a>-check, that the one of my pages got errors because of one of the plug-in installed. This time it was <a href="http://wordpress.org/extend/plugins/google-syntax-highlighter">Google Syntax Highlighter for WordPress</a> by <a href="http://www.peterryan.net/">Peter Ryan</a>. Instead of using the <code>type="text/javascript"</code> inside of <code>script</code>-tag, the <code>class="javascript"</code> is used. The bug could be easily fixed locally by replacing the corresponding pieces of code. Peter seems to be not interested anymore in maintaining the plug-in, since there is a long list of comments claiming and voting for the bug.</p>
<p>Especially, if you think of the fact, that the usage of invalid (X)HTML effects your page rank by search engines and other directories in a very negative way, such hidden standards violations should be avoided.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/html/blog-html-validity-and-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress 2.7 released</title>
		<link>http://www.techphp.org/general/wordpress-27-released/</link>
		<comments>http://www.techphp.org/general/wordpress-27-released/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 22:18:20 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[2.7]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[coltrane]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://techphp.net/?p=35</guid>
		<description><![CDATA[Several days ago, the new version of Wordpress &#8220;Coltrane&#8221; has been released. Because this time it is a major release, I spend some time to introduce the new features. Regarding to the Wordpress Blog: &#8220;&#8230;the first thing you’ll notice about 2.7 is its new interface. From the top down, we’ve listened to your feedback and [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 10px; float: left;" title="Wordpress Button" src="http://s.wordpress.org/about/images/buttons/smbutton-blue.png" alt="Wordpress Button" width="58" height="69" />Several days ago, the new version of Wordpress &#8220;Coltrane&#8221; has been released. Because this time it is a major release, I spend some time to introduce the new features. Regarding to the <a href="http://wordpress.org/development/2008/12/coltrane/" target="_blank">Wordpress Blog</a>: &#8220;&#8230;the first thing you’ll notice about 2.7 is its new interface. From the top down, we’ve listened to your feedback and thought deeply about the design and the result is a WordPress that’s just plain faster. Nearly every task you do on your blog will <strong>take fewer clicks and be faster</strong> in 2.7 than it did in a previous version. (<a href="http://wordpress.org/download/">Download it now</a>, or read on for more.)&#8230;&#8221;</p>
<h3>Dashboard</h3>
<p><img style="margin-left: 10px; float: right;" title="wp27dashboard" src="http://www.techphp.org/wp-content/uploads/2008/12/wp27dashboard.png" alt="wp27dashboard" width="154" height="421" />The main improvement of the new version is the complete redesign of the dashboard. The structure of it becomes more convenient and clear (especially in contrast to the old versions like 2.3). The new vertical menu bar on the left is separated in three parts: dashboard anchor, authoring actions and settings. classification eases the usage, especially for the authors and editors.</p>
<h4>Authoring actions</h4>
<p>The authoring actions have a similar classification as in last versions: you will find actions for working with posts, media, links, pages and comments. The corresponding pages has been completely redesigned and use prety much AJAX technology. In the media library, the new items can be uploaded to the library, that allows uploading of items not related to the posts or pages.</p>
<h4>Settings</h4>
<p>The settings control panel was also a subject of reconstruction. The most important features are: support of web installation of plug-ins (finally, no additional file system access to the server is required), automatic wordpress upgrade (making the InstantUpgrade plug-in absolete).</p>
<h3>Upgrade</h3>
<p>The upgrade seems to be running without any problems. As usual by major releases you need to run the DB upgrade using a built-in script. It worked fine for this page.</p>
<h3>Conclusion</h3>
<p>As a conclusion, I recommend the upgrade to the new version. The promise made by the developers in their blog is fulfilled and the blogging systems really operates quicker.  The dashboard redesign seems to be adequate and the features like online-plug-in installation and built-in web update are nice. If you use <a href="http://gears.google.com/" target="_blank">Google Gears</a>, you can enable caching of most static parts and make the blog run very quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/wordpress-27-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Browser detection in PHP</title>
		<link>http://www.techphp.org/general/browser-detection-in-php/</link>
		<comments>http://www.techphp.org/general/browser-detection-in-php/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 21:32:10 +0000</pubDate>
		<dc:creator>lexa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[msie]]></category>
		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://techphp.net/?p=25</guid>
		<description><![CDATA[It was short time ago. I was sitting in my room and thinking about browser-problems in this great and sick world. Then I went to the kitchen to make a tea, but made a coffee, because I was thinking about another things. Just like the programmers of the browsers, they wanted to make a best [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 10px; float: right;" title="browsers" src="http://www.techphp.org/wp-content/uploads/2008/12/browsers.png" alt="browsers" width="270" height="180" />It was short time ago. I was sitting in my room and thinking about browser-problems in this great and sick world. Then I went to the kitchen to make a tea, but made a coffee, because I was thinking about another things. Just like the programmers of the browsers, they wanted to make a best browser ever, but they failed.</p>
<p>So, now about our problem. We want make our application working in all browsers, because it&#8217;s good to make it work everywhere. So we have to aks the user agent (basically the client program, not the agent Smith from Matrix), what browser are you using? And we want make it so flexible, that we can ask him this every time. For this purpose we introduce a function:</p>
<pre class="brush: php;">
function getBrowser()
{
  $ua = $_SERVER['HTTP_USER_AGENT']
  if (strstr($ua,'Opera')) {  // Opera
    $browser = ereg_replace(&quot;.+\(.+\) (Opera |v){0,1}([0-9,\.]+)[^0-9]*&quot;,&quot;Opera\\2&quot;,$ua);
    if(ereg('^Opera/.*',$ua)) {
      $browser = ereg_replace(&quot;Opera/([0-9,\.]+).*&quot;,&quot;Opera \\1&quot;,$ua);
    }
  } elseif (strstr($ua,'MSIE')) { // MSIE
    $browser=ereg_replace(&quot;.+\(.+MSIE ([0-9,\.]+).+&quot;, &quot;Internet Explorer \\1&quot;,$ua);
  } elseif (strstr($ua,'Firefox')) { // Firefox
    $browser=ereg_replace(&quot;.+\(.+rv:.+\).+Firefox/(.*)&quot;, &quot;Firefox \\1&quot;, $ua);
  } elseif (strstr($ua,'Mozilla')) {  //  Mozilla
    $browser=ereg_replace(&quot;.+\(.+rv:([0-9,\.]+).+&quot;,&quot;Mozilla \\1&quot;,$ua);
  } else {  // None of them.
    $browser=$ua;
  }
  return $browser;
}
</pre>
<p>If we want our PHP script to show us the browser, we write:</p>
<pre class="brush: php;">
echo(getBrowser());
</pre>
<p>Now we can see, what kind of browser is used and use it in our aplication:</p>
<pre class="brush: php;">
if (getBrowser() == 'Internet Explorer 6.0') {
echo (&quot;Please install another Browser&quot;);
}
</pre>
<p>Thats it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/browser-detection-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Three, Two, One, Launch</title>
		<link>http://www.techphp.org/general/three-two-one-launch/</link>
		<comments>http://www.techphp.org/general/three-two-one-launch/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 07:34:21 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[DokuWiki]]></category>
		<category><![CDATA[dw]]></category>
		<category><![CDATA[launch]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://techphp.net/?p=24</guid>
		<description><![CDATA[Finally, after several weeks of delay, the TechPHP.net is launched. The journal focuses on general web-technology-related topics and serves as a homesite for multiple web resources. At the current stage, those web resources are:

Wordpress &#8211; a popular web publishing platform for which several plugins and themes developed by TechPHP are hosted.
DokuWiki &#8211; an easy-to install [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="margin: 10px; float: right;" src="http://www.nasa.gov/images/content/152545main_Launch.-m.jpg" alt="Launch" width="165" height="109" />Finally, after several weeks of delay, the <a href="http://techphp.net/">TechPHP.net</a> is launched. The journal focuses on general web-technology-related topics and serves as a homesite for multiple web resources. At the current stage, those web resources are:</p>
<ul>
<li><a href="http://techphp.net/wp/">Wordpress</a> &#8211; a popular web publishing platform for which several plugins and themes developed by TechPHP are hosted.</li>
<li><a href="http://techphp.net/dw/">DokuWiki</a> &#8211; an easy-to install wiki system, often used as a knowledge base for which different extensions and visualization plugins are hosted.</li>
</ul>
<p>In future, several other web topics like CMSs or shop systems probably bocome a subject of dicussion, but in the current point of time we focus on publishing of the already created resources.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/three-two-one-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awakening</title>
		<link>http://www.techphp.org/general/awakening/</link>
		<comments>http://www.techphp.org/general/awakening/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 20:13:09 +0000</pubDate>
		<dc:creator>shuron</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[awakening]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://techphp.net/?p=9</guid>
		<description><![CDATA[As you may notified, some weeks are past since my last post    Unfortunately, I didn&#8217;t find any time for blogging or doing much with Wordpress or Web at all. It&#8217;s not Simon&#8217;s fault, he patiently waited for my &#8220;awakening&#8221;. At that time he had built some Plug-Ins and some Templates for Worpdress and [...]]]></description>
			<content:encoded><![CDATA[<p>As you may notified, some weeks are past since my last post <img src='http://www.techphp.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Unfortunately, I didn&#8217;t find any time for blogging or doing much with Wordpress or Web at all. It&#8217;s not Simon&#8217;s fault, he patiently waited for my &#8220;awakening&#8221;. At that time he had built some Plug-Ins and some Templates for Worpdress and there are also some interesting issues which need to be written down.</p>
<p>Also I&#8217;m aroused and have re-factored my plug-in, which I plan to migrate to TechPHP.</p>
<p>So I promise we bring some useful content next days!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/awakening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello World</title>
		<link>http://www.techphp.org/general/hello-world-2/</link>
		<comments>http://www.techphp.org/general/hello-world-2/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 18:55:53 +0000</pubDate>
		<dc:creator>shuron</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[web technology]]></category>

		<guid isPermaLink="false">http://techphp.net/?p=8</guid>
		<description><![CDATA[I&#8217;m very pleasured to announce the birth of TechPHP &#8211; modern web technology journal!
Let me begin by presenting some topics we are supposed to cover here in the next time.
Topics
As the name of the journal tells us, PHP will be the main topic of this page. And yes it will be, but we are not [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m very pleasured to announce the birth of <a href="http://techphp.net">TechPHP</a> &#8211; modern web technology journal!</p>
<p>Let me begin by presenting some topics we are supposed to cover here in the next time.</p>
<h3>Topics</h3>
<p>As the name of the journal tells us, PHP will be the main topic of this page. And yes it will be, but we are not restricted to it. E.g. we plan to cover topics of client (or browser side) development, like introducing some javascript frameworks and so on.</p>
<p>However let me call some definite topics, we will cover the very next time.</p>
<ul>
<li>Wordpress Plugins (Own and others)</li>
<li>Wordpress Themes (Own)</li>
<li>DokuWiki Plugins(Own)</li>
<li>DokuWiki Themes (Own)</li>
</ul>
<h3>Time planing and the first steps</h3>
<p>At first we will tune this site and bring it to nice  and high quality Member of the Internet. Further we want to to build up some community. There are many possibilities how people interested in web development can contribute to this project.</p>
<p>Due to the site is still in development phase we are very thankful for your feedback and bug-reports.</p>
<h3>Admins Contributors</h3>
<p>TechPHP is an joint ownership project.  We are <a href="http://holbreich.de" title="Alexander Holbreich Personal Blog">Shuron</a> and <a href="http://simon.zambrovski.org/" title="Simon's Personal Blog">Simon</a> admins and Contributors of this project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techphp.org/general/hello-world-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
