<?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>SchmaRs World &#187; php</title>
	<atom:link href="http://www.schmars-world.de/index.php/category/scriptingcoding/php-scriptingcoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schmars-world.de</link>
	<description></description>
	<lastBuildDate>Mon, 03 Aug 2009 23:47:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>6 kleine PHP snippets</title>
		<link>http://www.schmars-world.de/index.php/6-php-snippets-2008-09-30/</link>
		<comments>http://www.schmars-world.de/index.php/6-php-snippets-2008-09-30/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 19:21:32 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Webentwicklung]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=69</guid>
		<description><![CDATA[Heute habe ich mal wieder einen Leckerbissen f&#252;r PHP-Neulinge, der Lead Codesupporter Raph (civa-co.de) von Eurostyle-Webmedia.de hat im Laufe der Zeit eine Reihe von PHP snippets ver&#246;ffentlicht. 6 von diesen snippets werde ich euch kurz in einer Link-Liste vorstellen.


Smiley Funktion
Die Smiley Funktion dient wie der Name schon vermuten l&#228;sst den ersetzten von Textsmileys durch grafische [...]]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich mal wieder einen Leckerbissen f&#252;r PHP-Neulinge, der <em>Lead Codesupporter <strong>Raph </strong></em>(<a href="http://www.civa-co.de" target="_blank">civa-co.de</a>) von Eurostyle-Webmedia.de hat im Laufe der Zeit eine Reihe von PHP snippets ver&#246;ffentlicht. 6 von diesen snippets werde ich euch kurz in einer Link-Liste vorstellen.<br />
<span id="more-69"></span></p>
<ol>
<li><a href="http://board.eurostyle-webmedia.de/wbb/programmierung/coding-showroom/php/4546-smiley-funktion/index.html" target="_blank">Smiley Funktion</a><br />
Die Smiley Funktion dient wie der Name schon vermuten l&#228;sst den ersetzten von Textsmileys durch grafische Smileys. Auf den Punkt gebracht ist diese Funktion eine <strong>Anwendungsm&#246;glichkeit </strong>der <strong>PHP-Funktion</strong> <em>str_replace();</em></li>
<li><a href="http://board.eurostyle-webmedia.de/wbb/programmierung/coding-showroom/php/4616-letzte-aktualisierung-einer-datei/index.html" target="_blank">Letzte Aktualisierung einer Datei</a><br />
Hier ein knapper, hin und wieder, n&#252;tzlicher 2 Zeiler. Die Funktion &#252;bernimmt den <strong>Dateinamen </strong>und gibt den<em> Zeitpunkt der letzten Aktualisierung</em> der Datei aus.</li>
<li><a href="http://board.eurostyle-webmedia.de/wbb/programmierung/coding-showroom/php/4642-server-online-offline-anzeige/index.html" target="_blank">Server Online/Offline Anzeige</a><br />
Bei der Server Online/Offline Anzeige handelt es sich um kleines, gut Dokumentiertes <strong>PHP snippet/Tutorial</strong>, welches den <em>Online/Offline Status</em> eines Servers durch das Herstellen einer Socket-Verbindung &#252;berpr&#252;ft.</li>
<li><a href="http://board.eurostyle-webmedia.de/wbb/programmierung/coding-showroom/php/4752-sprache/index.html" target="_blank">Sprache</a><br />
In diesem snippet wird &#252;ber die Servervariable <em>HTTP_ACCEPT_LANGUAGE</em> die bevorzugte Sprache des Users festgestellt. N&#252;tzlich w&#228;re dieser Code zum Beispiel in einem <strong>Templatesystem</strong>.</li>
<li><a href="http://board.eurostyle-webmedia.de/wbb/programmierung/coding-showroom/php/4750-referer/index.html" target="_blank">Referer</a><br />
Auch in diesem Minicode kommt wieder eine Servervariable zum Einsatz, mit welcher festgestellt wird <em>von welchem Script aus das Script aufgerufen wurde.</em></li>
<li><a href="http://board.eurostyle-webmedia.de/wbb/programmierung/coding-showroom/php/4764-vollj%C3%A4hrigkeit/index.html" target="_blank">Vollj&#228;hrigkeit</a><br />
Eine f&#252;r meinen Geschmack etwas kompliziert gehaltene <strong>Funktion zum &#220;berpr&#252;fen der Vollj&#228;hrigkeit </strong>eines Users. Die Funktion nimmt die Variablen: <em>$day, $month und $year</em> entgegen welche Beispielsweise aus einem Formular stammen k&#246;nnten und &#220;berpr&#252;ft durch einige <strong><em>Datumsfunktionen </em></strong>das Angegeben Alter.</li>
</ol>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=69&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/6-php-snippets-2008-09-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contentslider/Specialbox &#8211; Tutorial</title>
		<link>http://www.schmars-world.de/index.php/specialbox-video-tutorial-2008-08-25/</link>
		<comments>http://www.schmars-world.de/index.php/specialbox-video-tutorial-2008-08-25/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 00:50:56 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Videotutorial]]></category>
		<category><![CDATA[Webentwicklung]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=41</guid>
		<description><![CDATA[Da im Eurostyle-webmedia.de Forum in letzter Zeit viele Fragen zu den Thema kursieren wie man eine Specialsbox oder einen Contenslider realisiert, werde ich hier eine einfach gehaltene (mit AJAX realisierte) M&#246;glichkeit vorstellen und in Form eines Tutorials erkl&#228;ren. Als besonderes Schmankerl biete ich das Tutorial Multimedial an, einmal in Textform und einmal als Video.

 Link [...]]]></description>
			<content:encoded><![CDATA[<p>Da im Eurostyle-webmedia.de Forum in letzter Zeit viele Fragen zu den Thema kursieren wie man eine <em>Specialsbox </em>oder einen <em>Contenslider </em>realisiert, werde ich hier eine einfach gehaltene (mit <strong>AJAX </strong>realisierte) M&#246;glichkeit vorstellen und in Form eines Tutorials erkl&#228;ren. Als besonderes Schmankerl biete ich das <strong>Tutorial </strong>Multimedial an, einmal in <strong>Textform </strong>und einmal als <strong>Video</strong>.<br />
<span id="more-41"></span></p>
<p><center><img src="http://schmars-world.de/inhalt/tutorials/demos/images/Artikel_03.jpg" border="1" alt="Vorschau" /><br /><a href="http://schmars-world.de/inhalt/tutorials/demos/"> Link zum unseren Ziel <img src='http://www.schmars-world.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </a><br />
</center></p>
<h3>Am Anfang stand die HTML</h3>
<p>Beginnen wir mit den <strong>xHTML-code</strong> zu den Werde ich nicht viele Worte verlieren, da ich Grundkenntnisse in <strong>xHTML </strong>einfach mal vorrausetze.</p>
<pre class="html4strict"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html</span></a> xmlns=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">&lt;meta</span></a> <span style="color: #000066;">http-equiv</span>=<span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">&quot;text/html; charset=iso-8859-1&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">&quot;screen&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">language</span>=<span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;functions.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>SchmaRs-World: Contentslider/Specialbox - Tutorial Demo<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body</span></a> <span style="color: #000066;">onload</span>=<span style="color: #ff0000;">&quot;sndReq(1)&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Contentslider/Specialbox - Tutorial SchmaRs-World.de --&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;wrapper&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;title&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">&lt;h1&gt;</span></a></span>Contentslider/Specialbox - Tutorial <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h1&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;contentslider&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;clear:both;&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span></div></li></ol></pre>
<p>In den Zeilen 5 und 6 werden die Dateien geladen die f&#252;r die Realisierung n&#246;tig sind. Zum einen ist das die "<em>style.css</em>" welche die Angaben zum <strong>Layout </strong>enth&#228;lt. Zum anderen die "<em>functions.js</em>" welche das Herzst&#252;ck unseres Vorhabens darstellt. Das Bodytag ist mit einem <strong>onLoad </strong>Ereignis versehen um beim erstmaligen Laden der Seite die "<em>specialbox</em>" mit Inhalt zu versehen. Soviel nun zu den kleinen <strong>xHTML </strong>Fetzen.</p>
<h3>Javascript meets PHP</h3>
<p>Kommen wir nun zu den Javascriptcode welcher f&#252;r das Nachladen von Inhalten verantwortlich ist. Im Wesentlichen besteht der Code aus 3 Funktionen welche mit dem XMLHttpRequest-Objekt arbeiten bzw. es erzeugen. Alternativ k&#246;nnte man auch eine <strong>AJAX Bibliothek</strong> wie <a href="http://www.prototypejs.org/">Prototype</a> verwenden, ein Beispiel hierf&#252;r erkl&#228;re ich sp&#228;ter.</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Contentslider/Specialbox - Tutorial SchmaRs-World.de</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Erzeugen eines HttpRequestObjects samt Browserweiche fuer den IE.</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> genXMLHttpRequestObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #003366; font-weight: bold;">var</span> resObjekt = <span style="color: #003366; font-weight: bold;">null</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000066; font-weight: bold;">try</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">      resObjekt = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #66cc66;">&#40;</span>Error<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           resObjekt = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;MSXML2.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #66cc66;">&#40;</span>Error<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">               resObjekt = <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #66cc66;">&#40;</span>Error<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Erzeugung des XMLHttpRequest-Objekts ist nicht m&#246;glich&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000066; font-weight: bold;">return</span> resObjekt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Senden der Anfrage an den Server.</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> sndReq<span style="color: #66cc66;">&#40;</span>contentnr<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt = genXMLHttpRequestObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'get'</span>, <span style="color: #3366CC;">'content.php?content='</span>+contentnr,<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt.<span style="color: #006600;">onreadystatechange</span> = handleResponse;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt.<span style="color: #006600;">send</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Warten bis der Datentransfer beendet ist (readystate = 4) und Ausgabe des neuen Contents.</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> handleResponse<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>resObjekt.<span style="color: #006600;">readyState</span> == <span style="color: #CC0000;">4</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;contentslider&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span> = resObjekt.<span style="color: #006600;">responseText</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<h4>genXMLHttpRequestObject()</h4>
<p>In der ersten Funktion <em>"genXMLHttpRequestObject()"</em> wird eine <strong>Instanz </strong>von dem XMLHttpRequest-Objekt erzeugt, da die Art der Erzeugung je nach Browser unterschiedlich ist, bedarf es einer Browserweiche. Die Browserweiche ist in diesem Fall in form eines try-catch Konstrukts gel&#246;st. Das <strong>Javascript </strong>Statement try-catch erlaubt es <strong>Code </strong>auszuf&#252;hren und Werte w&#228;hrend der Ausf&#252;hrung zu pr&#252;fen und im gegebenen Fall einen Fehler abzufangen.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1532263722148161";
/* Content */
google_ad_slot = "4237103192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Im ersten try Block wird versucht das <strong>XMLHttpRequest-Objek</strong>t mit einer Funktion f&#252;r den IE zu instanzieren. Sollte dies fehlschlagen wird das Error aufgefangen und es wird versucht eine neuere Version des Objekts f&#252;r den IE zu instanzieren. Wenn dies wiederum fehlschl&#228;gt wird versucht das <strong>Objekt </strong>mit der f&#252;r den Gro&#223;teil der Browser g&#228;ngigsten Methode zu instanzieren. F&#252;r die unwahrscheinliche Annahme das auch dies Fehlschl&#228;gt wird eine Fehlermeldung in Form eines alert()´s ausgegeben.</p>
<h4>sndReq() & handleResponse()</h4>
<p>Die Funtion sndReq ist das eigentlich Herzst&#252;ck des <strong>Javascriptcodes </strong>sie ruft alle notwendigen Funktionen zum Asynchronen Datenaustausch auf. Die Funktion sendet die eigentliche Anfrage an den Server und verarbeitet auch dessen Antwort.</p>
<p>Die erste Zeile instanziert durch den Aufruf von <em>genXMLHttpRequestObject()</em> ein neues <em>XMLHttpRequest-Objekt</em> und speichert es in der Variable <em>resObjekt </em>ab. Die zweite Zeile &#246;ffnet die eigentliche Verbindung zum Server und sendet die Abfrage. Die Methode open des <em>XMLHttpRequest-Objekts</em> &#252;bernimmt in unserem Fall 3 Parameter, die <strong>Methode </strong>(get oder post), Die zu sendenen Daten und das Flag zur bestimmt ob der Datenverkehr <strong>Asynchron </strong>sein soll oder nicht, in unserem Fall true(asynchron). Die dritte Zeile(siehe zus&#228;tzlich die Funktion handleResponse() )  dient dazu sobald der Datenverkehr abgeschlossen ist (resObjekt.readyState == 4) die Daten in das <strong>xHTML Dokument</strong> einzubinden. Dies geschieht mit der Funktion getElementById. Die Funktion &#252;bernimmt einen String der <em>ID </em>des betreffenden Elements innerhalb des <strong>xHTML </strong>codes, f&#252;r unsere Zwecke w&#228;re dies "contentslider". Die Eigenschaft responseText des <em>XMLHttpRequest-Objekt</em> enth&#228;lt die empfangenden Daten.</p>
<p>So Das War’s mit dem Javascriptteil f&#252;rs erste, bei der Variante mit <em>Prototype </em>kommen wir noch einmal kurz auf <strong>Javascript </strong>zu sprechen.</p>
<h4>PHP kurz aber knackig</h4>
<p>Ich finde der <strong>PHP code</strong> erkl&#228;rt sich durch die Kommentare selbst, ich werde zu vorrangeschrittener Stunde die Ausf&#252;hrungen hierzu noch etwas spezifizieren. Was das <strong>Tutorialvideo </strong>betrifft, trifft selbiges zu.</p>
<pre class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #808080; font-style: italic;">// Contentslider/Specialbox - Tutorial SchmaRs-World.de</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #808080; font-style: italic;">// Konfiguration</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$imgpath</span> = <span style="color: #ff0000;">'images/specials'</span>; <span style="color: #808080; font-style: italic;">// Pfad zu den Bildern</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #0000ff;">$type</span> = <span style="color: #ff0000;">'gif'</span>; <span style="color: #808080; font-style: italic;">// Dateityp der Bilder</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">// Anwendungscode</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$toval</span> = <span style="color: #0000ff;">$_REQUEST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_numeric"><span style="color: #000066;">is_numeric</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$toval</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; <a href="http://www.php.net/file_exists"><span style="color: #000066;">file_exists</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$imgpath/$toval.$type&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">// pr&#252;fe ob der &#252;bergebene Wert numerisch ist und eine Datei mit dem Namen existiert</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #0000ff;">$img</span> = <span style="color: #0000ff;">$toval</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">else</span> <span style="color: #808080; font-style: italic;">// wenn nicht ist der Name 1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #0000ff;">$img</span> = <span style="color: #cc66cc;">1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$next</span> = <span style="color: #0000ff;">$img</span><span style="color: #cc66cc;">+1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$back</span> = <span style="color: #0000ff;">$img</span><span style="color: #cc66cc;">-1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;&lt;img src=<span style="color: #000099; font-weight: bold;">\&quot;</span>$imgpath/$img.$type<span style="color: #000099; font-weight: bold;">\&quot;</span> alt=$img /&gt;&lt;br/&gt;&lt;br/&gt;&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$img</span> &gt; <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #808080; font-style: italic;">//wenn der &#220;bergebene Wert gr&#246;&#223;er als eins ist werden 2 Navigationspunkte zur&#252;ckgeliefert</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;div id=<span style="color: #000099; font-weight: bold;">\&quot;</span>buttons<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>button<span style="color: #000099; font-weight: bold;">\&quot;</span> value=<span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;&lt; zur&amp;uuml;ck<span style="color: #000099; font-weight: bold;">\&quot;</span> onclick=<span style="color: #000099; font-weight: bold;">\&quot;</span>sndReq($back)<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span>btn_left<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>button<span style="color: #000099; font-weight: bold;">\&quot;</span> value=<span style="color: #000099; font-weight: bold;">\&quot;</span>vorw&amp;auml;rts &gt;&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span> onclick=<span style="color: #000099; font-weight: bold;">\&quot;</span>sndReq($next)<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span>btn_right<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&lt;/div&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #b1b100;">else</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;div id=<span style="color: #000099; font-weight: bold;">\&quot;</span>buttons<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>button<span style="color: #000099; font-weight: bold;">\&quot;</span> value=<span style="color: #000099; font-weight: bold;">\&quot;</span>vorw&amp;auml;rts &gt;&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span> onclick=<span style="color: #000099; font-weight: bold;">\&quot;</span>sndReq($next)<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span>btn_right<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&lt;/div&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">?&gt;</span></div></li></ol></pre>
<h4>Prototype f&#252;r die ganz fixen</h4>
<p>So hier ist noch die angesprochene alternative M&#246;glichkeit der realisierung mit Prototype. Die Realisierung ist mit der Bibliothek um einiges leichter das sie uns so gut wie alles an Arbeit mit Javascript abnimmt.</p>
<p>functions.js</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> sndReq<span style="color: #66cc66;">&#40;</span>contentnr<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #003366; font-weight: bold;">new</span> Ajax.<span style="color: #006600;">Updater</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'contentslider'</span>, <span style="color: #3366CC;">'/content.php?content='</span>+contentnr, <span style="color: #66cc66;">&#123;</span> method: <span style="color: #3366CC;">'get'</span> <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<p><a href="http://schmars-world.de/inhalt/tutorials/demos/"> Link zum unseren Ziel <img src='http://www.schmars-world.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </a></p>
<p><a href="http://www.schmars-world.de/wp-content/uploads/2008/08/pre.rar">Tutorial Dateien</a></p>
<p>Das Video kommt aus Reallife technischen Gr&#252;nden erst Morgen sorry an alle die es schon gerne h&#228;tten.</p>
<p>Soo das wars ersteinmal ich hoffe auf gutes gelingen. Sollte es Ungereimtheiten geben oder sollte ich einen Fehler oder etwas nicht ganz richtig erkl&#228;rt haben, was ich aber eher weniger glaube, oder wenn euch das Tutorial gef&#228;llt lasst einen Kommentar da.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=41&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/specialbox-video-tutorial-2008-08-25/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#220;ber 54 Top eBooks &#252;ber Informatik und das Web</title>
		<link>http://www.schmars-world.de/index.php/ueber-54-top-ebooks-ueber-informatik-und-das-web-2008-08-20/</link>
		<comments>http://www.schmars-world.de/index.php/ueber-54-top-ebooks-ueber-informatik-und-das-web-2008-08-20/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 20:24:53 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Buch]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Ebooks]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Webentwicklung]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=39</guid>
		<description><![CDATA[In den letzten Wochen und Monaten habe ich viele kostenlose eBooks(openbooks) in den weiten des Internets gefunden. Nicht alle die von au&#223;en wie Gold aussahen waren das aber die, die auf den 2ten Blick auch noch gut aussehen m&#246;chte ich euch nicht Vorenthalten.





Es wird garantiert nicht jeder mit jedem eBook etwas anfangen k&#246;nnen jedoch d&#252;rfte [...]]]></description>
			<content:encoded><![CDATA[<p>In den letzten Wochen und Monaten habe ich viele <strong>kostenlose eBooks(openbooks)</strong> in den weiten des Internets gefunden. Nicht alle die von au&#223;en wie Gold aussahen waren das aber die, die auf den 2ten Blick auch noch gut aussehen m&#246;chte ich euch nicht Vorenthalten.<br />
<span id="more-39"></span><br />
<script type="text/javascript"><!--
google_ad_client = "pub-1532263722148161";
/* Content */
google_ad_slot = "4237103192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Es wird garantiert nicht jeder mit jedem eBook etwas anfangen k&#246;nnen jedoch d&#252;rfte f&#252;r jeden Web interessierten etwas dabei sein.</p>
<p>Inzwischen sind schon Sage und Schreibe <strong>69 kostenlose Ebooks </strong>in der Liste, danke f&#252;r eure Anregungen!</p>
<h3>PHP</h3>
<ul>
<li><a href="http://www.php-kurs.com/downloads.php" target="_blank">PHP Kurs</a></li>
<li><a href="http://www.galileocomputing.de/openbook/php_pear/" target="_blank">Galileocomputing - PHP PEAR</a></li>
<li><a href="http://www.phpunit.de/pocket_guide/" target="_blank">PHPUnit - kurz &amp; gut</a></li>
<li><a href="http://www.php.net/get/php_manual_de.chm/from/de.php.net/mirror" target="_blank">Offizielle PHP Dokumentation</a></li>
<li><a href="http://www.informit.com/content/images/013147149X/downloads/013147149X_book.pdf" target="_blank">PHP Buch</a></li>
<li><a href="http://www.professionelle-softwareentwicklung-mit-php5.de/" target="_blank">professionelle Softwareentwicklung mit PHP5</a> Gut f&#252;r forgeschrittene geeignet.</li>
<li><a href="http://www.phpunit.de/pocket_guide/index.de.php" target="_blank"> PHP pocket guide</a></li>
<li><a href="http://www.phpxperts.net/SmartyCheatSheet.pdf" target="_blank"> Smarty Cheat Sheet</a>Sehr zu empfehlen.</li>
<li><a href="http://tut.php-q.net/" target="_blank">quakenet:#php Tutorial</a> Eines der, wenn nicht DAS beste Tutorial f&#252;r Anf&#228;nger, zum reinschnuppern optimal.</li>
<li><a href="http://www.schattenbaum.net/php/index.php" target="_blank">PHP f&#252;r Dich!</a></li>
<li><a href="http://www.selfphp.info/praxisbuch/index.php" target="_blank">PHP Praxisbuch</a></li>
<li><a href="http://www.selfphp.info/kochbuch/index.php" target="_blank">PHP Kochbuch</a></li>
</ul>
<h3>CSS</h3>
<ul>
<li><a href="http://www.csstutorial.net/ " target="_blank">csstutorial.net </a> (englisch)</li>
<li><a href="http://www.css4you.de" target="_blank">css4you.de </a> Sehr gute Referenz und Tutorialseite</li>
<li><a href="http://www.webdesign-referenz.de/start.shtml" target="_blank">Webdesign Referenz</a></li>
<li><a href="http://www.html-world.de/program/css_ov.php" target="_blank">CSS eBook</a></li>
</ul>
<h3>Web</h3>
<ul>
<li><a href="http://www.oreilly.de/german/freebooks/sii2ger/" target="_blank">Sicherheit im Internet</a></li>
<li><a href="http://www.stefan-muenz.de/webseiten-professionell/professionelle-websites-auflage-2.pdf" target="_blank"></a></li>
<li><a href="http://www.beam-ebooks.de/ebook/1345" target="_blank">Grundlagen der Suchmaschinenoptimierung</a></li>
<li><a href="http://download.galileo-press.de/openbook/dreamweaver8/galileodesign_dreamweaver8.zip" target="_blank">Dreamweaver 8</a></li>
<li><a href="http://www.galileocomputing.de/openbook/ruby_on_rails/" target="_blank">Einstieg in Ruby on Rails den php Konkurenten</a></li>
<li><a href="http://www.it-recht-kanzlei.de/Files/eBooks/eBook_Werbung_im_Internet.pdf" target="_blank">Werbung im Internet (rechtlich)</a></li>
<li><a href="http://www.galileocomputing.de/openbook/python/" target="_blank">Python</a></li>
<li><a href="http://www.it-recht-kanzlei.de/Files/eBooks/eBook_Abmahnung_Erhalten.pdf" target="_blank">Abmahnung erhalten?</a></li>
<li><a href="http://www.galileocomputing.de/openbook/javascript_ajax/" target="_blank">Einstieg in Ajax</a></li>
<li><a href="http://www.galileocomputing.de/openbook/joomla/" target="_blank">Joomla das Open Source CMS</a></li>
<li><a href="http://www.galileodesign.de/openbook/actionscript_einstieg/" target="_blank">Actionscript f&#252;r Anf&#228;nger</a></li>
<li><a href="http://www.galileodesign.de/openbook/actionscript/">Actionscript</a></li>
<li><a href="http://www.it-recht-kanzlei.de/Files/eBooks/eBook_DerSystemvertrag.pdf" target="_blank">Der IT-Systemvertrag</a></li>
<li><a href="http://www.uni-muenster.de/Jura.itm/hoeren/materialien/Skript/skript_Maerz2007.pdf" target="_blank">Internetrecht von der Uni M&#252;nster</a></li>
<li><a href="http://www.ecommerce-leitfaden.de/online-version.html" target="_blank">e-comerce Leitfaden</a> Ein sehr guter Leitfaden zum Thema e-Comerce wer mit den Gedanken spielt sich in dieser Branche zu behaupten -&gt; LESEN</li>
<li><a href="http://www.google.de/books?id=prsaGB4XDDAC&amp;printsec=frontcover&amp;source=gbs_summary_r&amp;cad=0" target="_blank">Management von virtuellen Unternehmen</a></li>
<li><a href="http://www.typo3.net/uploads/media/dokumentation.pdf" target="_blank">Grundlagenwissen Typo3 Version 3.6.2</a></li>
<li><a href="http://www.it-recht-kanzlei.de/Files/eBooks/eBook_ElektroG.pdf" target="_blank">Das Elektrogesetz – Kleine Abhandlung in wettbewerbsrechtlicher Hinsicht</a></li>
</ul>
<h3>MySQL</h3>
<ul>
<li><a href="http://downloads.mysql.com/docs/refman-5.1-de.a4.pdf" target="_blank">Offizielle Dokumentation</a> Sehr ausf&#252;hrliche offizielle Dokumentation man sollte aber schon einige Grundkenntnisse besitzen ansonsten ist man als Anf&#228;nger schnell &#252;berfordert.</li>
<li><a href="http://reeg.junetz.de/DSP/" target="_blank">DSP: Datenbank, MySQL und PHP</a></li>
<li><a href="http://www.little-idiot.de/mysql/" target="_blank">MySQL Datenbankhandbuch</a> Fast genauso Umfangreich wie die offizielle Dokumentation aber etwas ansprechender geschrieben.</li>
</ul>
<h3>Linux</h3>
<ul>
<li><a href="http://www.oreilly.de/german/freebooks/linuxfire2ger/toc.html" target="_blank">Linux Firewalls, 2. Auflage</a></li>
<li><a href="http://www.oreilly.de/german/freebooks/runux5ger/" target="_blank">Linux - Praxishandbuch</a></li>
<li><a href="http://www.oreilly.de/german/freebooks/rlinux3ger/linux_wegIVZ.html" target="_blank">Linux Wegweiser zur Installation &amp; Konfiguration, 3. Auflage</a></li>
<li><a href="http://www.oreilly.de/german/freebooks/linag3ger/418_LinuxIVZ.html" target="_blank">Linux Wegweiser f&#252;r Netzwerker, 3. Auflage </a></li>
<li><a href="http://www.oreilly.de/german/freebooks/linux_install/" target="_blank">Linux Wegweiser zur Installation, 1. Auflage </a></li>
<li><a href="http://www.oreilly.de/german/freebooks/os_tb/" target="_blank">Open Source - kurz &amp; gut, 1. Auflage</a></li>
<li><a href="/german/freebooks/samba2ger/" target="_blank">Samba, 2. Auflage</a></li>
<li><a href="http://www.galileocomputing.de/openbook/ubuntu/" target="_blank">Ubuntu</a></li>
<li><a href="http://www.galileocomputing.de/openbook/linux/" target="_blank">Linux</a></li>
<li><a href="http://www.galileocomputing.de/openbook/knoppix/" target="_blank">Knoppix</a></li>
<li><a href="http://linuxcommand.org/learning_the_shell.php" target="_blank">learning the shell</a> Eine sehr sch&#246;ne M&#246;glichkeit f&#252;r den schnelleinstieg, alles kurz und knapp erkl&#228;rt.</li>
</ul>
<h3>Programmierung</h3>
<ul>
<li><a href="http://javabuch.de/download.html" target="_blank">Handbuch der Java-Programmierung</a>(Die HTML Ausgabe steht zum kostgenlosen Download bereit)</li>
<li><a href="http://www.galileocomputing.de/openbook/visual_csharp/" target="_blank">Visual C#</a></li>
<li><a href="http://csharpcomputing.com/Tutorials/TOC.htm" target="_blank"> C# Tutorial</a> (englisch)</li>
<li><a href="http://www.galileocomputing.de/openbook/einstieg_vb_2008/" target="_blank">Einstieg in VB 2008</a></li>
<li><a href="http://www.csharp-station.com/Tutorial.aspx" target="_blank">C# Tutorial</a> (englisch)</li>
<li><a href="http://www.galileocomputing.de/openbook/javainsel7/" target="_blank">Java ist auch eine Insel</a></li>
<li><a href="http://tutorial.schornboeck.net/inhalt.htm" target="_blank">C++</a> Wunderbartes Tutorial was ich jeden Interessierten mit einigen grundlegenden Programmierkenntnissen nur an Herz legen kann, etwas Mau gestaltet und leider fehlen einige Kapitel</li>
<li><a href="http://www.galileocomputing.de/openbook/visual_basic/" target="_blank">Visual Basic 2005 - Das umfassende Handbuch</a></li>
<li><a href="http://www.galileocomputing.de/openbook/oo/" target="_blank">Praxisbuch Objektorientierung</a> Ich denke mal auf jedenfall einen Blick wert ich habe das Buch bis jetzt nur &#252;berflogen werde es mir aber in n&#228;chster Zeit zu gem&#252;te f&#252;hren.</li>
<li><a href="http://www.galileocomputing.de/openbook/c_von_a_bis_z/" target="_blank">C von A bis Z</a></li>
<li><a href="http://www.galileocomputing.de/openbook/java2/" target="_blank">Java 2</a></li>
</ul>
<h3>Informatik Allgemein</h3>
<ul>
<li><a href="http://www.oreilly.de/german/freebooks/spamvirger/" target="_blank">Mit Open Source Tools Spam &amp; Viren bek&#228;mpfen</a></li>
<li><a href="http://www.oreilly.de/german/freebooks/pdf_flexger/" target="_blank">Schnelleinstieg in Flex 2 (TecFeed)</a></li>
<li><a href="http://www.pearson.ch/download/media/9783827371737_SP.pdf" target="_blank">Schneller Studieren ein Leitfaden f&#252;r Informatiker</a>(Probekapitel)</li>
<li><a href="http://www.galileocomputing.de/openbook/it_handbuch/" target="_blank">IT Handbuch</a></li>
<li><a href="http://www.google.de/books?id=qPGLbSOuOOcC" target="_blank">IT-Unterst&#252;tzung f&#252;r das Wissensmanagement in Kooperationen</a></li>
<li><a href="http://www.google.de/books?id=OfOp4hvb1Y0C" target="_blank">Intuitive Modelle der Informatik</a></li>
<li><a href="http://www.beam-ebooks.de/ebook/1347" target="_blank">Open Source Jahrbuch 2008</a></li>
</ul>
<h3>Allgemein</h3>
<ul>
<li><a href="http://www.oreilly.de/german/freebooks/gplger/" target="_blank">GPL kommentiert und erkl&#228;rt</a></li>
</ul>
<p>Wenn ihr noch Erg&#228;nzungen zu der Liste habt immer her damit, am besten via eines Kommentars.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=39&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/ueber-54-top-ebooks-ueber-informatik-und-das-web-2008-08-20/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin geht in die dritte Runde</title>
		<link>http://www.schmars-world.de/index.php/phpmyadmin-dritte-runde-2008-08-13/</link>
		<comments>http://www.schmars-world.de/index.php/phpmyadmin-dritte-runde-2008-08-13/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 14:36:32 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=33</guid>
		<description><![CDATA[
Das Webbasierte MySQL-Administrationstool phpMyAdmin geht mit einer ersten Alphaversion (3.0.0) in die n&#228;chste Runde. phpMyAdmin ist in PHP geschrieben und ist in 55 Sprachen verf&#252;gbar, es steht unter einer GPL Lizenz.

Die neue Versionsnummer bringt einige neue Funktionen zur Unterst&#252;tzung von MySQL 5.1 Features mit, sowie support f&#252;r die neue Storage Engine Maria. Die neue Vesion [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.phpmyadmin.net/home_page/images/pma_logo.gif" alt="phpMyAdmin Logo" align="left" /></p>
<p>Das Webbasierte MySQL-Administrationstool phpMyAdmin geht mit einer ersten Alphaversion (3.0.0) in die n&#228;chste Runde. phpMyAdmin ist in PHP geschrieben und ist in 55 Sprachen verf&#252;gbar, es steht unter einer <strong><em>GPL Lizenz</em></strong>.</p>
<p><span id="more-33"></span></p>
<p>Die neue Versionsnummer bringt einige neue Funktionen zur Unterst&#252;tzung von <strong>MySQL 5.1 Features </strong>mit, sowie support f&#252;r die neue Storage Engine <a href="http://dev.mysql.com/doc/refman/5.1-maria/en/se-maria.html">Maria</a>. Die neue Vesion bietet auch Features f&#252;r die Unterst&#252;tzung der <a href="http://www.primebase.org/">PrimeBase XT</a> Storage Engine, sowie die Unterst&#252;tzung f&#252;r eine <a href="http://phpmyadmin.net/auth_key ">Swekey-Authentifizierung</a>. Die neue Version Artet auch mit einer weiteren Unterst&#252;tzten Sprache auf <strong>Bengalisch</strong>. Falls sich jemand fragen sollte wie Bengalisch aussieht, hier ist ein Beispiel:</p>
<p style="text-align: center;"><img src="http://upload.wikimedia.org/wikipedia/de/1/11/Bengali-iloveu.gif" alt="Bengalisch" /><br />
<em>"Ich liebe dich auf Bengalisch"</em></p>
<p>Die Storage Engine <em>Maria</em>ist im Weitesten sinne eine <strong>absturzsichere Verbesserung der MyISAM Engine</strong>. Verbesserungen w&#228;ren zum Beispiel recovery support, im Falle eines System Crashs, Erweiterte logging Funktionen und das neue Maria Zeilen Format.</p>
<h3>Hier ein kurzer Auszug aus dem <a href="http://www.phpmyadmin.net/home_page/downloads.php?relnotes=0">Changelog</a>:</h3>
<h4>Requirements for 3.0.0:</h4>
<p>PHP 5.2+<br />
MySQL 5.0+</p>
<h4>Improvements for 3.0.0:</h4>
<ul>
<li>[privileges] support for EVENT and TRIGGER</li>
<li>[gui] Events -minimal support on db structure page -export</li>
<li>[engines] Maria support</li>
<li>[engines] MyISAM and InnoDB: support ROW_FORMAT table option</li>
<li>[engines] PBXT: table options, foreign key (relation view, designer)</li>
<li>[auth] support SweKey hardware authentication</li>
<li>[webapp] experimental Mozilla Prism support</li>
<li>[GUI] Mootools js library (http://mootools.net) and new parameter InitialSlidersState</li>
<li>[core] cache some MySQL stats (do not query them with every page request)</li>
<li>[view] clearer dialog WITH (CASCADED | LOCAL) CHECK OPTION</li>
<li>[GUI] Color picker</li>
<li>[navi] new parameter LeftDefaultTabTable</li>
</ul>
<h4>Fixes for 3.0.0.x:</h4>
<ul>
<li>bug #1910621 [display] part 2: do not display a BINARY content as text</li>
<li>[export] properly handle line breaks for YAML</li>
<li>bug #1664240 [GUI] css height makes cfg TextareaRows useless</li>
<li>bug #1724217 [Create PHP Code] doesn't include newlines for text fields</li>
<li>bug #1845605 [i18n] translators.html still uses iso-8859-1</li>
<li>bug #1823018 [charset] Edit(Delete) img-links pointing to wrong row</li>
<li>bug #1826205 [export] Problems with yaml text export</li>
<li>bug #1344768 [database] create/alter table new field can not have empty string as default</li>
<li>patch #2007196, Typos in comments</li>
<li>bug #1982315 [GUI] Comma and quote in ENUM</li>
<li>bug #1970836 [parser] SQL parser is slow</li>
<li>bug #2033962 [import] Cannot import zip file</li>
</ul>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=33&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/phpmyadmin-dritte-runde-2008-08-13/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bug in Forensoftware f&#252;r Wordpress</title>
		<link>http://www.schmars-world.de/index.php/bug-in-forensoftware-fur-wordpress-2008-08-11/</link>
		<comments>http://www.schmars-world.de/index.php/bug-in-forensoftware-fur-wordpress-2008-08-11/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 15:07:20 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=32</guid>
		<description><![CDATA[Ich habe vor kurzem beim modifizieren der „Simple:Press Forum“ Forensoftware einen Bug in dem Avatarverwaltungssystem ausgemacht. Dieser Bug verhindert das korrekte arbeiten einer neuen Funktion zum L&#246;schen und ersetzen von Avatarbildern.

Der Bug ist in der sf-avatars.php zu finden. Hier wurde in der IF-clause vergessen die „SFAVATARS“ Konstante anzugeben. Diese Konstante enth&#228;lt den Pfad zu dem [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe vor kurzem beim modifizieren der „<a href="http://www.stuff.yellowswordfish.com/simplepress-forum/">Simple:Press Forum</a>“ Forensoftware einen Bug in dem Avatarverwaltungssystem ausgemacht. Dieser Bug verhindert das korrekte arbeiten einer neuen Funktion zum L&#246;schen und ersetzen von Avatarbildern.</p>
<p><span id="more-32"></span></p>
<p>Der Bug ist in der sf-avatars.php zu finden. Hier wurde in der IF-clause vergessen die <em>„SFAVATARS“</em> Konstante anzugeben. Diese Konstante enth&#228;lt den Pfad zu dem Speicherort der Avatare. Die IF-clause beinhaltet die PHP funktion <a href="http://de3.php.net/file-exists">file_exists()</a> welche &#252;berpr&#252;ft ob eine bestimmte Datei vorhanden ist. Da aber der Pfad zu dem Speicherort der Avatare fehlt werden die „alten“ Dateien nicht gel&#246;scht sondern nur die neue Datei hochgeladen, was letztendlich und vor allem bei gr&#246;&#223;erer Useranzahl zu einem Durcheinander und Speicherplatzverschwendung wird.</p>
<p>Hier ist das entsprechende Codefragment</p>
<blockquote><p>// delete old avatar if it exists<br />
$oldfilename = sf_get_member_item($userid, 'avatar');<br />
if (file_exists($oldfilename)) {<br />
unlink(SFAVATARS.$oldfilename);<br />
}</p></blockquote>
<p>Diese kleine „Fehlfunktion" ist sehr einfach durch das hinzuf&#252;gen der Konstante „SFAVATARS“ zu beheben.</p>
<blockquote><p>// delete old avatar if it exists<br />
$oldfilename = sf_get_member_item($userid, 'avatar');<br />
if (file_exists(SFAVATARS.$oldfilename)) {<br />
unlink(SFAVATARS.$oldfilename);<br />
}</p></blockquote>
<p>Einen Bugreport habe ich bereits geschrieben und der <a href="http://www.stuff.yellowswordfish.com">Entwickler </a>wollte sich um das Problem k&#252;mmern, sodass bei der n&#228;chsten Version nicht mehr auftritt.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=32&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/bug-in-forensoftware-fur-wordpress-2008-08-11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP 4.4.9 der letzte Gnadenstoss</title>
		<link>http://www.schmars-world.de/index.php/php-449-der-letzte-gnadenstoss-2008-08-08/</link>
		<comments>http://www.schmars-world.de/index.php/php-449-der-letzte-gnadenstoss-2008-08-08/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 20:59:55 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 4]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=30</guid>
		<description><![CDATA[Gestern wurde die definitiv letzte Version von PHP 4 ver&#246;ffentlicht PHP 4.4.9. Die "neue" Version enth&#228;lt eine Reihe von Bugfixes und Enhancements. Die Installation wird f&#252;r Benutzer von PHP 4 strengstens empfohlen, da das Release die Sicherheit und die Stabilit&#228;t von PHP 4 ma&#223;geblich erh&#246;ht.

Hier eine kurze Liste der wichtigsten Neuerungen in PHP 4.4.9

Updated PCRE [...]]]></description>
			<content:encoded><![CDATA[<p>Gestern wurde die definitiv letzte Version von PHP 4 ver&#246;ffentlicht <a href="http://www.php.net/archive/2008.php#id2008-08-07-1">PHP 4.4.9</a>. Die "neue" Version enth&#228;lt eine Reihe von Bugfixes und Enhancements. Die Installation wird f&#252;r Benutzer von PHP 4 strengstens empfohlen, da das Release die Sicherheit und die Stabilit&#228;t von PHP 4 ma&#223;geblich erh&#246;ht.</p>
<p><span id="more-30"></span></p>
<p>Hier eine kurze Liste der wichtigsten Neuerungen in PHP 4.4.9</p>
<ul>
<li>Updated PCRE to version 7.7.</li>
<li>Fixed overflow in memnstr().</li>
<li>Fixed crash in imageloadfont when an invalid font is given.</li>
<li>Fixed open_basedir handling issue in the curl extension.</li>
<li>Fixed mbstring.func_overload set in .htaccess becomes global.</li>
</ul>
<p>Das komplette <a href="http://www.php.net/ChangeLog-4.php#4.4.9">Changelog von PHP.net</a>.</p>
<p>PHP 5 sollte aber inzwischen nahezu der Standard sein, frei nach dieser Aussage geht das Release mit deutlichen Kommentaren der Community einher. </p>
<p><a href="http://derickrethans.nl/rip_php_4.php">Derick Rethans verabschiedet PHP 4</a> mit den Worten: </p>
<blockquote><p>With hardly any support for OO, sub-standard XML support and generally lots of other suckyness as well, it's time to focus on the future: PHP 6. So please die PHP 4 - and quickly. </p></blockquote>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=30&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/php-449-der-letzte-gnadenstoss-2008-08-08/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Erwache wieder!</title>
		<link>http://www.schmars-world.de/index.php/erwache-wieder-2008-08-06/</link>
		<comments>http://www.schmars-world.de/index.php/erwache-wieder-2008-08-06/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 21:35:54 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=29</guid>
		<description><![CDATA[So nach l&#228;ngerer Zeit hat sich der Blog dazu durchgerungen mir wieder Text zum tippen zu geben, denn ein Blog schreibt sich bekanntlich selbst der Autor ist nur zum tippen da. In der Zeit der Inaktivit&#228;t auf den Blog hat sich einiges getan, zu einen habe ich meine Kenntnisse in der Objektorientierten Programmierung mit PHP [...]]]></description>
			<content:encoded><![CDATA[<p>So nach l&#228;ngerer Zeit hat sich der Blog dazu durchgerungen mir wieder Text zum tippen zu geben, denn ein Blog schreibt sich bekanntlich selbst der Autor ist nur zum tippen da. In der Zeit der Inaktivit&#228;t auf den Blog hat sich einiges getan, zu einen habe ich meine Kenntnisse in der Objektorientierten Programmierung mit PHP deutlich vertieft und begonnen mich mit AJAX auseinanderzusetzen. Zum anderen  bin ich der <a href="http://eurostyle-online.de/">Webmedia und Gaming Community Eurostyle Online</a> als Coder beigetreten, habe in der Entwicklung des sCMS einige markante Fortschritte gemacht und beteilige mich an einem coding Projekt von Eurostyle Online.<br />
<span id="more-29"></span></p>
<h3>Sonstige Neuigkeiten</h3>
<p>Der Webmedia/Photoshop Community-blog <a href="http://www.photoshop-tutorials.de/">Photoshop-Tutorials.de</a> bei welchen ich in der Entwicklung mitgewirkt habe steht kurz vor dem Release. Photoshop-Tutorials.de ist ein Geheimtipp f&#252;r angehenden und fortgeschrittenen Grafiker, selbst ein Profi kann dort noch anhand vieler (Video) Tutorials einiges lernen.</p>
<p>Neben Photoshop-Tutorials.de steht auch eine neue Codingreferenz kurz vor der Fertigstellung, lediglich einige Feinheiten m&#252;ssen noch mit dem Auftrageber besprochen werden.</p>
<p>Nicht nur bei mir gab es einige Ver&#228;nderungen so hat sich auch das Bild von <a href="http://www.croton-clan.de/website/">croton-clan.de</a>  grundlegend ver&#228;ndert, von einem Gamingclan hin zu einer resource/informations- Seite zu den Titeln der „Total War“ Serie welche von Creative Assembly entwickelt wird. Die Seite legt ihr besonderes Augenmerk auf den neusten noch unver&#246;ffentlichten Titel der Serie „Empires Total War“</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=29&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/erwache-wieder-2008-08-06/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nettes Buch-Special im PHPmagazin</title>
		<link>http://www.schmars-world.de/index.php/nettes-buch-special-im-phpmagazin-2008-07-07/</link>
		<comments>http://www.schmars-world.de/index.php/nettes-buch-special-im-phpmagazin-2008-07-07/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 16:13:16 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[Ebooks]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=23</guid>
		<description><![CDATA[Heute kam bei Abonnenten, die neueste Ausgabe des PHPmagazins ins Haus geflattert. Eigentlich kein Ereignis &#252;ber das man Bloggen muss, doch wenn man sich das Cover des Magazins genau Ansieht, findet man in dem Bereich CD-Inhalt ein "Buch-Special", genau dieses macht die Ausgabe durchaus interessant.

Bei dem Buch-Special handelt es sich um die Ebook Version des [...]]]></description>
			<content:encoded><![CDATA[<p>Heute kam bei Abonnenten, die neueste Ausgabe des <em>PHPmagazins </em>ins Haus geflattert. Eigentlich kein Ereignis &#252;ber das man Bloggen muss, doch wenn man sich das Cover des Magazins genau Ansieht, findet man in dem Bereich CD-Inhalt ein "Buch-Special", genau dieses macht die Ausgabe durchaus interessant.<br />
<span id="more-23"></span></p>
<p>Bei dem Buch-Special handelt es sich um die Ebook Version des Referenzbuches <strong><em>"PHPUnit - Kurz und Gut"</em></strong>. Der Autor des Buches ist der Entwickler von PHPUnit Sebastian Bergmann, dadurch k&#246;nnen Einblicke und Ratschl&#228;ge vermittelt werden, die nur der Erfinder Technologie selbst bieten kann. Das Buch bietet einem neben dem Hauptaspekt dem Referenzmaterial zu PHPUnit, auch grundllegende und wichtige Informationen zum testen von Programmcode allgemein. </p>
<p>Im Gro&#223;en und Ganzen ist zu sagen, das sich die neue Ausgabe des Magazins wieder einmal auf ganzer Linie lohnt. Doch wem die 9,80€ f&#252;r das Magazin oder die 8€ welches das Buch bei dem Onlineh&#228;ndler Terrashop.de momentan kostet, zuviel ist dem sei mit der <a href="http://www.phpunit.de/pocket_guide/index.de.php">kostenlosen Ebook Version von der Entwickler Homepage</a> geholfen.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=23&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/nettes-buch-special-im-phpmagazin-2008-07-07/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ebook: Professionelle Softwareentwicklung mit PHP 5</title>
		<link>http://www.schmars-world.de/index.php/kostenloses-ebook-professionelle-softwareentwicklung-mit-php-5-2008-06-26/</link>
		<comments>http://www.schmars-world.de/index.php/kostenloses-ebook-professionelle-softwareentwicklung-mit-php-5-2008-06-26/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 11:00:53 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Ebooks]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=21</guid>
		<description><![CDATA[Ich habe vor einiger Zeit mit dem Gedanken gespielt mir das Buch "Professionelle Softwareentwicklung mit PHP 5" zuzulegen. Um den bestm&#246;glichen Kaufpreis zu finden habe ich erst einmal eine Runde gegooglet und siehe da, es ist kostenlos als Ebook ver&#246;ffentlicht worden.
Auf professionelle-softwareentwicklung-mit-php5.de findet ihr die Ebook Version des Buches. Das erfreulichste an der Sache ist, [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe vor einiger Zeit mit dem Gedanken gespielt mir das Buch <em>"Professionelle Softwareentwicklung mit PHP 5"</em> zuzulegen. Um den bestm&#246;glichen Kaufpreis zu finden habe ich erst einmal eine Runde gegooglet und siehe da, es ist kostenlos als Ebook ver&#246;ffentlicht worden.</p>
<p>Auf <a href="http://professionelle-softwareentwicklung-mit-php5.de/">professionelle-softwareentwicklung-mit-php5.de</a> findet ihr die Ebook Version des Buches. Das erfreulichste an der Sache ist, das dass Buch bei meinen favorisierten Onlinesachbuchshop <a href="http://www.terrashop.de/">terrashop.de</a> noch zu dem Preis von 29,00€ angeboten wird. So hat man sich mal <strong>knapp 30 Euro gespart</strong>.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=21&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/kostenloses-ebook-professionelle-softwareentwicklung-mit-php-5-2008-06-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sCMS the beginning of the end</title>
		<link>http://www.schmars-world.de/index.php/scms-the-beginning-of-the-end-2008-05-27/</link>
		<comments>http://www.schmars-world.de/index.php/scms-the-beginning-of-the-end-2008-05-27/#comments</comments>
		<pubDate>Tue, 27 May 2008 18:37:33 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sCMS]]></category>

		<guid isPermaLink="false">http://web285.srv12.sysproserver.de/sw/?p=5</guid>
		<description><![CDATA[Die erste  Klasse ist geschrieben und Dokumentiert. sCMS wird ein (erstmal) kleines, feines CMS werden welches auf meine Anforderungen zugeschnitten wird. Das CMS wird in privaten gebrauch Anwendung finden, aber eventuel auch in einen meiner kommenden Projekte. Genaueres will ich noch nicht verraten, zumal nur eine Klasse existiert. Die haupt Entwicklungszeit wird sich &#252;ber [...]]]></description>
			<content:encoded><![CDATA[<p>Die erste  <a href="http://de.wikipedia.org/wiki/Klasse_(objektorientierte_Programmierung)">Klasse</a> ist geschrieben und Dokumentiert. sCMS wird ein (erstmal) kleines, feines <a href="http://de.wikipedia.org/wiki/Content-Management-System">CMS </a>werden welches auf meine Anforderungen zugeschnitten wird. Das <a href="http://de.wikipedia.org/wiki/Content-Management-System">CMS </a>wird in privaten gebrauch Anwendung finden, aber eventuel auch in einen meiner kommenden Projekte. Genaueres will ich noch nicht verraten, zumal nur eine <a href="http://de.wikipedia.org/wiki/Klasse_(objektorientierte_Programmierung)">Klasse </a>existiert. Die haupt Entwicklungszeit wird sich &#252;ber die Sommerferien erstrecken.</p>
<p>in diesem Sinne <strong>HORNS UP!</strong></p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=5&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/scms-the-beginning-of-the-end-2008-05-27/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
