<?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>WEBPIRATEN &#187; PHP</title>
	<atom:link href="http://webpiraten.de/index.php/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://webpiraten.de</link>
	<description>Techblog</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:52:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>doctrine create and drop table on the fly by orm</title>
		<link>http://webpiraten.de/index.php/php/doctrine-create-and-drop-table-on-the-fly-by-orm/</link>
		<comments>http://webpiraten.de/index.php/php/doctrine-create-and-drop-table-on-the-fly-by-orm/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 08:50:28 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Doctrine ORM]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[doctrine]]></category>
		<category><![CDATA[drop]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=368</guid>
		<description><![CDATA[um in doctrine erst in der app tables anzulegen oder auch zu droppen kannst du ein yaml schema anlegen und die orms daraus generieren. dann kannst du in deiner app die table für die orm anlegen bzw. auch wieder droppen]]></description>
			<content:encoded><![CDATA[<p>um in doctrine erst in der app tables anzulegen oder auch zu droppen kannst du ein yaml schema</p>
<pre class="brush: css; title: ; notranslate">
MyTestOrm:
  tableName: my_test_table
  columns:
    id:
      type: integer(8)
      primary: true
      autoincrement: true
      unsigned: true
    title:
      type: string(255)
      notnull: true
    created_at:
      type: timestamp
      notnull: true
  indexes:
    id:
      fields: [id]
    title:
      fields: [title]
</pre>
<p>anlegen und die orms daraus generieren.<br />
dann kannst du in deiner app die table für die orm anlegen</p>
<pre class="brush: php; title: ; notranslate">
Doctrine::createTablesFromArray(
    array(
        'MyTestOrm'
    )
);
</pre>
<p>bzw. auch wieder droppen</p>
<pre class="brush: php; title: ; notranslate">
$table = Doctrine_Core::getTable('MyTestOrm');
$export = new Doctrine_Export();
$export-&gt;dropTable($table-&gt;getTableName());
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/php/doctrine-create-and-drop-table-on-the-fly-by-orm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>agavi output type overwrite in action</title>
		<link>http://webpiraten.de/index.php/frameworks/agavi-output-type-overwrite-in-action/</link>
		<comments>http://webpiraten.de/index.php/frameworks/agavi-output-type-overwrite-in-action/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 13:25:23 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Agavi]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[action]]></category>
		<category><![CDATA[agavi]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[overwrite]]></category>
		<category><![CDATA[set output type]]></category>
		<category><![CDATA[type]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=337</guid>
		<description><![CDATA[um den output type einer agavi action auch nach dem routing zu ändern, kann man innerhalb der action den output type überschreiben.]]></description>
			<content:encoded><![CDATA[<p>um den output type einer agavi action auch nach dem routing zu ändern, kann man innerhalb der action den output type überschreiben.</p>
<pre class="brush: php; title: ; notranslate">

/**
 * assume that 'html' is the standard GET output for this action
 * when this action is called via POST you want to change the output type to 'json'
 * because on error or success you want to show small messages per json instead full html
 */
    public function executeRead(AgaviRequestDataHolder $rd)
    {
        return 'Input';
    }

    public function executeWrite(AgaviRequestDataHolder $rd)
    {
        $this-&gt;getContainer()-&gt;setOutputType($this-&gt;getContext()-&gt;getController()-&gt;getOutputType('json'));
        try
        {
            // do POST stuff
        }
        catch(Exception $e)
        {
            $this-&gt;setAttribute('message', $e-&gt;getMessage());
            return 'Error';
        }
        return 'Success';
    }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/frameworks/agavi-output-type-overwrite-in-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kohana modules &#8211; nützliche module für den täglichen gebrauch</title>
		<link>http://webpiraten.de/index.php/frameworks/kohana-modules-nutzliche-module-fur-den-taglichen-gebrauch/</link>
		<comments>http://webpiraten.de/index.php/frameworks/kohana-modules-nutzliche-module-fur-den-taglichen-gebrauch/#comments</comments>
		<pubDate>Tue, 24 May 2011 20:39:21 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[Kohana ORM]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Versionierung]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[kohana]]></category>
		<category><![CDATA[modul]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[repo]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=324</guid>
		<description><![CDATA[unter dieser url findet ihr nützliche kohana module, die euch jede menge arbeit abnehmen können. http://kohana-modules.com]]></description>
			<content:encoded><![CDATA[<p>unter dieser url findet ihr nützliche kohana module, die euch jede menge arbeit abnehmen können.</p>
<p><a href="http://kohana-modules.com/">http://kohana-modules.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/frameworks/kohana-modules-nutzliche-module-fur-den-taglichen-gebrauch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xgchunker &#8211; kohana 3 modul konvertiert grosse csv/xml dateien in StdClass objekte</title>
		<link>http://webpiraten.de/index.php/frameworks/xgchunker-kohana-3-modul-konvertiert-grosse-csvxml-dateien-in-stdclass-objekte/</link>
		<comments>http://webpiraten.de/index.php/frameworks/xgchunker-kohana-3-modul-konvertiert-grosse-csvxml-dateien-in-stdclass-objekte/#comments</comments>
		<pubDate>Sun, 22 May 2011 12:54:26 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Versionierung]]></category>
		<category><![CDATA[chunk]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[kohana]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[stdclass]]></category>
		<category><![CDATA[xg]]></category>
		<category><![CDATA[xgchunker]]></category>
		<category><![CDATA[xgmanager]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=322</guid>
		<description><![CDATA[webpiraten opensource auf github hat ein neues repo für den xgchunker als kohana 3 modul. er konvertiert riesige csv/xml dateien in kleine chunks als StdClass objekt, um sie dann weiter zu verarbeiten. github.com/webpiraten/xgchunker]]></description>
			<content:encoded><![CDATA[<p>webpiraten opensource auf github hat ein neues repo für den xgchunker als kohana 3 modul.</p>
<p>er konvertiert riesige csv/xml dateien in kleine chunks als StdClass objekt, um sie dann weiter zu verarbeiten.</p>
<p><a href="https://github.com/webpiraten/xgchunker">github.com/webpiraten/xgchunker</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/frameworks/xgchunker-kohana-3-modul-konvertiert-grosse-csvxml-dateien-in-stdclass-objekte/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Das Kohana 3 Cheat Sheet</title>
		<link>http://webpiraten.de/index.php/frameworks/das-kohana-3-cheat-sheet/</link>
		<comments>http://webpiraten.de/index.php/frameworks/das-kohana-3-cheat-sheet/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 16:08:35 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[cheat]]></category>
		<category><![CDATA[doc]]></category>
		<category><![CDATA[kohana]]></category>
		<category><![CDATA[sheet]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=317</guid>
		<description><![CDATA[Kohana 3 Cheat Sheet]]></description>
			<content:encoded><![CDATA[<p><a href="http://kohana.sher.pl/cs/" title="Kohana 3 Cheat Sheet">Kohana 3 Cheat Sheet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/frameworks/das-kohana-3-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpmyadmin mit ssl erzwingen</title>
		<link>http://webpiraten.de/index.php/php/phpmyadmin-mit-ssl-erzwingen/</link>
		<comments>http://webpiraten.de/index.php/php/phpmyadmin-mit-ssl-erzwingen/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 15:17:36 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[my]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[verschlüsselung]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=314</guid>
		<description><![CDATA[trage einfach in die config.inc.php folgendes ans ende der datei:]]></description>
			<content:encoded><![CDATA[<p>trage einfach in die <em>config.inc.php</em> folgendes ans ende der datei:</p>
<pre class="brush: php; title: ; notranslate">
// am ende der config.inc.php
$cfg['ForceSSL'] = true;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/php/phpmyadmin-mit-ssl-erzwingen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shell do something in a while</title>
		<link>http://webpiraten.de/index.php/php/shell-do-something-in-a-while/</link>
		<comments>http://webpiraten.de/index.php/php/shell-do-something-in-a-while/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 11:11:28 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[do]]></category>
		<category><![CDATA[exit]]></category>
		<category><![CDATA[while]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=305</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
#!/bin/bash

DONE=0
while [ $DONE -eq 0 ]
do
    #do something and return something else than 0 when you want to exit this circle
    DONE=$?
done
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/php/shell-do-something-in-a-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rekursive php glob funktion &#8211; ordner/dateien rekursiv nach pattern filtern</title>
		<link>http://webpiraten.de/index.php/php/rekursive-php-glob-funktion-ordnerdateien-rekursiv-nach-pattern-filtern/</link>
		<comments>http://webpiraten.de/index.php/php/rekursive-php-glob-funktion-ordnerdateien-rekursiv-nach-pattern-filtern/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 11:18:10 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[dir]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[glob]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[rekursiv]]></category>
		<category><![CDATA[rglob]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=302</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">

protected function rGlob($pattern = '*', $flags = 0, $path = false)
{
    if (!$path)
    {
        $path = dirname($pattern).DIRECTORY_SEPARATOR;
    }

    $pattern    = basename($pattern);
    $paths      = glob($path.'*', GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT);
    $files      = glob($path.$pattern, $flags);
    foreach ($paths as $path)
    {
        $files = array_merge($files, $this-&gt;rGlob($pattern, $flags, $path));
    }
    return $files;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/php/rekursive-php-glob-funktion-ordnerdateien-rekursiv-nach-pattern-filtern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fusion charts &#8211; schöne flash graphen kostenlos</title>
		<link>http://webpiraten.de/index.php/php/fusion-charts-schone-flash-graphen-kostenlos/</link>
		<comments>http://webpiraten.de/index.php/php/fusion-charts-schone-flash-graphen-kostenlos/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 16:45:09 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[diagramme]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[fusion charts]]></category>
		<category><![CDATA[graph]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=298</guid>
		<description><![CDATA[hier könnt ihr euch fusioncharts ansehen (und downloaden) fusioncharts]]></description>
			<content:encoded><![CDATA[<p>hier könnt ihr euch fusioncharts ansehen (und downloaden)</p>
<p><a href="http://www.fusioncharts.com/free/demos/Blueprint/">fusioncharts</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/php/fusion-charts-schone-flash-graphen-kostenlos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ioncube php loader auf ubuntu mit lighttpd</title>
		<link>http://webpiraten.de/index.php/offtopic/ioncube-php-loader-auf-ubuntu-mit-lighttpd/</link>
		<comments>http://webpiraten.de/index.php/offtopic/ioncube-php-loader-auf-ubuntu-mit-lighttpd/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 20:36:42 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OffTopic]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[XT Commerce]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[lighty]]></category>
		<category><![CDATA[loader]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=283</guid>
		<description><![CDATA[Hier eine kurze Anleitung wie man ioncube php loader auf ubuntu mit lighty webserver installieren kann.]]></description>
			<content:encoded><![CDATA[<p>Hier eine kurze Anleitung wie man ioncube php loader auf ubuntu mit lighty webserver installieren kann.</p>
<pre class="brush: bash; title: ; notranslate">
# in den tmp ordner wechseln
cd /tmp

# per wget loader sources holen
wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

# entpacken des tar balls
tar xvfz ioncube_loaders_lin_x86.tar.gz

# verschieben des neuen ioncube ordners nach /usr/local/
mv ioncube /usr/local/

# neue aa_ioncube.ini datei in /etc/php5/cgi/conf.d/ erzeugen
vi /etc/php5/cgi/conf.d/aa_ioncube.ini

# je nach php version diese zeile in die aa_ioncube.ini
# datei schreiben und mit :wq speichern
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so

# lighty neu starten
/etc/init.d/lighttpd restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/offtopic/ioncube-php-loader-auf-ubuntu-mit-lighttpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

