<?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>testx &#187; Technisch</title>
	<atom:link href="http://www.testx.ch/category/technisch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.testx.ch</link>
	<description></description>
	<lastBuildDate>Wed, 02 Nov 2011 17:54:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Nützliche iPhone Apps</title>
		<link>http://www.testx.ch/2010/08/nutzliche-iphone-apps/</link>
		<comments>http://www.testx.ch/2010/08/nutzliche-iphone-apps/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 23:31:58 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Erfahrungsberichte]]></category>
		<category><![CDATA[Alarm Clock]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[Echofon]]></category>
		<category><![CDATA[Evernote]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Todo]]></category>
		<category><![CDATA[Twitter Client]]></category>
		<category><![CDATA[Wecker]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=784</guid>
		<description><![CDATA[Ich bin seit einem halben Jahr Besitzer eines iPhone 3GS und habe in dieser Zeit einige Apps durchprobiert. Deshalb publiziere ich hier einige meiner persönlichen Erfahrungen mit den verschiedenen Apps. Die meisten davon sind ziemlich nützlich. Es gibt jedoch durchaus auch Apps, die nicht besonders stabil sind oder den Erwartungen nicht entsprechen. Todo Wie der [...]]]></description>
			<content:encoded><![CDATA[<p>Ich bin seit einem halben Jahr Besitzer eines iPhone 3GS und habe in dieser Zeit einige Apps durchprobiert. Deshalb publiziere ich hier einige meiner persönlichen Erfahrungen mit den verschiedenen Apps. Die meisten davon sind ziemlich nützlich. Es gibt jedoch durchaus auch Apps, die nicht besonders stabil sind oder den Erwartungen nicht entsprechen.</p>
<h2>Todo</h2>
<p>Wie der Name schon sagt ist diese App dazu da, Aufgaben zu verwalten. Das macht diese App auch ziemlich gut. Wenn man die App aufstartet erhält man als erstes eine Übersicht über alle Aufgaben, welche man noch zu erledigen hat. Die App bietet die Möglichkeit, einem über anstehende Aufgaben über Push Notifications zu informieren. Ich selber habe jedoch einmal erlebt, dass ich eine Push Notification gekriegt habe, die zu keiner Aufgabe gehörte und nicht von mir stammte (Das ist nur einmal vorgekommen). Zudem bietet die App verschiedene Aufgabentypen an. So kann man z.B. direkt einen Anruf als Aufgabe eingeben, welchen man dann auch direkt aus der App tätigen kann. Todo bietet jedoch auch an, ganze Projekte zu erstellen unter welchen man wiederum Aufgaben hinzufügen kann. Wer möchte kann die Aufgabendaten auch mit anderen Aufgabendiensten synchronisieren. Die App bietet eine ganze Reihe an verschiedenen Einstellungsmöglichkeiten durch die man die App anpassen kann.</p>
<p><img class="ngg-none" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto-1.png" alt="foto-1" width="224" height="336" /> <img class="ngg-none" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto-3.png" alt="foto-3" width="224" height="336" /></p>
<h2>Echofon</h2>
<p>Diese App dient mir als Twitter Client. Ich hatte ziemlich lange TweetDeck im Einsatz und bin auf Echofon umgestiegen, weil es in meinen Augen eine schlankere und perfomantere App ist. Echofon bietet alles was meiner Meinung nach ein Twitter Client bieten sollte. Die App zeigt beim Start die Timeline an. Gekürzte Links werden in den meisten Fällen zuverlässig ganz angezeigt (Sobald man lange darauf bleibt). Wie bereits erwähnt ist die App sehr schnell und ziemlich leicht zum bedienen. Auch diese App bietet zahlreiche Einstellungsmöglichkeiten und Push Notifications. Zudem ist es möglich eine Desktop Version von Echofon zu benutzen, bei der der Status der Tweets synchronisiert wird.</p>
<p><img class="ngg-none" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto-2_0.png" alt="foto-2_0" width="224" height="336" /> <img class="ngg-none" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto-5_0.png" alt="foto-5_0" width="224" height="336" /></p>
<h2>Evernote</h2>
<p>Diese App dient dazu, Notizen in verschiedenen Formen aufzuzeichnen und wiederzugeben. Dazu werden alle Notizen auf Evernote gespeichert. Der Vorteil besteht darin, dass man unter anderem auch über den Webbrowser Zugriff auf seine Notizen hat. Wenn die App gestartet wird hat man als erstes die Auswahl, was für eine Notiz man erstellen will. Es sehen &#8220;Text&#8221;, &#8220;Schnappschuss&#8221;, &#8220;Album&#8221; und &#8220;Sprache&#8221; zur Auswahl. Wenn man sich für eine Methode entschieden hat, kann man die Notiz aufzeichnen. Wenn man es wünscht, kann Evernote gleich beim erstellen der Notiz die aktuelle Position aufzeichnen, welche man später abrufen kann. Gemachte Notizen kann man bequem wieder abrufen. Diese App bietet nicht ganz so viele Einstellungsmöglichkeiten, was bei dieser App aber auch nicht unbedingt nötig ist.</p>
<p><img class="ngg-none" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto-3_4.png" alt="foto-3_4" width="224" height="336" /> <img class="ngg-none" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto.png" alt="foto" width="224" height="336" /></p>
<h2>Alarm Clock</h2>
<p>Diese App bietet die Möglichkeit, sich am Morgen mit der eigenen Musik wecken zu lassen. Man kann verschiedene Alarme definieren, welche man jeweils einzeln konfigurieren kann. So lassen sich z.B. für jeden Alarm verschiedene Musikstücke auswählen. Die App bietet eine Menge an verschiedener Einstellungsmöglichkeiten. Die Funktionen welche die App bietet funktionieren alle sehr gut. Die einzige Einschränkung die ich feststellen konnte (Technischer Grund) ist das man die App im Vordergrund laufen lassen muss um die eigene Musik abspielen zu lassen. Wenn sie nicht im Vordergrund läuft (Multitasking), spielt die App nur einen einfachen Weckton ab.</p>
<p><img src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto-3_5.png" alt="foto-3_5" width="224" height="336" /> <img class="ngg-none" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/iphone-apps/foto-5_5.png" alt="foto-5_5" width="224" height="336" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2010/08/nutzliche-iphone-apps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Login mit AJAX</title>
		<link>http://www.testx.ch/2010/01/php-login-mit-ajax/</link>
		<comments>http://www.testx.ch/2010/01/php-login-mit-ajax/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 13:26:43 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[php login]]></category>
		<category><![CDATA[php tutorial]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=760</guid>
		<description><![CDATA[Ich habe bereits in diesem Artikel erklärt, wie man ein PHP Login mit einer MySQL Datenbank erstellt. Nun möchte ich in diesem Artikel erklären, wie man ein PHP Login mit einer schöneren Benutzeroberfläche programmiert. Der Vorteil besteht darin, dass die Seite nicht neu geladen wird, wenn man sich einloggt. Zusätzlich werden wir das Passwort mit [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe bereits in <a href="http://www.testx.ch/2009/05/einfaches-php-login/">diesem</a> Artikel erklärt, wie man ein PHP Login mit einer MySQL Datenbank erstellt. Nun möchte ich in diesem Artikel erklären, wie man ein PHP Login mit einer schöneren Benutzeroberfläche programmiert. Der Vorteil besteht darin, dass die Seite nicht neu geladen wird, wenn man sich einloggt. Zusätzlich werden wir das Passwort mit md5 verschlüsseln, um es nicht einfach so lesbar zu machen.</p>
<p>Für dieses Tutorial hier, brauche ich viele Dinge aus dem, welches ich oben verlinkt habe. Deshalb ist es von Vorteil, wenn man sich das Tutorial bereits durchgelesen hat, bevor man mit diesem hier beginnt.</p>
<p>Als erstes solltet ihr alle Dateien aus dem anderen Tutorial erstellen und testen, ob das ganze so funktioniert. Wenn ihr das getan habt, beginnen wir mit der Verschlüsselung der Daten. Man muss sich das so vorstellen, dass beim Eintragen in der Datenbank nicht das Passwort in Klartext abgelegt wird, sondern nur der Hashwert. Wenn sich nun jemand einloggen will, wird das Passwort zuerst auch zu einem md5 Hash verarbeitet und diese beiden Werte dann verglichen.</p>
<p>Dazu müssen wir in der Login.php folgendes verändern:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>?php
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'connect.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$username</span><span style="color: #339933;">=</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$password</span><span style="color: #339933;">=</span><span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$query</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT username, password FROM users WHERE username ='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$username</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;konnte nicht selecten!!!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$result</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Username oder Passwort falsch!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Username oder Passwort falsch!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">session_register</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Du bist erfolgreich registriert!&quot;</span><span style="color: #339933;">;</span>
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></div></div>

<p>Dadurch wird das empfangene Passwort direkt als Hash in der Variable gespeichert. Das dies funktionieren kann, muss das Passwort auch als md5 Hash in der Datenbank vorhanden sein. Da ich hier keine Registrierungsfunktion einbaue, muss man aus dem Passwort manuell den md5 Hash generieren. Im Web gibt es zahlreiche Websiten, die das anbieten. Falls man so etwas selber machen will, reicht dieser kleine PHP Code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>?php <span style="color: #b1b100;">echo</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Dein Passwort'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></div></div>

<p>Als nächstes müssen wir die loginform.php anpassen. Zuerst benötigen wir aber <a href="http://jquery.com/">JQuery</a>. Wenn wir es heruntergeladen haben, verschieben wir die Datei ins gleiche Verzeichniss wie die anderen Dateien und verändern die loginform.php folgendermassen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;!</span>DOCTYPE HTML <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #0000ff;">&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>html<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>head<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>title<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>Einfaches Loginscript <span style="color: #339933;">-</span>Tutorial<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>title<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jquery-1.3.2.min.js&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;/</span>script<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>ready<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#submit&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>click<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
$<span style="color: #339933;">.</span>post<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;login.php&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>username<span style="color: #339933;">:</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#username&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>val<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> password<span style="color: #339933;">:</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#password&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>val<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#userdata&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>remove<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#result&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>append<span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>script<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>head<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>body<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;result&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>div<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;userdata&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
Deine Benutzerdaten<span style="color: #339933;">:&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
Benutzername<span style="color: #339933;">:</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;35&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;username&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
Passwort<span style="color: #339933;">:</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;35&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Login&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>div<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>body<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>html<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></div></div>

<p>Nun sollte man alle Dateien aus dem anderen Tutorial erstellt haben, die Dateien wie hier beschrieben anpassen  und die MySQL Einträge und Konfiguration vornehmen. Wenn das alles getan ist, kann man die Daten auf einen Webserver hochladen und das ganze Testen. Wenn ihr auf Login klickt, sollte die Loginmaske verschwinden und die Erfolgs-, oder Fehlermeldung erscheinen.</p>
<p>Falls ihr einen Fehler entdeckt oder Fragen habt, schreibt doch einfach einen Kommentar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2010/01/php-login-mit-ajax/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HTML mit CSS formatieren</title>
		<link>http://www.testx.ch/2009/10/html-mit-css-formatieren/</link>
		<comments>http://www.testx.ch/2009/10/html-mit-css-formatieren/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 18:17:07 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS Tutorial]]></category>
		<category><![CDATA[HTML formatieren]]></category>
		<category><![CDATA[HTML Tutorial]]></category>
		<category><![CDATA[Websites gestalten]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=734</guid>
		<description><![CDATA[Auf modernen Websites trifft man normalerweise keine Frames mehr an. Stattdessen findet man häufig Seiten, die mit CSS formatiert wurden. Ich möchte in diesem Tutorial deshalb erläutern, wie man das einfach realisieren kann. Dabei sollten schon Grundkenntnisse in HTML und CSS vorhanden sein. Um eine Seitenstruktur zu erreichen, arbeiten wir mit div Containern. Diese Container [...]]]></description>
			<content:encoded><![CDATA[<p>Auf modernen Websites trifft man normalerweise keine Frames mehr an. Stattdessen findet man häufig Seiten, die mit CSS formatiert wurden. Ich möchte in diesem Tutorial deshalb erläutern, wie man das einfach realisieren kann. Dabei sollten schon Grundkenntnisse in HTML und CSS vorhanden sein.</p>
<p>Um eine Seitenstruktur zu erreichen, arbeiten wir mit div Containern. Diese Container kann man dann mit CSS an die bedürfnisse anpassen. Also erstellen wir zunächst eine neue Datei namens <em>index.html</em>. Dort fügen wir zuerst den Header ein.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//DTD//W3C XHTML 1.0 Strict//EN&quot;</span>
<span style="color: #00bbdd;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>HTML mit CSS formatieren<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span></pre></div></div>

<p>Die Zeile über dem <em>&lt;/head&gt;</em> bewirkt, dass eine externe CSS Datei mit dem Namen <em>style.css</em> in das Dokument eingebunden wird. Als nächstes kommen wir nun zu den entscheidenden Containern.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;all&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidebar&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>Nun haben wir die Container erstellt, die wir mit CSS ansprechen können und in die später der jeweilige Inhalt kommt. Nun sind wir schon mit der <em>index.html</em> fertig und fangen mit der <em>style.css</em> an.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#all</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#header</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#005B9A</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#sidebar</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#0191C8</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#content</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#74C2E1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#footer</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#8C8984</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Damit wäre die <em>style.css</em> fertig und man kann einmal die <em>index.html</em> öffnen, um sich das Ergebniss anzuschauen. Durch die verschiedenen Farben sehen wir, wo sich die jeweiligen Container befinden. Mit <em>float:right </em>bewirken wir, dass sich der Container rechts befindet. Mit <em>clear:both</em>, dass dieser Container unter den anderen platziert wird. Jetzt ist man mit der Grundformatierung fertig.</p>
<p>Ich hoffe ihr habt die Funktionsweise verstanden und seit nun in der Lage, simple Websites mit CSS zu formatieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/10/html-mit-css-formatieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8 Probleme mit Pingbacks</title>
		<link>http://www.testx.ch/2009/06/wordpress-2-8-probleme-mit-pingbacks/</link>
		<comments>http://www.testx.ch/2009/06/wordpress-2-8-probleme-mit-pingbacks/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 19:54:10 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Technisch]]></category>
		<category><![CDATA[pingback problem]]></category>
		<category><![CDATA[trackback problem]]></category>
		<category><![CDATA[wordpress 2.8 problem]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=543</guid>
		<description><![CDATA[In der neuen Wordpress Version gibt es ein Problem mit eingehenden Pings. Das Problem kann man jedoch relativ Simpel lösen. [...]]]></description>
			<content:encoded><![CDATA[<p>Wie auf &#8220;<a href="http://www.nicht-spurlos.de/wordpress/ping-timeout-wordpress-2-8/">Nicht spurlos</a>&#8221; berichtet wurde, gibt es in der neuen WordPress Version Probleme mit eingehenden Pings. Das liegt daran, das ein Timeout Wert zu niedrig ist. Auf der besagten Seite findet man auch eine kurze Anleitung, wie man dieses Problem beheben kann. Man sollte auch einmal testen, ob auf dem eigenen Blog Ping- und Trackbacks (ein- sowie ausgehende) funktionieren.</p>
<p>Funktionieren bei euch die Pingbacks und Trackbacks?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/06/wordpress-2-8-probleme-mit-pingbacks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8 ist da</title>
		<link>http://www.testx.ch/2009/06/wordpress-2-8-ist-da/</link>
		<comments>http://www.testx.ch/2009/06/wordpress-2-8-ist-da/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 17:04:25 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Technisch]]></category>
		<category><![CDATA[neue wordpress version]]></category>
		<category><![CDATA[wordpress 2.8]]></category>
		<category><![CDATA[wordpress update]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=539</guid>
		<description><![CDATA[Wie auf Blogtime bereits berichtet wurde, ist die neue Version von WordPress, nämlich WordPress 2.8 erschienen. Ich habe den Blog jetzt auf den neusten Stand gebracht und muss sagen, dass mir die Änderungen bis jetzt ziemlich gut gefallen. Wer seinen Blog auch updaten will, kann einmal auf wordpress.org vorbei schauen. Da kann man sich die [...]]]></description>
			<content:encoded><![CDATA[<p>Wie auf <a href="http://www.blogtime.ch/wordpress/wordpress-28/">Blogtime</a> bereits berichtet wurde, ist die neue Version von WordPress, nämlich WordPress 2.8 erschienen. Ich habe den Blog jetzt auf den neusten Stand gebracht und muss sagen, dass mir die Änderungen bis jetzt ziemlich gut gefallen.</p>
<p>Wer seinen Blog auch updaten will, kann einmal auf <a href="http://wordpress.org/">wordpress.org</a> vorbei schauen. Da kann man sich die neue Version herunterladen. Alternativ kann man, wenn man bereits eine relativ aktuelle WordPress Installation hat direkt über die eingebaute Funktion das Update durchführen lassen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/06/wordpress-2-8-ist-da/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Einfaches PHP Login</title>
		<link>http://www.testx.ch/2009/05/einfaches-php-login/</link>
		<comments>http://www.testx.ch/2009/05/einfaches-php-login/#comments</comments>
		<pubDate>Sat, 09 May 2009 21:30:43 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[loginscript tutorial]]></category>
		<category><![CDATA[php login]]></category>
		<category><![CDATA[php tutorial]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=519</guid>
		<description><![CDATA[Hallo Ich möchte euch zeigen, wie man mit PHP ein simples Loginscript mit MySQL erstellt. Ich setze voraus, dass ihr ein bisschen PHP und HTML könnt, da es sich sonst sehr in die Länge ziehen würde. Ausserdem übernehme ich keine Garantie und keine Haftung für die Scripte und ihre Sicherheit sowie Funktionsfähigkeit. Unser Script wird [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo</p>
<p>Ich möchte euch zeigen, wie man mit PHP ein simples Loginscript mit MySQL erstellt. Ich setze voraus, dass ihr ein bisschen PHP und HTML könnt, da es sich sonst sehr in die Länge ziehen würde.</p>
<p>Ausserdem übernehme ich keine Garantie und keine Haftung für die Scripte und ihre Sicherheit sowie Funktionsfähigkeit.</p>
<p>Unser Script wird sich in folgende Dateien aufteilen:</p>
<ul>
<li>login.php</li>
<li>loginform.php</li>
<li>checker.php</li>
<li>connect.php</li>
<li>config.php</li>
</ul>
<p>Fangen wir mit der login.php an. Sie soll die Daten von der loginform.php empfangen und überprüfen. Es empfängt die Daten, verbindet sich zur Datenbank, überprüft den Code auf Schadcode und vergleicht die Werte. Wenn sie ok sind, registriert es die Session.</p>
<h4>login.php</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'connect.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$username</span><span style="color: #339933;">=</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$password</span><span style="color: #339933;">=</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$query</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT username, password FROM users WHERE username ='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$username</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;konnte nicht selecten!!!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$result</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Username oder Passwort falsch!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'location:loginform.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Username oder Passwort falsch!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'location:loginform.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">session_register</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Du bist erfolgreich registriert!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Die loginform.php soll die Daten vom User entgegennehmen, also dort, wo man die Daten eingibt.</p>
<h4>loginform.php</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE HTML <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #0000ff;">&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>Einfaches Loginscript <span style="color: #339933;">-</span>Tutorial<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
Deine Benutzerdaten<span style="color: #339933;">:&lt;</span>br<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>form action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login.php&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> <span style="color: #339933;">&gt;</span>
Benutzername<span style="color: #339933;">:</span>
<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;username&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;35&quot;</span><span style="color: #339933;">&gt;&lt;</span>br<span style="color: #339933;">&gt;</span>
Passwort<span style="color: #339933;">:</span>
<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;35&quot;</span><span style="color: #339933;">&gt;&lt;</span>br<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Login&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Der checker.php soll auf jeder Seite überprüfen, ob der User bereits eingelogt ist. Wenn nicht, soll er ihn zum Login weiterleiten.</p>
<h4>checker.php</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">session_is_registered</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Du hast keinen Zutritt!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'location:loginform.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Die connect.php soll die Verbindung zur Datenbank vereinfachen, in dem sie die Funktion in eine Datei vereint, die jedes Script includen kann ohne den Befehl dauernd wiederholen zu müssen.</p>
<h4>connect.php</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'config.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$dbhost</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$dbuser</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$dbpassword</span>&quot;</span><span style="color: #009900;">&#41;</span> OR <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Konnte keine Verbindung aufbauen.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$dbdatenbank</span>&quot;</span><span style="color: #009900;">&#41;</span> OR <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Konnte keine Verbindung aufbauen.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Die config.php speichert alle Daten zur Datenbank verbindung ab.</p>
<h4>config.php</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$dbhost</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$dbuser</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$dbpassword</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;passwort&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$dbdatenbank</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Datenbankname&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Nun muss man in der config.php die Daten der MySQL Datenbank angeben. Dann kann man in der Datenbank eine neue Tabelle mit dem Namen users erstellen. In diese gibt man drei Felder ein: id, username und password. Die id stellt man auf Primary Key und auf Auto Increment.</p>
<p>Nun kann man zwei Werte eintragen und sich im loginform.php anmelden. Auf jede zu schützende Seite bindet man als erstes die checker.php ein.</p>
<p>Wenn man das Script ernsthaft verwenden will, muss man unbedingt noch mit einer Verschlüsselung der Daten arbeiten.</p>
<p>Falls es Probleme mit den Scripts gibt oder wenn ihr einen Fehler entdeckt, bitte ich euch einen Kommentar zu schreiben.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/05/einfaches-php-login/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Google richtig verwenden</title>
		<link>http://www.testx.ch/2009/05/google-richtig-verwenden/</link>
		<comments>http://www.testx.ch/2009/05/google-richtig-verwenden/#comments</comments>
		<pubDate>Fri, 08 May 2009 06:11:41 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[google funktionen]]></category>
		<category><![CDATA[google richtig suchen]]></category>
		<category><![CDATA[google richtig verwenden]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=513</guid>
		<description><![CDATA[Hallo Ich sehe immer wieder, dass sehr viele Leute nicht wissen, wie man das suchen mit Google deutlich vereinfachen kann. Dazu gibt es Zeichen, die man in den Suchbegriff einbinden kann, die Google sagen, wie die Ergebnisse anzuzeigen sind. Auch kann man so nähere Informationen zu einer Website oder den aktuellen Website Cache aufrufen. Folgende [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo</p>
<p>Ich sehe immer wieder, dass sehr viele Leute nicht wissen, wie man das suchen mit Google deutlich vereinfachen kann. Dazu gibt es Zeichen, die man in den Suchbegriff einbinden kann, die Google sagen, wie die Ergebnisse anzuzeigen sind. Auch kann man so nähere Informationen zu einer Website oder den aktuellen Website Cache aufrufen.</p>
<p>Folgende Befehle gibt es meines Wissens:</p>
<table style="text-align: left; height: 249px;" border="1" width="726">
<tbody>
<tr>
<th>Zeichen</th>
<th> Funktion</th>
<th> Beispiel</th>
</tr>
<tr>
<th> &#8220;</th>
<th> Der Text innerhalb, muss genau in der Reihenfolge vorkommen.</th>
<th> &#8220;testx freehoster&#8221;</th>
</tr>
<tr>
<th> +</th>
<th> Das nachfolgende Wort muss vorkommen.</th>
<th> +testx</th>
</tr>
<tr>
<th> -</th>
<th> Das folgende Wort darf nicht vorkommen.</th>
<th> -testx</th>
</tr>
<tr>
<th> *</th>
<th> Einen Platzhalter für einen beliebigen Wert</th>
<th> testx *</th>
</tr>
<tr>
<th> site:</th>
<th> Zeigt alle der URL indizierten Seiten an.</th>
<th> site:www.testx.ch</th>
</tr>
<tr>
<th> cache:</th>
<th> Zeigt den Cache der Seite an.</th>
<th> cache:www.testx.ch</th>
</tr>
<tr>
<th> link:</th>
<th> Zeigt Seiten an, die einen direkten Link auf die Seite haben.</th>
<th> link:www.testx.ch</th>
</tr>
</tbody>
</table>
<p>Man kann die einzelnen Befehle auch kombinieren.</p>
<p>Das ist nur eine kleine Liste der Befehle. Es gibt sicher noch mehr und wenn ihr meint, ihr wisst einen der noch dahin gehört, dann postet ihn doch bitte als Kommentar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/05/google-richtig-verwenden/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Neues Design für testX</title>
		<link>http://www.testx.ch/2009/05/neues-design-fur-testx/</link>
		<comments>http://www.testx.ch/2009/05/neues-design-fur-testx/#comments</comments>
		<pubDate>Thu, 07 May 2009 17:48:29 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Technisch]]></category>
		<category><![CDATA[design auf testx]]></category>
		<category><![CDATA[neues design]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=495</guid>
		<description><![CDATA[Ich habe dem kompletten Blog ein neues Design verpasst. Das neue ist weniger graulastig und sollte ein bisschen farbiger sein als das alte. Ich habe an einigen Stellen am Code rumgeschraubt. Deshalb kann es sein, dass es Fehler gibt, die ausgegeben werden. Solltet ihr so einen entdecken schreibt bitte eine Mail an die Adresse im [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full alignleft" src="http://dy8cq650okdxd.cloudfront.net/wp-content/gallery/testx/testx-button3.png" alt="testx-button3.png" width="81" height="81" /></p>
<p>Ich habe dem kompletten Blog ein neues Design verpasst. Das neue ist weniger graulastig und sollte ein bisschen farbiger sein als das alte. Ich habe an einigen Stellen am Code rumgeschraubt. Deshalb kann es sein, dass es Fehler gibt, die ausgegeben werden. Solltet ihr so einen entdecken schreibt bitte eine Mail an die Adresse im Impressum. Ich bitte euch auch, eure Meinung zum neuen Theme zu schreiben.</p>
<p>Der Name des Themes ist deCoder und es kommt von <a href="http://webdemar.com/wordpress/wordpress-theme-decoder-09/">hier</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/05/neues-design-fur-testx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Colorcombos</title>
		<link>http://www.testx.ch/2009/05/colorcombos/</link>
		<comments>http://www.testx.ch/2009/05/colorcombos/#comments</comments>
		<pubDate>Mon, 04 May 2009 17:19:36 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Technisch]]></category>
		<category><![CDATA[farben für webdesign]]></category>
		<category><![CDATA[farben vergleichen]]></category>
		<category><![CDATA[hex generator]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=472</guid>
		<description><![CDATA[Hallo Ich habe gerade nach HEX Werten für Farben gesucht, als ich über Colorcombos gestolpert bin. Die Seite bietet einem an, verschiedene Farben zu vergleichen und passende Kombinationen zu vergleichen. Man kann auch noch mehr Sachen machen, die ich auf die Schnelle nicht ausprobiert habe. Andere Seiten dieser Art gibt es auch noch. Man kann [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo</p>
<p>Ich habe gerade nach HEX Werten für Farben gesucht, als ich über<a href="http://www.colorcombos.com/"> Colorcombos</a> gestolpert bin. Die Seite bietet einem an, verschiedene Farben zu vergleichen und passende Kombinationen zu vergleichen. Man kann auch noch mehr Sachen machen, die ich auf die Schnelle nicht ausprobiert habe.</p>
<p>Andere Seiten dieser Art gibt es auch noch. Man kann ja einfach mal danach Suchen, dann findet man bestimmt was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/05/colorcombos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NoFollow Free</title>
		<link>http://www.testx.ch/2009/04/nofollow-free/</link>
		<comments>http://www.testx.ch/2009/04/nofollow-free/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 19:01:44 +0000</pubDate>
		<dc:creator>Fredi</dc:creator>
				<category><![CDATA[Technisch]]></category>
		<category><![CDATA[nofollow bei wordpress]]></category>
		<category><![CDATA[nofollow free plugin]]></category>
		<category><![CDATA[nofollow tag]]></category>
		<category><![CDATA[wordpress nofollow plugin]]></category>

		<guid isPermaLink="false">http://www.testx.ch/?p=455</guid>
		<description><![CDATA[Hallo Ich habe dank dieses Blog Eintrages gemerkt, dass bei meinen Kommentar standartmässig &#8220;nofollow&#8221; aktiviert war. Ich möchte mich bei allen entschuldigen, die darum keinen Kommentar bei mir geschrieben haben. Nun habe ich das Plugin NoFollow Free installiert. Es entfernt automatisch die &#8220;nofollow&#8221; Tags in den Kommentarlinks. Ich habe das Plugin nun folgendermassen eingestellt. Alle [...]]]></description>
			<content:encoded><![CDATA[<p>Hallo</p>
<p>Ich habe dank <a href="http://www.blogtime.ch/internet/nofollow-kampagne/" target="_blank">dieses</a> Blog Eintrages gemerkt, dass bei meinen Kommentar standartmässig &#8220;nofollow&#8221; aktiviert war. Ich möchte mich bei allen entschuldigen, die darum keinen Kommentar bei mir geschrieben haben.</p>
<p>Nun habe ich das Plugin <a href="http://www.michelem.org/wordpress-plugin-nofollow-free/" target="_blank">NoFollow Free</a> installiert. Es entfernt automatisch die &#8220;nofollow&#8221; Tags in den Kommentarlinks. Ich habe das Plugin nun folgendermassen eingestellt. Alle &#8220;nofollow&#8221; Tags in den Kommentaren werden entfernt. Ich bitte euch jedoch, kein Spam und nicht übermässig viel Links zu posten.</p>
<p>Ich kann das Plugin allen WordPress Usern nur wärmstens weiterempfehlen. Ich selber, habe nicht einmal gewusst, dass es in WordPress einfach aktiviert ist, ohne integrierte Möglichkeit ihn zu entfernen.</p>
<p>UPDATE: Ich habe gerade gemerkt, dass die bestehenden Kommentare (2 von Gästen, 0 von Usern) leider nicht vom nofollow tag befreit werden konnten. Aber alle zukünftigen Kommentare sind NoFollow frei.</p>
<p>UPDATE 2: Habe das Plugin anscheinend falsch konfiguriert. Jetzt sind auch schon bestehende Kommentare Nofollow frei.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.testx.ch/2009/04/nofollow-free/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Content Delivery Network via Amazon Web Services: CloudFront: dy8cq650okdxd.cloudfront.net

Served from: www.testx.ch @ 2012-02-04 23:00:50 -->
