<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>pootato.org &#187; Miscellaneous</title>
	<link>http://pootato.org</link>
	<description>Tutorials for your website</description>
	<pubDate>Mon, 26 May 2008 19:56:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>SHTML variables</title>
		<link>http://pootato.org/tutorials/miscellaneous/shtml-variables/</link>
		<comments>http://pootato.org/tutorials/miscellaneous/shtml-variables/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 13:21:23 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/miscellaneous/shtml-variables/</guid>
		<description><![CDATA[Those are just some variables you can put in your SHTML document.
The following one will display the document name.
 &#60;!--#echo var="document_name" --&#62; This one will display the folders in which the document is.
 &#60;!--#echo var="DOCUMENT_URI" --&#62; This one displays the current date and time.
 &#60;!--#echo var="DATE_LOCAL" --&#62; This one displays when the document was last [...]]]></description>
			<content:encoded><![CDATA[<p>Those are just some variables you can put in your <acronym title="Server-Side Include Hyper Text Markup Language">SHTML</acronym> document.</p>
<p>The following one will display the document name.</p>
<p><code> &lt;!--#echo var="document_name" --&gt; </code>This one will display the folders in which the document is.</p>
<p><code> &lt;!--#echo var="DOCUMENT_URI" --&gt; </code>This one displays the current date and time.</p>
<p><code> &lt;!--#echo var="DATE_LOCAL" --&gt; </code>This one displays when the document was last modified.</p>
<p><code> &lt;!--#echo var="last_modified" --&gt; </code>This one shows the visitor IP adress.</p>
<p><code> &lt;!--#echo var="remote_addr" --&gt; </code>This one displays the referer to your page</p>
<p><code> &lt;!--#echo var="http_referer" --&gt; </code>And finally, this one displays which browser the visitor uses.</p>
<p><code> &lt;!--#echo var="http_user_agent" --&gt; </code></p>
<p class="akst_link"><a href="http://pootato.org/?p=37&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_37" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/miscellaneous/shtml-variables/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SHTML basic page</title>
		<link>http://pootato.org/tutorials/miscellaneous/shtml-basic-page/</link>
		<comments>http://pootato.org/tutorials/miscellaneous/shtml-basic-page/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 13:20:07 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/miscellaneous/shtml-basic-page/</guid>
		<description><![CDATA[SHTML or SSI works exactly as PHP Inclusion! Don&#039;t forget, if you want to make a SHTML page, the extension must be .shtml or .shtm! Well, so make your page, with the design, etc. If you&#039;ve understood it, I recommend you to use PHP inclusion instead. :)
 &#60;html&#62;
&#60;head&#62;
&#60;title&#62;Welcome to my webpage&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;!&#8211; Layout code &#8211;&#62;
&#60;p&#62;CONTENTS&#60;/p&#62;
&#60;!&#8211; Layout [...]]]></description>
			<content:encoded><![CDATA[<p><acronym title="Server-Side Include Hyper Text Markup Language">SHTML</acronym> or <acronym title="Server-Side Include">SSI</acronym> works exactly as <acronym title="Hyper Text Preprocessor">PHP</acronym> Inclusion! Don&#039;t forget, if you want to make a <acronym title="Server-Side Include Hyper Text Markup Language">SHTML</acronym> page, the extension must be <em>.shtml</em> or <em>.shtm</em>! Well, so make your page, with the design, etc. If you&#039;ve understood it, I recommend you to use <acronym title="Hyper Text Preprocessor">PHP</acronym> inclusion instead. :)</p>
<p><code> &lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;<strong>Welcome to my webpage</strong>&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
<em>&lt;!&#8211; Layout code &#8211;&gt;</em><br />
&lt;p&gt;CONTENTS&lt;/p&gt;<br />
<em>&lt;!&#8211; Layout code &#8211;&gt;</em><br />
&lt;/body&gt;<br />
&lt;/html&gt; </code></p>
<p>Okay, now you will have to separate it in three parts, the header, the contents and the footer. Open a new document and paste your header. The header is everything <strong>before</strong> the contents. Save it as <em>header.htm</em></p>
<p><code> &lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;<strong>Welcome to my webpage</strong>&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
<em>&lt;!&#8211; Layout code &#8211;&gt;</em> </code></p>
<p>Now, open an other document and paste the footer. The footer is everything <strong>after</strong> the contents. Save it as <em>footer.htm</em></p>
<p><code> <em>&lt;!&#8211; Layout code &#8211;&gt;</em><br />
&lt;/body&gt;<br />
&lt;/html&gt; </code></p>
<p>Good, now, open a new document and paste this:</p>
<p><code> &lt;!--#include virtual="<em>header.htm</em>&#034; &#8211;&gt;<br />
&lt;!&#8211;#include virtual=&#034;<em>footer.htm</em>&#034; &#8211;&gt; </code></p>
<p>Save it as <em>index<u>.shtml</u></em>! Good, you&#039;re almost done!! Now, just add the contents!! :D</p>
<p><code> &lt;!--#include virtual="<em>header.htm</em>&#034; &#8211;&gt;<br />
<strong>&lt;p&gt;Hello welcome! Blah blah!&lt;/p&gt;</strong><br />
&lt;!&#8211;#include virtual=&#034;<em>footer.htm</em>&#034; &#8211;&gt; </code></p>
<p>To make the other pages, you just have to repeat this step! For exemple:</p>
<p><code> &lt;!--#include virtual="<em>header.htm</em>&#034; &#8211;&gt;<br />
<strong>&lt;p&gt;This is another page!&lt;/p&gt;</strong><br />
&lt;!&#8211;#include virtual=&#034;<em>footer.htm</em>&#034; &#8211;&gt; </code></p>
<p>And save it as <em>page1.shtml</em> or whatever! =)</p>
<p class="akst_link"><a href="http://pootato.org/?p=36&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_36" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/miscellaneous/shtml-basic-page/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Password protection</title>
		<link>http://pootato.org/tutorials/miscellaneous/password-protection/</link>
		<comments>http://pootato.org/tutorials/miscellaneous/password-protection/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 12:58:56 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/miscellaneous/password-protection/</guid>
		<description><![CDATA[If you need to protect your site or a part of your site with a password, here are the codes&#8230; You&#039;ll need to make a new file named .htaccess, the file&#039;s name must be exactly .htaccess! Nothing else. Well, so open notepad, and paste this:
 PerlSetVar AuthFile 6541.txt
AuthName &#034;PASSWORD REQUIRED&#034;
AuthType Basic
require valid-user 
Save as .htaccess [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to protect your site or a part of your site with a password, here are the codes&#8230; You&#039;ll need to make a new file named <em>.htaccess</em>, the file&#039;s name must be exactly .htaccess! Nothing else. Well, so open <strong>notepad</strong>, and paste this:</p>
<p><code> PerlSetVar AuthFile <em>6541.txt</em><br />
AuthName &#034;<strong>PASSWORD REQUIRED</strong>&#034;<br />
AuthType Basic<br />
require valid-user </code></p>
<p>Save as .htaccess or paste it in your current htaccess file. &#034;<strong>PASSWORD REQUIRED</strong>&#034; is the message shown when someone tries to access the page. The &#034;<strong>6541.txt</strong>&#034; in bold is the name of the file containing your password and username. I advise you to name it with a name or numbers nobody can find&#8230; If it isn&#039;t in the same folder as your htaccess file, you can add <strong>folder/</strong>6541.txt Well, then, open a new blank document, and put your username and password like this:</p>
<p><code> <em>USERNAME</em>:<strong>PASSWORD</strong> </code></p>
<p>Save it as <strong>6541.txt</strong> !</p>
<p class="akst_link"><a href="http://pootato.org/?p=34&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_34" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/miscellaneous/password-protection/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Anti Direct Linking</title>
		<link>http://pootato.org/tutorials/miscellaneous/anti-direct-linking/</link>
		<comments>http://pootato.org/tutorials/miscellaneous/anti-direct-linking/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 12:57:55 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/miscellaneous/anti-direct-linking/</guid>
		<description><![CDATA[Bandwidth, direct linking, hot linking, etc. When you direct link or hot link, it&#039;s when you insert an image hosted somewhere different from your server. If you do this, you steal bandwidth! The domain owner has a bandwidth limit and he/she paid for it. For exemple, you want to put an image and you write [...]]]></description>
			<content:encoded><![CDATA[<p>Bandwidth, direct linking, hot linking, etc. When you direct link or hot link, it&#039;s when you insert an image hosted somewhere different from your server. If you do this, you <strong>steal</strong> bandwidth! The domain owner has a bandwidth limit and he/she paid for it. For exemple, you want to put an image and you write this in your code:</p>
<p><code> &lt;img src="http://anotherdomain.com/image.gif" alt="" /&gt; </code></p>
<p>This = bad bad bad! Well, anyway, if you&#039;re a &#034;victim&#034; you can try this useful little code&#8230; It deals with htaccess so take care! (<a href="http://wsabstract.com/howto/htaccess10.shtml" target="_blank">source</a> of the code) In your <em>htaccess</em> file, paste this:</p>
<p><code> RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?<em>DOMAIN.com</em>/.*$ [NC]<br />
RewriteRule \.(gif|jpg)$ <em>http://URL.COM/DIE.GIF</em> [R,L] </code></p>
<p>Well, you just have to replace <strong>domain.com</strong> by your domain name&#8230; Then, I recommend you to host a little image somewhere on a free server, it will be shown when someone direct link your pic&#8230; Replace <strong>url.com/die.gif</strong> by the picture&#039;s url. You shouldn&#039;t host it on your server because it will take your bandwidth as well.</p>
<p class="akst_link"><a href="http://pootato.org/?p=33&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_33" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/miscellaneous/anti-direct-linking/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom error pages</title>
		<link>http://pootato.org/tutorials/miscellaneous/custom-error-pages/</link>
		<comments>http://pootato.org/tutorials/miscellaneous/custom-error-pages/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 12:56:08 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/miscellaneous/custom-error-pages/</guid>
		<description><![CDATA[Learn how to make custom 404, 403, &#8230; error pages! Open a text editor, like Windows Notepad, and insert this line of code. Then, save it as .htaccess ! No name, nothing, only .htaccess! Transfert it to your server, right in the public_html folder, or in your root folder.
 ErrorDocument 404 REPLACE_BY_YOUR_PAGE_URL.htm 
Well, it&#039;s the [...]]]></description>
			<content:encoded><![CDATA[<p>Learn how to make custom <em>404</em>, <em>403</em>, &#8230; error pages! Open a text editor, like <em>Windows Notepad</em>, and insert this line of code. Then, save it as <strong>.htaccess</strong> ! No name, nothing, only <strong>.htaccess</strong>! Transfert it to your server, right in the <strong>public_html</strong> folder, or in your root folder.</p>
<p><code> ErrorDocument <em>404</em> <strong>REPLACE_BY_YOUR_PAGE_URL.htm</strong> </code></p>
<p>Well, it&#039;s the same for other pages error, exemple:</p>
<p><code> ErrorDocument <em>400</em> <strong>http://www.you.com/400.htm</strong><br />
ErrorDocument <em>403</em> <strong>http://www.you.com/403.htm</strong><br />
ErrorDocument <em>500</em> <strong>http://www.you.com/500.htm</strong><br />
ErrorDocument <em>404</em> <strong>http://www.you.com/404.htm</strong> </code></p>
<p class="akst_link"><a href="http://pootato.org/?p=32&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_32" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/miscellaneous/custom-error-pages/feed/</wfw:commentRss>
		</item>
		<item>
		<title>No directory listing</title>
		<link>http://pootato.org/tutorials/miscellaneous/no-directory-listing/</link>
		<comments>http://pootato.org/tutorials/miscellaneous/no-directory-listing/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 11:08:48 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/miscellaneous/htaccess/no-directory-listing/</guid>
		<description><![CDATA[If you upload a folder without an index page (i.e. index.html or index.php etc.), and if you go to that folder URL, everything in this folder will be listed. Well, if you want to hide the contents of your folders without uploading index files each time, you should use this code. :) Open your existing [...]]]></description>
			<content:encoded><![CDATA[<p>If you upload a folder without an index page (i.e. index.html or index.php etc.), and if you go to that folder <acronym title="Uniform Resource Locator">URL</acronym>, everything in this folder will be listed. Well, if you want to hide the contents of your folders without uploading index files each time, you should use this code. :) Open your existing <em>htaccess</em> file or a new doc and paste this:</p>
<p><code> IndexIgnore * </code></p>
<p>This will prevent the listing of <em>ALL</em> files, no matter what extension they have. If you want an exemple, try to access this <a href="http://pootato.org/images/" target="_blank">folder</a>. I uploaded images in this folder but the listing has been disabled :) Now, if you want to hide just your images, paste this</p>
<p><code> IndexIgnore <em>*.gif</em> *.jpg *.png </code></p>
<p>You can hide your <acronym title="Hyper Text Markup Language">HTML</acronym> pages as well, by adding <strong>*.html</strong> etc.! Save the file, upload it and once it&#039;s on your server, rename it to <em>.htaccess</em></p>
<p class="akst_link"><a href="http://pootato.org/?p=31&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_31" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/miscellaneous/no-directory-listing/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
