<?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>scriptStart</title>
	<atom:link href="http://www.scriptstart.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptstart.de</link>
	<description>der Blog ...</description>
	<lastBuildDate>Fri, 24 Dec 2010 05:26:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>PHP Code: IP trotz Proxy</title>
		<link>http://www.scriptstart.de/2010/12/php-code-ip-trotz-proxy/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-ip-trotz-proxy/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 11:32:15 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Server und System]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Proxy]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=175</guid>
		<description><![CDATA[Gibt die IP-Adresse aus, obwohl der Besucher über ein Proxy verbunden ist. &#60;?php function getproxip() { if (getenv("HTTP_X_FORWARDED_FOR")) { $realip = getenv("HTTP_X_FORWARDED_FOR"); } else { $realip = getenv("REMOTE_ADDR"); } return $realip; } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Gibt die IP-Adresse aus, obwohl der Besucher über ein Proxy verbunden ist.</p>
<pre class="brush:php">&lt;?php

function getproxip() {
 if (getenv("HTTP_X_FORWARDED_FOR")) {
  $realip = getenv("HTTP_X_FORWARDED_FOR");
 } else {
  $realip = getenv("REMOTE_ADDR");
 }
  return $realip;
}

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-ip-trotz-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: Verzeichnis listing</title>
		<link>http://www.scriptstart.de/2010/12/php-code-verzeichnis-listing/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-verzeichnis-listing/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 19:13:18 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Dateien]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Verzeichnis]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=188</guid>
		<description><![CDATA[Einfache Funktion um einen Ordner auszulesen. &#60;?php function get_dirlist ($path = '') { if (empty($path)) $path = "./"; $dirlist = array(); $d = dir($path); while($entry=$d-&#62;read()) { if ($entry=='.' OR $entry=='..') continue; if ($entry == 'images') continue; if (is_dir($entry)) $dirlist[] = $entry; } $d-&#62;close(); sort($dirlist); @reset($dirlist); return $dirlist; } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Einfache Funktion um einen Ordner auszulesen.</p>
<pre class="brush:php">&lt;?php

function get_dirlist ($path = '') {
 if (empty($path)) $path = "./";
  $dirlist = array();
  $d = dir($path);
  while($entry=$d-&gt;read()) {
   if ($entry=='.' OR $entry=='..') continue;
   if ($entry == 'images') continue;
   if (is_dir($entry))  $dirlist[] = $entry;
  }
  $d-&gt;close();
  sort($dirlist);
  @reset($dirlist);

  return $dirlist;
}

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-verzeichnis-listing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: Verzeichnis samt Inhalt loeschen</title>
		<link>http://www.scriptstart.de/2010/12/php-code-verzeichnis-samt-inhalt-loeschen/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-verzeichnis-samt-inhalt-loeschen/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 19:11:43 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Dateien]]></category>
		<category><![CDATA[Server und System]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Verzeichnis]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=186</guid>
		<description><![CDATA[Mit diesem Schnipsel kann man ein Verzeichnis samt Inhalt löschen, vorrausgesetzt ist das die Zugriffsrechte entsprechend sind. &#60;?php function deltree($dir) { if($objs = glob($dir."/*")){ foreach($objs as $obj) { is_dir($obj)? deltree($obj) : unlink($obj); } } rmdir($dir); } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Mit diesem Schnipsel kann man ein Verzeichnis samt Inhalt löschen, vorrausgesetzt ist das die Zugriffsrechte entsprechend sind.</p>
<pre class="brush:php">&lt;?php 

function deltree($dir) {
 if($objs = glob($dir."/*")){
  foreach($objs as $obj) {
   is_dir($obj)? deltree($obj) : unlink($obj);
  }
 }
 rmdir($dir);
}

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-verzeichnis-samt-inhalt-loeschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: RGB in Hex Konvertieren (RGB to Hex)</title>
		<link>http://www.scriptstart.de/2010/12/php-code-rgb-in-hex-konvertieren-rgb-to-hex/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-rgb-in-hex-konvertieren-rgb-to-hex/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 19:10:03 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Strings]]></category>
		<category><![CDATA[Zahlen und Mathe]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[Hex]]></category>
		<category><![CDATA[Konvertieren]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RGB]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=184</guid>
		<description><![CDATA[Einfache Funktion um von RGB in Hexadezimal umzuwandeln. (RGB to Hex) &#60;?php function rgb2hex($rgb) { if ($rgb == "" &#124;&#124; (!$rgb)) return "#FFFFFF"; $hex = split(",",$rgb); $r = dechex($hex[0]); $g = dechex($hex[1]); $b = dechex($hex[2]); return "#".$r.$g.$b; } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Einfache Funktion um von RGB in Hexadezimal umzuwandeln. (RGB to Hex)</p>
<pre class="brush:php">&lt;?php

function rgb2hex($rgb) {
 if ($rgb == "" || (!$rgb)) return "#FFFFFF";
 $hex = split(",",$rgb);

 $r = dechex($hex[0]);
 $g = dechex($hex[1]);
 $b = dechex($hex[2]);

 return "#".$r.$g.$b;
}
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-rgb-in-hex-konvertieren-rgb-to-hex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: Server Online-Check</title>
		<link>http://www.scriptstart.de/2010/12/php-code-server-online-check/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-server-online-check/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 19:03:43 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Server und System]]></category>
		<category><![CDATA[Check]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Prüfung]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=178</guid>
		<description><![CDATA[Dieses Script prüft, ob eine IP-Adresse erreichbar ist. &#60;?php $ip = "128.0.0.1"; $fp = @fsockopen ($ip,80,$errno,$errstr,30); if (!$fp) { echo '&#60;font color="red"&#62;Offline&#60;/font&#62;'; } else { echo '&#60;font color="green"&#62;Online&#60;/font&#62;'; fclose($fp); } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Dieses Script prüft, ob eine IP-Adresse erreichbar ist.</p>
<pre class="brush:php">&lt;?php

$ip = "128.0.0.1";

$fp = @fsockopen ($ip,80,$errno,$errstr,30);
if (!$fp) {
 echo '&lt;font color="red"&gt;Offline&lt;/font&gt;';
} else {
 echo '&lt;font color="green"&gt;Online&lt;/font&gt;';

 fclose($fp);
}

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-server-online-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: Bild-Größen Limit</title>
		<link>http://www.scriptstart.de/2010/12/php-code-bild-grosen-limit/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-bild-grosen-limit/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 19:02:13 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[GD Library]]></category>
		<category><![CDATA[Bild]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[Größe]]></category>
		<category><![CDATA[Limit]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=176</guid>
		<description><![CDATA[Dieses Script begrenzt die Größe eines Bildes auf den, in der Funktion definierten Wert. &#60;?php function piclimiter ($bild, $size) { $imginfo = @getimagesize($bild); if(($imginfo[0] != 0 &#38;&#38; $imginfo[0] &#62; $size) &#124;&#124; ($imginfo[1] != 0 &#38;&#38; $imginfo[1] &#62; $size)) { if($size != 0) { $div1 = $size / $imginfo[0]; $div2 = $size / $imginfo[1]; } else [...]]]></description>
			<content:encoded><![CDATA[<p>Dieses Script begrenzt die Größe eines Bildes auf den, in der Funktion definierten Wert.</p>
<pre class="brush:php">&lt;?php

function piclimiter ($bild, $size) {
 $imginfo = @getimagesize($bild);

 if(($imginfo[0] != 0 &amp;&amp; $imginfo[0] &gt; $size) || ($imginfo[1] != 0 &amp;&amp; $imginfo[1] &gt; $size)) {
  if($size != 0) {
   $div1 = $size / $imginfo[0];
   $div2 = $size / $imginfo[1];
  } else {
   $div1 = 1;
   $div2 = 1;
  }
  if($div1 &lt; $div2) {
   $imgwidth = $size;
   $imgheight = round($imginfo[1]*$div1);
  } else {
   $imgheight = $size;
   $imgwidth = round($imginfo[0]*$div2);
  }

 $picture = '&lt;img src="'.$bild.'"width="'.$imgwidth.'"height="'.$imgheight.'" border="0"&gt;';
 } else {
  $picture = '&lt;img src="'.$bild.'" border="0"&gt;';
 }
 return $picture;
}

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-bild-grosen-limit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: ICQ Online Check</title>
		<link>http://www.scriptstart.de/2010/12/php-code-icq-online-check/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-icq-online-check/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 18:53:54 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Server und System]]></category>
		<category><![CDATA[Check]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[ICQ]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Prüfung]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=172</guid>
		<description><![CDATA[Hiermit kannst du überprüfen ob eine ICQ Nummer online ist. Die Ausgabe erfolgt in Text. &#60;?php function GetICQ($uin) { if (!is_numaeric($uin)) return FALSE; $fp = fsockopen('web.icq.com',80,&#38;$errno,&#38;$errstr,8); if (!$fp) return FALSE; $request = "HEAD /whitepages/online?icq=$uin&#38;img=5 HTTP/1.0\r\n"."Host: web.icq.com\r\n"."Connection: close\r\n\r\n"; fputs($fp, $request); do { $response = fgets($fp, 1024); } while (!feof($fp) &#38;&#38; !stristr($response,'Location')); fclose($fp); if (strstr($response, '4367')) return [...]]]></description>
			<content:encoded><![CDATA[<p>Hiermit kannst du überprüfen ob eine ICQ Nummer online ist. Die Ausgabe erfolgt in Text.</p>
<pre class="brush:php">&lt;?php

function GetICQ($uin) {
 if (!is_numaeric($uin)) return FALSE;
 $fp = fsockopen('web.icq.com',80,&amp;$errno,&amp;$errstr,8);
 if (!$fp) return FALSE;
 $request = "HEAD /whitepages/online?icq=$uin&amp;img=5 HTTP/1.0\r\n"."Host: web.icq.com\r\n"."Connection: close\r\n\r\n";
 fputs($fp, $request);

 do {
  $response = fgets($fp, 1024);
 } while (!feof($fp) &amp;&amp; !stristr($response,'Location'));

 fclose($fp);

 if (strstr($response, '4367'))
   return 'online';
 if (strstr($response, '4349'))
   return 'offline';
 if (strstr($response, '4386'))
   return 'disabled';

 return FALSE;
}

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-icq-online-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: Globals off &#8211; on</title>
		<link>http://www.scriptstart.de/2010/12/php-code-globals-off-on/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-globals-off-on/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 18:51:07 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Server und System]]></category>
		<category><![CDATA[Globals]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=170</guid>
		<description><![CDATA[Braucht eins eurer Scripts &#8220;Register Globals on&#8221;, aber euer Server ist auf &#8220;Register Globals off&#8221;, dann kann euch diese Zeile helfen. &#60;?php //In die erste Zeile setzen extract($_REQUEST,EXTR_SKIP); ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Braucht eins eurer Scripts &#8220;Register Globals on&#8221;, aber euer Server ist auf &#8220;Register Globals off&#8221;, dann kann euch diese Zeile helfen.</p>
<pre class="brush:php">&lt;?php

//In die erste Zeile setzen
extract($_REQUEST,EXTR_SKIP);

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-globals-off-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: einfache Ver &#8211; und Entschluesselung</title>
		<link>http://www.scriptstart.de/2010/12/php-code-einfache-ver-und-entschluesselung/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-einfache-ver-und-entschluesselung/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 18:49:16 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Strings]]></category>
		<category><![CDATA[Zahlen und Mathe]]></category>
		<category><![CDATA[Entschlüsselung]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Verschlüsseln]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=167</guid>
		<description><![CDATA[Dieses Script zeigt einen einfachen Encoder / Decoder Algorithmus. &#60;?php function encode($code,$key) { $laenge = strlen($code); while($n &#60; $laenge) { $encode .= chr(ord( substr($code,$n,1))+$key); $n++; } return $encode; } ?&#62; &#60;?php function decode($decode,$key) { $laenge = strlen($decode); while($n &#60; $laenge) { $decodetext .=chr(ord(substr($decode,$n,1))-$key); $n++; } return $decodetext; } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Dieses Script zeigt einen einfachen Encoder / Decoder Algorithmus.</p>
<pre class="brush:php">&lt;?php

function encode($code,$key) {
 $laenge = strlen($code);
 while($n &lt; $laenge) {
  $encode .= chr(ord( substr($code,$n,1))+$key);
  $n++;
 }
return $encode;
}

?&gt;</pre>
<pre class="brush:php">&lt;?php

function decode($decode,$key) {
 $laenge = strlen($decode);
 while($n &lt; $laenge) {
  $decodetext .=chr(ord(substr($decode,$n,1))-$key);
  $n++;
 }
return $decodetext;
}

?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-einfache-ver-und-entschluesselung/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code: Datei &#8211; Datum</title>
		<link>http://www.scriptstart.de/2010/12/php-code-datei-datum/</link>
		<comments>http://www.scriptstart.de/2010/12/php-code-datei-datum/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 18:46:32 +0000</pubDate>
		<dc:creator>Maciej Rezler</dc:creator>
				<category><![CDATA[Dateien]]></category>
		<category><![CDATA[Datei]]></category>
		<category><![CDATA[Datum]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.scriptstart.de/wordpress/?p=165</guid>
		<description><![CDATA[Gibt das Erstellungsdatum einer beliebigen Datei aus. &#60;?php function FileDate($file) { $date = filectime($file); $out = date('F j, Y,H:i:s', $date); return $out; } ?&#62;]]></description>
			<content:encoded><![CDATA[<p>Gibt das Erstellungsdatum einer beliebigen Datei aus.</p>
<pre class="brush:php">&lt;?php

function FileDate($file) {
 $date = filectime($file);
 $out = date('F j, Y,H:i:s', $date);

  return $out;
}

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptstart.de/2010/12/php-code-datei-datum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
