<?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>nessio.net - blog &#187; html</title>
	<atom:link href="http://blog.nessio.net/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nessio.net</link>
	<description>Development, Webseiten, Apps und einfach nur ein Blog.</description>
	<lastBuildDate>Mon, 21 Jun 2010 08:37:47 +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>Nostalgie &#8211; Meine erste Homepage</title>
		<link>http://blog.nessio.net/2009/06/09/nostalgie-meine-erste-homepage/</link>
		<comments>http://blog.nessio.net/2009/06/09/nostalgie-meine-erste-homepage/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 04:00:45 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Homepage]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Nostalgie]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.nessio.net/?p=160</guid>
		<description><![CDATA[Es muss irgendwann im Jahr 2001 gewesen sein, als ich die ersten Schritte in HTML lernte. Mittlerweile weiß man ja was ich so baue und daher möchte ich euch einfach mal Zeigen wie ich mit meiner ersten Homepage im Jahr 2001 ins Web gestartet bin…. Link zu meiner ersten Homepage]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_162" class="wp-caption alignleft" style="width: 160px"><img class="size-thumbnail wp-image-162" title="Meine erste Homepage" src="http://blog.nessio.net/wp-content/uploads/2009/06/meine-erste-homepage-150x150.png" alt="Meine erste Homepage" width="150" height="150" /><p class="wp-caption-text">Meine erste Homepage</p></div> Es muss irgendwann im Jahr 2001 gewesen sein, als ich die ersten Schritte in HTML lernte.</p>
<p>Mittlerweile weiß man ja was ich so baue und daher möchte ich euch einfach mal Zeigen wie ich mit meiner ersten Homepage im Jahr 2001 ins Web gestartet bin….</p>
<p><a href="http://nessio.net/erstehp/BENHomepage.htm">Link zu meiner ersten Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nessio.net/2009/06/09/nostalgie-meine-erste-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auf .htaccess passwortgeschützte Seiten mit PHP zugreifen</title>
		<link>http://blog.nessio.net/2009/04/30/auf-htaccess-passwortgeschutzte-seiten-mit-php-zugreifen/</link>
		<comments>http://blog.nessio.net/2009/04/30/auf-htaccess-passwortgeschutzte-seiten-mit-php-zugreifen/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 12:48:43 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[fclose]]></category>
		<category><![CDATA[Funktion]]></category>
		<category><![CDATA[GET]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Timeout]]></category>

		<guid isPermaLink="false">http://blog.nessio.net/?p=70</guid>
		<description><![CDATA[Mal wieder ein aktuelles Problem aus dem alttag. Eine Webseite wird mittel .htaccess geschützt, wie kann man trotzdem an geschützte PHP-Seiten rankommen? Auf der Suche nach der Funktion bin ich auf folgendes Script gestoßen welches Ohne Probleme funktioniert und die .htaccess Anmeldung übernimmt. Konfiguration der Parameter 1 2 3 4 $host = &#34;domain.tld&#34;; // Dein [...]]]></description>
			<content:encoded><![CDATA[<p>Mal wieder ein aktuelles Problem aus dem alttag. Eine Webseite wird mittel .htaccess geschützt, wie kann man trotzdem an geschützte PHP-Seiten rankommen? Auf der Suche nach der Funktion bin ich auf folgendes Script gestoßen welches Ohne Probleme funktioniert und die .htaccess Anmeldung übernimmt.</p>
<p>Konfiguration der Parameter</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;domain.tld&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Dein Host, z.B. admin.server.de oder geheim.de</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/geheim/index.html&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Die URI, auf die dann zugegriffen werden soll</span>
<span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;test&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Benutzername vom .htaccess</span>
<span style="color: #000088;">$pw</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;testpwd&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Passwort vom .htaccess</span></pre></td></tr></table></div>

<p>Der eigentliche Script Inhalt</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: text/html&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sock</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fsockopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errno</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errstr</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 80 = Port, 5 = Timeout</span>
<span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sock</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;GET &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; HTTP/1.1<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sock</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Host: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$host</span><span style="color: #339933;">.</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sock</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Authorization: Basic &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">base64_encode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$pw</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sock</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Connection: close<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sock</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sock</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4096</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Antwort lesen</span>
<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sock</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.nessio.net/2009/04/30/auf-htaccess-passwortgeschutzte-seiten-mit-php-zugreifen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
