<?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>T400</title>
	<atom:link href="http://t400.pytalhost.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://t400.pytalhost.de</link>
	<description>Ein weiterer sinnloser Blog mit Verstand.</description>
	<lastBuildDate>Mon, 15 Mar 2010 21:35:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Das Umbau-Tagebuch: Teil 1</title>
		<link>http://t400.pytalhost.de/2010/03/15/das-umbau-tagebuch-teil-1/</link>
		<comments>http://t400.pytalhost.de/2010/03/15/das-umbau-tagebuch-teil-1/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 09:32:26 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[eins]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[teil]]></category>
		<category><![CDATA[umbau]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=207</guid>
		<description><![CDATA[Erster Tag im Umbau Fieber. Heute werden Fehler im Design abgearbeitet.
Also alles was der Validator ausspuckt und was ich für nicht &#8220;schön&#8221; empfinde.
Dann sollte ich auch mal den Code für den Ajax Request, den ich für das Anzeigen des letzten Tweets benutze überarbeiten. Der kleine Javascriptschnipsel funktioniert nur in Firefox und Opera. Im Safari meldet [...]]]></description>
			<content:encoded><![CDATA[<p>Erster Tag im Umbau Fieber. Heute werden Fehler im Design abgearbeitet.<br />
Also alles was der Validator ausspuckt und was ich für nicht &#8220;schön&#8221; empfinde.</p>
<p>Dann sollte ich auch mal den Code für den Ajax Request, den ich für das Anzeigen des letzten Tweets benutze überarbeiten. Der kleine Javascriptschnipsel funktioniert nur in Firefox und Opera. Im Safari meldet sich manchmal eine Error Meldung und im Internet Explorer tut sich garnichts.</p>
<p><strong>Ja</strong>, ich weiß das der IE keine normalen xmlhttp Request senden kann, sondern immer einen eigene Kopf hat. Anfangs dachte ich mir: &#8220;Mir doch egal&#8221;. Aber nun möchte ich auch das man trotzdem im IE meine Seite voll und mit allen Features erleben kann.</p>
<p>Außerdem werde ich mich mal nach einem guten Syntax Highlighter umschauen. Der aktuelle, in mein System konvertierte WP-Syntax, tut zwar seine Arbeit, aber ich möchte das lieber mit CSS-Klassen, statt mit &#8220;style&#8221; &#8211; Attributen. <strong>Welchen benutzt ihr?</strong></p>
<p>Wenn ihr sonst noch Vorschläge habt, was ich hinzufügen oder ändern kann, schreibts mir. Ich werde dann darüber nachdenken, und vielleicht ist euer Wunsch schon morgen dran. <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Kai.</p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/03/15/das-umbau-tagebuch-teil-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Großer Umbau gestartet&#8230;.</title>
		<link>http://t400.pytalhost.de/2010/03/15/groser-umbau-gestartet/</link>
		<comments>http://t400.pytalhost.de/2010/03/15/groser-umbau-gestartet/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 09:22:45 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[umbau]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=204</guid>
		<description><![CDATA[Heute ist es soweit, ich habe keine Lust mehr zu warten. Los gehts!
Ich werde das Design aufarbeiten. Das heißt: 

Farben anpassen (Links)
Größen der Spalten anpassen
Komprimieren der CSS und Javascript Dateien
HTML Code valide und übersichtlich gestalten

Dies sind die Punkte die ich abarbeiten werde. Bitte nicht wundern, dass manche Seiten länger laden.
Natürlich informiere ich euch über jeden [...]]]></description>
			<content:encoded><![CDATA[<p>Heute ist es soweit, ich habe keine Lust mehr zu warten. Los gehts!<br />
Ich werde das Design aufarbeiten. Das heißt: </p>
<ul>
<li>Farben anpassen (Links)</li>
<li>Größen der Spalten anpassen</li>
<li>Komprimieren der CSS und Javascript Dateien</li>
<li>HTML Code valide und übersichtlich gestalten</li>
</ul>
<p>Dies sind die Punkte die ich abarbeiten werde. Bitte nicht wundern, dass manche Seiten länger laden.</p>
<p>Natürlich informiere ich euch über jeden Schritt.<br />
Mfg. <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/03/15/groser-umbau-gestartet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design wird etwas geändert</title>
		<link>http://t400.pytalhost.de/2010/03/12/design-wird-etwas-geandert/</link>
		<comments>http://t400.pytalhost.de/2010/03/12/design-wird-etwas-geandert/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 10:06:06 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[neu]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=200</guid>
		<description><![CDATA[Wie ihr sicherlich nun merkt, ist das alte Design weg.
Aus gutem Grund! Ich ändere es etwas ab. Und um euch nicht am lesen zu hindern, habe ich temporär ein anderes Design hochgeladen.
Ich hoffe euch stört das nicht. Das &#8220;neue&#8221; alte Design wird in wenigen Stunden erscheinen.
Vielleicht seht ihr dann Änderungen oder auch nicht  
Edit: [...]]]></description>
			<content:encoded><![CDATA[<p>Wie ihr sicherlich nun merkt, ist das alte Design weg.<br />
Aus gutem Grund! Ich ändere es etwas ab. Und um euch nicht am lesen zu hindern, habe ich temporär ein anderes Design hochgeladen.<br />
Ich hoffe euch stört das nicht. Das &#8220;neue&#8221; alte Design wird in wenigen Stunden erscheinen.</p>
<p>Vielleicht seht ihr dann Änderungen oder auch nicht <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Edit:</strong> Das alte Design wird nun auf einer anderen Domain geändert und danach hier eingestellt. Ich werde es wieder aktivieren. <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/03/12/design-wird-etwas-geandert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“No space left on device” – Behoben</title>
		<link>http://t400.pytalhost.de/2010/03/10/%e2%80%9cno-space-left-on-device%e2%80%9d-%e2%80%93-behoben/</link>
		<comments>http://t400.pytalhost.de/2010/03/10/%e2%80%9cno-space-left-on-device%e2%80%9d-%e2%80%93-behoben/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 09:11:30 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=197</guid>
		<description><![CDATA[Der Fehler ist nun behoben. Vielleicht ist einigen aufgefallen, dass der Header weg war. Ich habe leider erst zu spät gemerkt das der Fehler existiert und habe am Design herumgewerkelt   Da man nicht speichern konnte, musste mein Blog vorübergehend ohne Header auskommen.
]]></description>
			<content:encoded><![CDATA[<p>Der Fehler ist nun behoben. Vielleicht ist einigen aufgefallen, dass der Header weg war. Ich habe leider erst zu spät gemerkt das der Fehler existiert und habe am Design herumgewerkelt <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Da man nicht speichern konnte, musste mein Blog vorübergehend ohne Header auskommen.</p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/03/10/%e2%80%9cno-space-left-on-device%e2%80%9d-%e2%80%93-behoben/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;No space left on device&#8221; &#8211; Server Fehler</title>
		<link>http://t400.pytalhost.de/2010/03/10/no-space-left-on-device-server-fehler/</link>
		<comments>http://t400.pytalhost.de/2010/03/10/no-space-left-on-device-server-fehler/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 08:00:27 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=195</guid>
		<description><![CDATA[Momentan sind einige Funktionen des Blogs eingeschränkt und es kann zu einem Error kommen. Bitte nicht in Panik geraten. Mir sind die Fehlermeldungen bekannt und versuche diese auszuschalten (so gut wie möglich).
Der Fehler wird hoffentlich bald behoben. Naja auf ein baldiges Lesen 
Kai.
]]></description>
			<content:encoded><![CDATA[<p>Momentan sind einige Funktionen des Blogs eingeschränkt und es kann zu einem Error kommen. Bitte nicht in Panik geraten. Mir sind die Fehlermeldungen bekannt und versuche diese auszuschalten (so gut wie möglich).</p>
<p>Der Fehler wird hoffentlich bald behoben. Naja auf ein baldiges Lesen <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Kai.</p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/03/10/no-space-left-on-device-server-fehler/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kommentar-Email Validierung</title>
		<link>http://t400.pytalhost.de/2010/03/08/kommentar-email-validierung/</link>
		<comments>http://t400.pytalhost.de/2010/03/08/kommentar-email-validierung/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 19:46:50 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Kommentar]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=193</guid>
		<description><![CDATA[Nun ab heute wird die Freischaltung per Email etwas abgeändert.
Man kann immer noch per Link den Kommentar freischalten, dann ist dieser sofort verfügbar.
Oder:
Die Zeit vergeht bis ich jeden Kommentar angeschaut habe, bzw. Spam lasse ich gleich aus. Außerdem wird die Email dazu validiert.
Validierung:
1. Syntax
2. Überprüfung ob Server existiert
3. Überprüfung ob Email Account existiert
Wenn alles zutrifft, [...]]]></description>
			<content:encoded><![CDATA[<p>Nun ab heute wird die Freischaltung per Email etwas abgeändert.<br />
Man kann immer noch per Link den Kommentar freischalten, dann ist dieser sofort verfügbar.</p>
<p>Oder:<br />
Die Zeit vergeht bis ich jeden Kommentar angeschaut habe, bzw. Spam lasse ich gleich aus. Außerdem wird die Email dazu validiert.</p>
<p>Validierung:<br />
1. Syntax<br />
2. Überprüfung ob Server existiert<br />
3. Überprüfung ob Email Account existiert</p>
<p>Wenn alles zutrifft, wird die Email freigeschaltet, und der Kommentar auch. Ein Fehler heißt, ich muss selbst nachhelfen. Jedoch wenn die Email oder die IP in der Blacklist steht, ist der Kommentar sofort wieder gelöscht.</p>
<p>Hm. Falls jemand Probleme mit dem Kommentieren haben sollte, schreibt bitte eine Email an die im Impressum angegebene Adresse. <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Lg.</p>
<p>PS: Sry, für dich komische Ausdruckssprache <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/03/08/kommentar-email-validierung/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Was man aus Langeweile alles macht&#8230;</title>
		<link>http://t400.pytalhost.de/2010/03/05/was-man-aus-langeweile-alles-macht/</link>
		<comments>http://t400.pytalhost.de/2010/03/05/was-man-aus-langeweile-alles-macht/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 11:31:57 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[doctype]]></category>
		<category><![CDATA[langeweile]]></category>
		<category><![CDATA[neu]]></category>
		<category><![CDATA[xhtml1.1]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=189</guid>
		<description><![CDATA[Heute habe ich einfach mal so, meinen Doctype verändert. Natürlich habe ich danach viel Arbeit, Fehler im Quellcode zu beheben. Aber dem war nicht so.
Jetzt ist der Doctype &#8220;XHTML 1.1&#8243; und 100% valide. Da das Template wieder Fehler verursachen würde, nachdem ich einen Artikel schreibe, habe ich das angepasst.
Wenn jemanden Fehler auffallen (wenn man das [...]]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich einfach mal so, meinen Doctype verändert. Natürlich habe ich danach viel Arbeit, Fehler im Quellcode zu beheben. Aber dem war nicht so.<br />
Jetzt ist der Doctype &#8220;XHTML 1.1&#8243; und 100% valide. Da das Template wieder Fehler verursachen würde, nachdem ich einen Artikel schreibe, habe ich das angepasst.</p>
<p>Wenn jemanden Fehler auffallen (wenn man das nachprüfen will), bitte mir Bescheid sagen, sodass diese behoben werden können. <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Mfg.</p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/03/05/was-man-aus-langeweile-alles-macht/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Datenbankgröße herrausfinden</title>
		<link>http://t400.pytalhost.de/2010/02/27/datenbankgrose-herrausfinden/</link>
		<comments>http://t400.pytalhost.de/2010/02/27/datenbankgrose-herrausfinden/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 19:52:27 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[datenbank]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[size]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=180</guid>
		<description><![CDATA[Manche fragen schonmal, wie man die Größe der Datenbank herrausfindet.
Es gibt zwei Möglichkeiten:

per phpMyAdmin
per Script:

function dbsize&#40;$database, $db&#41; &#123;
&#160;
    $tables = mysql_list_tables&#40;$database, $db&#41;;
    if &#40;!$tables&#41; &#123; return -1; &#125;
&#160;
    $table_count = mysql_num_rows&#40;$tables&#41;;
    $size = 0;
&#160;
    for &#40;$i=0; $i &#60; $table_count; $i++&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>Manche fragen schonmal, wie man die Größe der Datenbank herrausfindet.<br />
Es gibt zwei Möglichkeiten:</p>
<ol>
<li>per phpMyAdmin</li>
<li>per Script:

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> dbsize<span style="color: #009900;">&#40;</span><span style="color: #000088;">$database</span><span style="color: #339933;">,</span> <span style="color: #000088;">$db</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000088;">$tables</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_list_tables</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$database</span><span style="color: #339933;">,</span> <span style="color: #000088;">$db</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: #000088;">$tables</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$table_count</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tables</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$size</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$table_count</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$tname</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_tablename</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tables</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$r</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SHOW TABLE STATUS FROM &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$database</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; LIKE '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$tname</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$size</span> <span style="color: #339933;">+=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Index_length'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Data_length'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$units</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' B'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' KB'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' MB'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' GB'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' TB'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$size</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1024</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$size</span> <span style="color: #339933;">/=</span> <span style="color: #cc66cc;">1024</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$size</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #000088;">$units</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Das Script führt man dann so aus:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$db</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$database</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'test'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> dbsize<span style="color: #009900;">&#40;</span><span style="color: #000088;">$database</span><span style="color: #339933;">,</span> <span style="color: #000088;">$db</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// sample output: 193.8 KB</span>
&nbsp;
<span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ol>
<p> <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Ende.</p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/02/27/datenbankgrose-herrausfinden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Besuchercounter nun eingebunden</title>
		<link>http://t400.pytalhost.de/2010/02/27/besuchercounter-nun-eingebunden/</link>
		<comments>http://t400.pytalhost.de/2010/02/27/besuchercounter-nun-eingebunden/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 19:37:10 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=178</guid>
		<description><![CDATA[Jetzt ist er da!
Eigentlich war der Counter nur für meine Zwecke gedacht. Nun seht ihr wenigstens etwas davon, in der Sidebar. Dort gibt er aus wie viele User schon einmal hier waren. 
Dieser zählt wirklich jeden User nur einmal, das heißt IP, Session und Cookie Überprüfung.
Die Zählung geht seit dem neuen Blog, also ziemlich genau [...]]]></description>
			<content:encoded><![CDATA[<p>Jetzt ist er da!<br />
Eigentlich war der Counter nur für meine Zwecke gedacht. Nun seht ihr wenigstens etwas davon, in der Sidebar. Dort gibt er aus wie viele User schon einmal hier waren. </p>
<p>Dieser zählt wirklich jeden User nur einmal, das heißt IP, Session und Cookie Überprüfung.</p>
<p>Die Zählung geht seit dem neuen Blog, also ziemlich genau Dezember 2010.</p>
<p>Der Counter speichert bestimmte anonyme Daten, also IP, Host und die Sessiondaten.<br />
Proxys werden übergangen und nicht gezählt.</p>
<p>Der Counter wird bald überarbeitet und dann biete ich diesen zum Download an.<br />
So. <img src='http://t400.pytalhost.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/02/27/besuchercounter-nun-eingebunden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloadrate setzen mit PHP</title>
		<link>http://t400.pytalhost.de/2010/02/27/downloadrate-setzen-mit-php/</link>
		<comments>http://t400.pytalhost.de/2010/02/27/downloadrate-setzen-mit-php/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 12:13:34 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[downloadrate]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://t400.pytalhost.de/?p=176</guid>
		<description><![CDATA[Wenn man Downloads auf der eigenen Seite hat, aber die Downloadrat beschränken möchte, habe ich hier ein Script:

// local file that should be send to the client
$local_file = 'test-file.zip';
// filename that the user gets as default
$download_file = 'your-download-name.zip';
&#160;
// set the download rate limit (=&#62; 20,5 kb/s)
$download_rate = 20.5; 
if&#40;file_exists&#40;$local_file&#41; &#38;&#38; is_file&#40;$local_file&#41;&#41; &#123;
    [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man Downloads auf der eigenen Seite hat, aber die Downloadrat beschränken möchte, habe ich hier ein Script:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// local file that should be send to the client</span>
<span style="color: #000088;">$local_file</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'test-file.zip'</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// filename that the user gets as default</span>
<span style="color: #000088;">$download_file</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'your-download-name.zip'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// set the download rate limit (=&gt; 20,5 kb/s)</span>
<span style="color: #000088;">$download_rate</span> <span style="color: #339933;">=</span> <span style="color:#800080;">20.5</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$local_file</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">is_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$local_file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// send headers</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Cache-control: private'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Type: application/octet-stream'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Length: '</span><span style="color: #339933;">.</span><span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$local_file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Disposition: filename='</span><span style="color: #339933;">.</span><span style="color: #000088;">$download_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// flush content</span>
    <span style="color: #990000;">flush</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
    <span style="color: #666666; font-style: italic;">// open file stream</span>
    <span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$local_file</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;r&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// send the current file part to the browser</span>
        <span style="color: #b1b100;">print</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$download_rate</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1024</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
&nbsp;
        <span style="color: #666666; font-style: italic;">// flush the content to the browser</span>
        <span style="color: #990000;">flush</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// sleep one second</span>
        <span style="color: #990000;">sleep</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
    <span style="color: #009900;">&#125;</span>    
&nbsp;
    <span style="color: #666666; font-style: italic;">// close file stream</span>
    <span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: The file '</span><span style="color: #339933;">.</span><span style="color: #000088;">$local_file</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' does not exist!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://t400.pytalhost.de/2010/02/27/downloadrate-setzen-mit-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.145 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-16 13:32:58 -->
