<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Php on Marco Gabriel Blog</title>
    <link>https://www.marcogabriel.com/tags/php/</link>
    <description>Recent content in Php on Marco Gabriel Blog</description>
    <image>
      <title>Marco Gabriel Blog</title>
      <url>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 24 Jan 2013 01:11:36 +0100</lastBuildDate>
    <atom:link href="https://www.marcogabriel.com/tags/php/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Einfache Logger unter PHP</title>
      <link>https://www.marcogabriel.com/posts/604-einfache-logger-unter-php/</link>
      <pubDate>Thu, 24 Jan 2013 01:11:36 +0100</pubDate>
      <guid>https://www.marcogabriel.com/posts/604-einfache-logger-unter-php/</guid>
      <description>&lt;p&gt;Es gibt für PHP ja so einige Möglichkeiten, Logs zu erzeugen. Apache &lt;a href=&#34;http://logging.apache.org/log4php/&#34;&gt;Log4PHP&lt;/a&gt; dürfte die bekannteste sein, aber ich suchte etwas ganz einfaches und habe &lt;a href=&#34;http://codefury.net/2008/07/klogger-a-simple-logging-class-for-php/&#34;&gt;KLogger&lt;/a&gt; gefunden.&lt;/p&gt;
&lt;p&gt;Einfaches Beispiel:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$log = new KLogger(&amp;#39;/var/log/&amp;#39;); # Specify the log directory
$log-&amp;gt;logInfo(&amp;#39;Returned a million search results&amp;#39;); //Prints to the log file
$log-&amp;gt;logFatal(&amp;#39;Oh dear.&amp;#39;); //Prints to the log file
$log-&amp;gt;logInfo(&amp;#39;Here is an object&amp;#39;, $obj); //Prints to the log file with a dump of the object
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Ideal für meinen Einsatzzweck und in wenigen Minuten implementiert.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Merke: MySQL REPLACE und mysql_affected_rows()</title>
      <link>https://www.marcogabriel.com/posts/560-merke-mysql-replace-und-mysql_affected_rows/</link>
      <pubDate>Thu, 19 Nov 2009 11:18:01 +0100</pubDate>
      <guid>https://www.marcogabriel.com/posts/560-merke-mysql-replace-und-mysql_affected_rows/</guid>
      <description>&lt;p&gt;Merke: Nach einem erfolgreichen &lt;code&gt;REPLACE INTO&lt;/code&gt; meldet &lt;code&gt;mysql_affected_rows()&lt;/code&gt; nicht 1 sondern 2 zurück.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
