<?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>PHP Log &#187; php</title>
	<atom:link href="http://www.php-log.de/programmierer/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.php-log.de</link>
	<description>Eine feine Sammlung nützlicher PHP Notizen</description>
	<lastBuildDate>Thu, 27 May 2010 04:43:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CakePHP &#8211; Arbeiten mit zwei Datenbanken</title>
		<link>http://www.php-log.de/505/php/cakephp-arbeiten-mit-zwei-datenbanken</link>
		<comments>http://www.php-log.de/505/php/cakephp-arbeiten-mit-zwei-datenbanken#comments</comments>
		<pubDate>Thu, 18 Mar 2010 14:00:21 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=505</guid>
		<description><![CDATA[Im Prinzip ist es sehr einfach mit zwei Datenbanken zu arbeiten. CakePHP erlaubt ja über die Member Variable $useDbConfig die Konfiguration zu ändern. Dieses Verfahren wird hier ganz schön beschrieben: http://blog.4webby.com/posts/view/6/cakephp_models_using_multiple_db_connections Aaaahber, was ist wenn es keine weitere Konfiguration gibt, weil mit einer flammneuen Datenbank gearbeitet werden soll, die man gerade eben erst selbst erzeugt [...]]]></description>
			<content:encoded><![CDATA[<p>Im Prinzip ist es sehr einfach mit zwei Datenbanken zu arbeiten. CakePHP erlaubt ja über die Member Variable $useDbConfig die Konfiguration zu ändern.</p>
<p><span id="more-505"></span></p>
<p>Dieses Verfahren wird hier ganz schön beschrieben: <a href="http://blog.4webby.com/posts/view/6/cakephp_models_using_multiple_db_connections">http://blog.4webby.com/posts/view/6/cakephp_models_using_multiple_db_connections</a></p>
<p>Aaaahber, was ist wenn es keine weitere Konfiguration gibt, weil mit einer flammneuen Datenbank gearbeitet werden soll, die man gerade eben erst selbst erzeugt hat? In diesem Fall hilft das &#8220;USE&#8221; Statement. Hier ein Bespiel:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// DB Wechseln</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;USE `other_db` ;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Query auf der neuen DB absetzen</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UPDATE configuration SET configuration_value = 'foo' WHERE configuration_key =  'bar' ;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Und wieder zurück zur alten DB</span>
<span style="color: #000088;">$current_config</span>    <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDataSource</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$original_db</span> 	    <span style="color: #339933;">=</span> <span style="color: #000088;">$current_config</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'database'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;USE `<span style="color: #006699; font-weight: bold;">$original_db</span>` ;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/505/php/cakephp-arbeiten-mit-zwei-datenbanken/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP: E-Mails über die Shell versenden</title>
		<link>http://www.php-log.de/496/php/cakephp-e-mails-uber-die-shell-versenden</link>
		<comments>http://www.php-log.de/496/php/cakephp-e-mails-uber-die-shell-versenden#comments</comments>
		<pubDate>Tue, 02 Feb 2010 12:55:44 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=496</guid>
		<description><![CDATA[Es gibt verschiedene kleiner Hürden die umschifft werden wollen, bevor man mit einer Shell ordentliche E-Mailversenden kann. Hier nun ein kleines Schnippsel wie es bei mir zur Zeit funktioniert, eines der Hauptprobleme die ich hatte war das Nutzen der Templates. &#60;?php App::import&#40;'Core', 'Controller'&#41;; App::import&#40;'Component', 'Email'&#41;; &#160; $this-&#62;Controller =&#38; new Controller&#40;&#41;; $this-&#62;Email =&#38; new EmailComponent&#40;null&#41;; $this-&#62;Email-&#62;Controller [...]]]></description>
			<content:encoded><![CDATA[<p>Es gibt verschiedene kleiner Hürden die umschifft werden wollen, bevor man mit einer Shell ordentliche E-Mailversenden kann. <span id="more-496"></span></p>
<p>Hier nun ein kleines Schnippsel wie es bei mir zur Zeit funktioniert, eines der Hauptprobleme die ich hatte war das Nutzen der Templates.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
App<span style="color: #339933;">::</span><span style="color: #004000;">import</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Core'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Controller'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
App<span style="color: #339933;">::</span><span style="color: #004000;">import</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Component'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Email'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Controller</span> <span style="color: #339933;">=&amp;</span> <span style="color: #000000; font-weight: bold;">new</span> Controller<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span> <span style="color: #339933;">=&amp;</span> <span style="color: #000000; font-weight: bold;">new</span> EmailComponent<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Controller</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Controller</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">to</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Project Notifier &lt;rk@fakeadressdotfake.de&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bcc</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Project Notifier &lt;rk@fakeadressdotfake.de&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">replyTo</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Project Notifier &lt;rk@fakeadressdotfake.de&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">from</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Project Notifier &lt;rk@fakeadressdotfake.de&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Wichtig</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">charset</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'UTF8'</span><span style="color: #339933;">;</span>	
&nbsp;
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Controller</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'client'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$clients</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Email</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/496/php/cakephp-e-mails-uber-die-shell-versenden/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFMPEG</title>
		<link>http://www.php-log.de/491/php/ffmpeg</link>
		<comments>http://www.php-log.de/491/php/ffmpeg#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:34:06 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=491</guid>
		<description><![CDATA[Hier mal, weil ich es immer wieder vergesse ein paar ffmpeg Kommandozeilen. # Einen Film mit gleichbleibender Qualität konvertieren ffmpeg -i quelle.avi -sameq ziel.avi]]></description>
			<content:encoded><![CDATA[<p>Hier mal, weil ich es immer wieder vergesse ein paar ffmpeg Kommandozeilen.<span id="more-491"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Einen Film mit gleichbleibender Qualität konvertieren</span>
<span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span>  quelle.avi  <span style="color: #660033;">-sameq</span> ziel.avi</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/491/php/ffmpeg/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Rockt</title>
		<link>http://www.php-log.de/489/php/jquery-rockt</link>
		<comments>http://www.php-log.de/489/php/jquery-rockt#comments</comments>
		<pubDate>Sun, 20 Dec 2009 22:30:11 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=489</guid>
		<description><![CDATA[Punkt!]]></description>
			<content:encoded><![CDATA[<p>Punkt!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/489/php/jquery-rockt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shellscript das via Cron ein PHP Script ausführt bei Domainfactory einrichten</title>
		<link>http://www.php-log.de/481/php/shellscript-das-via-cron-ein-php-script-ausfuhrt-bei-domainfactory-einrichten</link>
		<comments>http://www.php-log.de/481/php/shellscript-das-via-cron-ein-php-script-ausfuhrt-bei-domainfactory-einrichten#comments</comments>
		<pubDate>Wed, 04 Nov 2009 10:09:28 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=481</guid>
		<description><![CDATA[Ich habe ein Shellscript, das wiederum ein PHP Script aufruft und das ganze passiert über einen Cronjob bei Domainfactory. Verwirrt? Worauf ich hinauswill&#8230; Es kann passieren das unter diesen Umständen das PHP Script nicht ausgeführt wird. Der Support bei dF ist schnell mit einer Lösung zur Hand, aber wenn ich&#8217;s mir in mein kleines Notizbuch [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe ein Shellscript, das wiederum ein PHP Script aufruft und das ganze passiert über einen Cronjob bei Domainfactory. Verwirrt? <img src='http://www.php-log.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Worauf ich hinauswill&#8230;</p>
<p><span id="more-481"></span>Es kann passieren das unter diesen Umständen das PHP Script nicht ausgeführt wird. Der Support bei dF ist schnell mit einer Lösung zur Hand, aber wenn ich&#8217;s mir in mein kleines Notizbuch hier schreibe bin ich schneller <img src='http://www.php-log.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Ich also die Lösung vom dF Support:</p>
<blockquote><p>Da Sie in diesem Cronjob eine PHP-Datei über ein Shellscript ausführen,<br />
empfehlen wir Ihnen den Befehl wie folgt anzupassen:</p>
<p>env -i /usr/local/bin/php5 -f /der/pfad/zum/script.php</p>
<p>Über &#8220;env -i&#8221; werden die Umgebungsvariablen geleert und mittels &#8220;-f&#8221;<br />
wird die Ausführung des PHP-Scriptes erzwungen. Andernfalls besteht die<br />
Möglichkeit, dass das Script nur ausgegeben wird.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/481/php/shellscript-das-via-cron-ein-php-script-ausfuhrt-bei-domainfactory-einrichten/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP &#8211; Installation in einem Verzeichnis</title>
		<link>http://www.php-log.de/452/php/cakephp-installation-in-einem-verzeichnis</link>
		<comments>http://www.php-log.de/452/php/cakephp-installation-in-einem-verzeichnis#comments</comments>
		<pubDate>Wed, 02 Sep 2009 22:28:06 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=452</guid>
		<description><![CDATA[Üblicherweise werden CakePHP Applikation ja im Document Root eines Webserver installiert und sind dann direkt über die Domain zu erreichen. Wenn dies aber mal nicht der Fall ist, sollte man schon früh und gründlich prüfen ob der Ziel-Server überhaupt die technischen Voraussetzungen für den Betrieb einer modernen MVC Anwendung bietet. Da ich gerade vor genau [...]]]></description>
			<content:encoded><![CDATA[<p>Üblicherweise werden CakePHP Applikation ja im Document Root eines Webserver installiert und sind dann direkt über die Domain zu erreichen. Wenn dies aber mal nicht der Fall ist, sollte man schon früh und gründlich prüfen ob der Ziel-Server überhaupt die technischen Voraussetzungen für den Betrieb einer modernen MVC Anwendung bietet.<span id="more-452"></span></p>
<p>Da ich gerade vor genau diesem Problem stehe, habe ich eine kleine CakePHP Beispielanwendung zurecht geschustert, die in ein beliebiges Verzeichnis installiert werden kann. Dazu gibt es noch eine Installationsanleitung mit einigen Screenshots.</p>
<p>Download: <a href="http://www.php-log.de/wp-content/plugins/download-monitor/download.php?id=1" title="CakePHP Server Test">CakePHP Server Test</a></p>
<p>Achtung, diese Beipielanwendung ist in der index.php modifiziert. Wer Sie seine Anwendung in das regläre Directory Layout zurück transformieren will muss die index.php auf unterste Ebene anpassen oder durch das Original ersetzen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/452/php/cakephp-installation-in-einem-verzeichnis/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Umrechnen von Milimetern in Punkt z.b. beim Erzeugen Von PDF</title>
		<link>http://www.php-log.de/444/php/umrechnen-von-milimetern-in-punkt-z-b-beim-erzeugen-von-pdf</link>
		<comments>http://www.php-log.de/444/php/umrechnen-von-milimetern-in-punkt-z-b-beim-erzeugen-von-pdf#comments</comments>
		<pubDate>Wed, 26 Aug 2009 01:22:34 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=444</guid>
		<description><![CDATA[Sollte ich mal wieder in die Verlegenheit kommen&#8230; Hier die Funktion: function transformMMtoPoint&#40;$mm&#41;&#123; return round&#40;$mm * &#40;1 / 0.351&#41;, 2&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>Sollte ich mal wieder in die Verlegenheit kommen&#8230;<span id="more-444"></span></p>
<p>Hier die Funktion:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> transformMMtoPoint<span style="color: #009900;">&#40;</span><span style="color: #000088;">$mm</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mm</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span> <span style="color: #339933;">/</span> <span style="color:#800080;">0.351</span><span style="color: #009900;">&#41;</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: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/444/php/umrechnen-von-milimetern-in-punkt-z-b-beim-erzeugen-von-pdf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Suche &#8211; Die Anzahl der Treffer limitieren und auf eine Kategorie einschränken</title>
		<link>http://www.php-log.de/434/php/wordpress-suche-die-anzahl-der-treffer-limitieren-und-auf-eine-kategorie-einschranken</link>
		<comments>http://www.php-log.de/434/php/wordpress-suche-die-anzahl-der-treffer-limitieren-und-auf-eine-kategorie-einschranken#comments</comments>
		<pubDate>Wed, 19 Aug 2009 11:05:55 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=434</guid>
		<description><![CDATA[Die WordPress &#8211; Standardsuche ist auf den ersten Blick nicht allzu mächtig. Es gibt jedoch einige Optionen die unter der Oberfläche verborgen sind. So kann man in den Templates  recht einfach Einfluss auf die Anzahl der im Suchergebniss angezeigten Treffer nehmen. In der Datei search.php einfach diese Stelle suchen: &#60;?php while &#40;have_posts&#40;&#41;&#41; : the_post&#40;&#41;; ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Die WordPress &#8211; Standardsuche ist auf den ersten Blick nicht allzu mächtig. Es gibt jedoch einige Optionen die unter der Oberfläche verborgen sind.<span id="more-434"></span></p>
<p>So kann man in den Templates  recht einfach Einfluss auf die Anzahl der im Suchergebniss angezeigten Treffer nehmen. In der Datei search.php einfach diese Stelle suchen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div <span style="color: #000000; font-weight: bold;">&lt;?php</span> post_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;</pre></div></div>

<p>und diesen Code hinzufügen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$posts</span><span style="color: #339933;">=</span>query_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;posts_per_page=100'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div <span style="color: #000000; font-weight: bold;">&lt;?php</span> post_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;</pre></div></div>

<p>mit dem Parameter posts_per_page legt man dann die Anzahl der Treffer pro Seite fest. Ein Wert von -1 zeigt alle Treffer ohne Pagination.</p>
<p>Dann hat man auch noch recht einfach die Option die Suche auf eine Kategorie einzugrenzen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$posts</span><span style="color: #339933;">=</span>query_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;posts_per_page=-1&amp;cat=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div <span style="color: #000000; font-weight: bold;">&lt;?php</span> post_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/434/php/wordpress-suche-die-anzahl-der-treffer-limitieren-und-auf-eine-kategorie-einschranken/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend_Mail_Storage_Pop3 verschluckt Umlaute im Subject</title>
		<link>http://www.php-log.de/431/php/zend_mail_storage_pop3-verschluckt-umlaute-im-subject</link>
		<comments>http://www.php-log.de/431/php/zend_mail_storage_pop3-verschluckt-umlaute-im-subject#comments</comments>
		<pubDate>Tue, 18 Aug 2009 22:52:10 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=431</guid>
		<description><![CDATA[Das verarbeiten von E-Mail ist und bleibt eine Qual. Es gibt meines Wissens nach keine Klasse die einem Webentwickler die Tücken beim empfangen und verarbeiten von E-Mails abnimmt. Zend_Mail_Storage_Pop3 hat mich heute auch auf Trab gehalten, kamen doch plötzlich Mails ohne Umlaute an. Nicht wie üblich verratschebammelt, sondern gar keine. Nichts. Die Lösung liegt in [...]]]></description>
			<content:encoded><![CDATA[<p>Das verarbeiten von E-Mail ist und bleibt eine Qual. Es gibt meines Wissens nach keine Klasse die einem Webentwickler die Tücken beim empfangen und verarbeiten von E-Mails abnimmt. Zend_Mail_Storage_Pop3 hat mich heute auch auf Trab gehalten, kamen doch plötzlich Mails ohne Umlaute an. Nicht wie üblich verratschebammelt, sondern gar keine. Nichts.</p>
<p><span id="more-431"></span></p>
<p>Die Lösung liegt in der Verwendung der Raw Header Daten. Das heisst nach meinem Verständis, dass die Klasse schon in der Lage ist die Mails korrekt zu empfangen, aber unter bestimmten Umständen (ich vermute unterschiedliche Zeichensätze in den Headern), verschluckt Sie einfach die Umlaute im Subject. Somit wird die Eigenschaft $message->subject relativ nutzlos, denn woran soll mein Script merken dass die Umlaute fehlen&#8230;?</p>
<p>Hier nun der Code zum Problem:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$mail</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Mail_Storage_Pop3<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'host'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$email_host</span><span style="color: #339933;">,</span>
                                         <span style="color: #0000ff;">'user'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$email_username</span><span style="color: #339933;">,</span>
                                         <span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$email_password</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$mail</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$num</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Plötzlich waren die Umlaute verschluckt</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$message</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">subject</span> <span style="color: #339933;">;</span> 
	<span style="color: #666666; font-style: italic;">// Mglicherweise berraschend, hnliches hatte ich noch nicht</span>
&nbsp;
&nbsp;
	<span style="color: #666666; font-style: italic;">// Die Lösung in diesem Fall</span>
	<span style="color: #000088;">$header</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRawHeader</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$num</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$lines</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$header</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;Subject:&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// Möglicherweise überraschend, ähnliches hatte ich noch nicht	</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Ich würde mich wirklich freuen, wenn mich jemand auf eine Klasse aufmerksam macht, die es erlaubt eingehende Mails korrekt zu verarbeiten. Eine Klasse, egal welche Sprache&#8230;ohne dass ich mich als Benutzer noch um Zeichsatz und Encoding-HickHack kümmern muss <img src='http://www.php-log.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Ja, das wäre was&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/431/php/zend_mail_storage_pop3-verschluckt-umlaute-im-subject/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ein Array mit fortlaufenden Tage eines Intervals mit Zend_Date</title>
		<link>http://www.php-log.de/425/php/ein-array-mit-fortlaufenden-tage-eines-intervals-mit-zend_date</link>
		<comments>http://www.php-log.de/425/php/ein-array-mit-fortlaufenden-tage-eines-intervals-mit-zend_date#comments</comments>
		<pubDate>Sat, 15 Aug 2009 21:10:59 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=425</guid>
		<description><![CDATA[Lang ist&#8217;s her dass ich eine Tabelle bauen musste, deren Zeilen einen jeweils einen Tag eines bestimmten Datum-Intervals representieren. So wie hier: Für die Lösung nutze ich wie immer Zend_Date. /** * Get an array with all days $from - $till * * @param string $from start date e.g. 2008-12-24 * @param string $till end [...]]]></description>
			<content:encoded><![CDATA[<p>Lang ist&#8217;s her dass ich eine Tabelle bauen musste, deren Zeilen einen jeweils einen Tag eines bestimmten Datum-Intervals representieren. So wie hier:</p>
<div id="attachment_426" class="wp-caption alignleft" style="width: 413px"><img class="size-full wp-image-426" title="Datumsinterval" src="http://www.php-log.de/wp-content/uploads/2009/08/Editors.png" alt="Datumsinterval" width="403" height="256" /><p class="wp-caption-text">Ein Array mit fortlaufenden Tagen eines Datum-Interval</p></div>
<p><span id="more-425"></span></p>
<p>Für die Lösung nutze ich wie immer Zend_Date.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Get an array with all days $from - $till
 *
 * @param string $from start date e.g. 2008-12-24
 * @param string $till end date e.g. 2008-12-24
 * @param string $max maximal number of days 
 * @return array
 * @author Ralf Kramer
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> getDayArray<span style="color: #009900;">&#40;</span><span style="color: #000088;">$from</span><span style="color: #339933;">,</span> <span style="color: #000088;">$till</span><span style="color: #339933;">,</span> <span style="color: #000088;">$max</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">365</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$start</span> 	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Date<span style="color: #009900;">&#40;</span><span style="color: #000088;">$from</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$stop</span> 	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Date<span style="color: #009900;">&#40;</span><span style="color: #000088;">$till</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</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: #b1b100;">while</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$start</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">compare</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$stop</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #990000;">array_push</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #339933;">,</span> 
			<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
				<span style="color: #0000ff;">'date'</span> 		<span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$start</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'yyyy-MM-dd'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'week'</span> 		<span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$start</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span>Zend_Date<span style="color: #339933;">::</span><span style="color: #004000;">WEEK</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'day_name'</span> 	<span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$start</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span>Zend_Date<span style="color: #339933;">::</span><span style="color: #004000;">WEEKDAY</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'weekday'</span> 	<span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$start</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span>Zend_Date<span style="color: #339933;">::</span><span style="color: #004000;">WEEKDAY_DIGIT</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$start</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> Zend_Date<span style="color: #339933;">::</span><span style="color: #004000;">DAY</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Emergency break</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$max</span> <span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$res</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$dates</span> <span style="color: #339933;">=</span> getDayArray<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'2009-01-01'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'2009-01-07'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dates</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">Array</span>
<span style="color: #009900;">&#40;</span>
    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span>
            <span style="color: #009900;">&#91;</span>week<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #208080;">01</span>
            <span style="color: #009900;">&#91;</span>day_name<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> Donnerstag
            <span style="color: #009900;">&#91;</span>weekday<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">4</span>
        <span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">02</span>
            <span style="color: #009900;">&#91;</span>week<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #208080;">01</span>
            <span style="color: #009900;">&#91;</span>day_name<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> Freitag
            <span style="color: #009900;">&#91;</span>weekday<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">5</span>
        <span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">03</span>
            <span style="color: #009900;">&#91;</span>week<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #208080;">01</span>
            <span style="color: #009900;">&#91;</span>day_name<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> Samstag
            <span style="color: #009900;">&#91;</span>weekday<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">6</span>
        <span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">04</span>
            <span style="color: #009900;">&#91;</span>week<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #208080;">01</span>
            <span style="color: #009900;">&#91;</span>day_name<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> Sonntag
            <span style="color: #009900;">&#91;</span>weekday<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span>
        <span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">05</span>
            <span style="color: #009900;">&#91;</span>week<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #208080;">02</span>
            <span style="color: #009900;">&#91;</span>day_name<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> Montag
            <span style="color: #009900;">&#91;</span>weekday<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span>
        <span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">06</span>
            <span style="color: #009900;">&#91;</span>week<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #208080;">02</span>
            <span style="color: #009900;">&#91;</span>day_name<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> Dienstag
            <span style="color: #009900;">&#91;</span>weekday<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2</span>
        <span style="color: #009900;">&#41;</span>
&nbsp;
    <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">Array</span>
        <span style="color: #009900;">&#40;</span>
            <span style="color: #009900;">&#91;</span><span style="color: #990000;">date</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">07</span>
            <span style="color: #009900;">&#91;</span>week<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #208080;">02</span>
            <span style="color: #009900;">&#91;</span>day_name<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> Mittwoch
            <span style="color: #009900;">&#91;</span>weekday<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">3</span>
        <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/425/php/ein-array-mit-fortlaufenden-tage-eines-intervals-mit-zend_date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
