<?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>Dualbytes &#187; Codeschnipsel</title>
	<atom:link href="http://www.dualbytes.de/category/codeschnipsel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dualbytes.de</link>
	<description>Grafik- &#38; WebDesign</description>
	<lastBuildDate>Sat, 16 Jul 2011 12:15:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Der Regexp Tester geht wieder online!</title>
		<link>http://www.dualbytes.de/2010/09/28/der-regexp-tester-geht-wieder-online/</link>
		<comments>http://www.dualbytes.de/2010/09/28/der-regexp-tester-geht-wieder-online/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 12:13:55 +0000</pubDate>
		<dc:creator>Dualbytes</dc:creator>
				<category><![CDATA[Codeschnipsel]]></category>
		<category><![CDATA[Technik]]></category>

		<guid isPermaLink="false">http://www.dualbytes.de/?p=441</guid>
		<description><![CDATA[Nach vielen Zuschriften der Communitiy bringt MediaCix den Regexer wieder online in neuer Version! Nachdem ich mit E-Mails regelrecht zugeschüttet worden bin, folgt nun die neue Version 4.0 vom Regexp Tester. Zunächst aber die neue URL: regexp-tester.mediacix.de]]></description>
			<content:encoded><![CDATA[<p>Nach vielen Zuschriften der Communitiy bringt <a href="http://www.cix-blog.de" target="_blank">MediaCix</a> den Regexer wieder online in neuer Version!</p>
<blockquote><p><strong>Nachdem ich mit E-Mails regelrecht zugeschüttet worden bin, folgt nun die neue Version 4.0 vom Regexp Tester.<br />
Zunächst aber die neue URL: <a title="regexp-tester.mediacix.de" href="http://regexp-tester.mediacix.de/" target="_new"><strong>regexp-tester.mediacix.de</strong></a></strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dualbytes.de/2010/09/28/der-regexp-tester-geht-wieder-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeschnipsel: Copyright automatisch aktuell halten</title>
		<link>http://www.dualbytes.de/2009/11/27/codeschnipsel-copyright-automatisch-aktuell-halten/</link>
		<comments>http://www.dualbytes.de/2009/11/27/codeschnipsel-copyright-automatisch-aktuell-halten/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 15:27:03 +0000</pubDate>
		<dc:creator>Dualbytes</dc:creator>
				<category><![CDATA[Codeschnipsel]]></category>

		<guid isPermaLink="false">http://www.dualbytes.de/?p=298</guid>
		<description><![CDATA[Weil es nervig ist, jedes Jahr aufs neue die Jahreszahl manuell anzupassen, kann man es mit einer Zeile Code automatisch anpassen lassen. Copyright 2006 - &#60;?php echo date&#40;Y&#41;;?&#62; Die Ausgabe sieht dann so aus: Copyright 2006 &#8211; 2012]]></description>
			<content:encoded><![CDATA[<p>Weil es nervig ist, jedes Jahr aufs neue die Jahreszahl manuell anzupassen, kann man es mit einer Zeile Code automatisch anpassen lassen.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Copyright 2006 - <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span>Y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Die Ausgabe sieht dann so aus:</p>
<blockquote><p>Copyright 2006 &#8211; 2012</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dualbytes.de/2009/11/27/codeschnipsel-copyright-automatisch-aktuell-halten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wie kann ich die IP des Users erfahren?</title>
		<link>http://www.dualbytes.de/2009/11/24/wie-kann-ich-die-ip-des-users-erfahren/</link>
		<comments>http://www.dualbytes.de/2009/11/24/wie-kann-ich-die-ip-des-users-erfahren/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:43:08 +0000</pubDate>
		<dc:creator>Dualbytes</dc:creator>
				<category><![CDATA[Codeschnipsel]]></category>

		<guid isPermaLink="false">http://www.dualbytes.de/?p=283</guid>
		<description><![CDATA[Wenn ihr schnell und einfach die IP des Besuchers anzeigen wollt so könnt ihr folgende Codezeilen benutzen. 1 2 3 &#60;?php echo 'Ihre IP-Adresse lautet ' . $_SERVER&#91;'REMOTE_ADDR'&#93;; ?&#62; Das ganze sieht dann so aus: Ihre IP-Adresse lautet 38.107.179.207]]></description>
			<content:encoded><![CDATA[<p>Wenn ihr schnell und einfach die IP des Besuchers anzeigen wollt so könnt ihr folgende Codezeilen benutzen.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Ihre IP-Adresse lautet '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Das ganze sieht dann so aus:</p>
<blockquote><p>Ihre IP-Adresse lautet 38.107.179.207</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dualbytes.de/2009/11/24/wie-kann-ich-die-ip-des-users-erfahren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeschnipsel: Wieviele Tage sind vergangen seit &#8230; ?</title>
		<link>http://www.dualbytes.de/2009/10/20/codeschnipsel-wieviele-tage-sind-vergangen-seit/</link>
		<comments>http://www.dualbytes.de/2009/10/20/codeschnipsel-wieviele-tage-sind-vergangen-seit/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:50:36 +0000</pubDate>
		<dc:creator>Dualbytes</dc:creator>
				<category><![CDATA[Codeschnipsel]]></category>

		<guid isPermaLink="false">http://www.dualbytes.de/?p=226</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 &#160; &#60;?php // Tage seit dem ... (Counter) $datum=&#34;01.01.1998&#34;; $d=explode&#40;&#34;.&#34;,$datum&#41;; $unix=mktime&#40;0,0,0,$d&#91;1&#93;,$d&#91;0&#93;,$d&#91;2&#93;&#41;; $stamp=time&#40;&#41;; $diff=$stamp-$unix; $diff=$diff/86400; echo 'Es sind '.floor&#40;$diff&#41;.' Tage seit dem '.$datum.' vergangen'; ?&#62; Es sind 5149 Tage seit dem 01.01.1998 vergangen]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Tage seit dem ... (Counter)</span>
<span style="color: #000088;">$datum</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;01.01.1998&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$d</span><span style="color: #339933;">=</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$datum</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$unix</span><span style="color: #339933;">=</span><span style="color: #990000;">mktime</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$d</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$d</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$d</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$stamp</span><span style="color: #339933;">=</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$diff</span><span style="color: #339933;">=</span><span style="color: #000088;">$stamp</span><span style="color: #339933;">-</span><span style="color: #000088;">$unix</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$diff</span><span style="color: #339933;">=</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">86400</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Es sind '</span><span style="color: #339933;">.</span><span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$diff</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' Tage seit dem '</span><span style="color: #339933;">.</span><span style="color: #000088;">$datum</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' vergangen'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<blockquote><p>Es sind 5149 Tage seit dem 01.01.1998 vergangen</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dualbytes.de/2009/10/20/codeschnipsel-wieviele-tage-sind-vergangen-seit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

