<?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>h4x3d.com &#187; php</title>
	<atom:link href="http://h4x3d.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://h4x3d.com</link>
	<description>online portfolio of Julian Klewes</description>
	<lastBuildDate>Mon, 25 Jul 2011 13:18:32 +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>New Year, update copyright script/code php</title>
		<link>http://h4x3d.com/new-year-update-copyright-scriptcode-php/</link>
		<comments>http://h4x3d.com/new-year-update-copyright-scriptcode-php/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 14:07:03 +0000</pubDate>
		<dc:creator>jez</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[new year]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[year]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/new-year-update-copyright-scriptcode-php/</guid>
		<description><![CDATA[I always laugh at sites that have &#8220;old&#8221; copyright information on them and I almost forgot to update mine. No-longer shall I be doing that with thanks to PHPÂ´s little helper in form of the following one-line (I call it) &#8220;New Year Update Copyright script&#8221; in PHP: What it does is quite obvious: it outputs [...]]]></description>
			<content:encoded><![CDATA[<p>I always laugh at sites that have &#8220;old&#8221; copyright information on them and I almost forgot to update mine.<br />
No-longer shall I be doing that with thanks to PHPÂ´s little helper in form of the following one-line (I call it) &#8220;New Year Update Copyright script&#8221; in PHP:</p>
<pre><code></code></pre>
<p>What it does is quite obvious: it outputs the current year, so for instance you could have it say:<br />
(c) 2006 &#8211; (php block here)</p>
<p>this would render (c) 2006 &#8211; 2008</p>
<p>- hope this helps anyone.<br />
Now as I look at this issue, I wonder if I was smart enough to build that into all my themes. If not, I got some revising to do after I have finished my next exam in January (11th).</p>
<p><em>Update:</em> bleh I put</p>
<pre><code></code></pre>
<p>in pretty much all my themes, which is stupid I fear &#8211; but for now it is noted on my to-do list and will be sorted out with the next wave of updates!</p>
<p><em>Update:</em> <a href="http://lorelle.wordpress.com/2007/09/03/displaying-the-date-in-your-wordpress-theme/">Lorelle</a> put the_time(); too, so I guess I might as well leave it like that.</p>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/new-year-update-copyright-scriptcode-php/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Compressing moo.tools (javascript) even further</title>
		<link>http://h4x3d.com/compressing-mootools-javascript-even-further/</link>
		<comments>http://h4x3d.com/compressing-mootools-javascript-even-further/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 09:45:06 +0000</pubDate>
		<dc:creator>jez</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[moo]]></category>
		<category><![CDATA[moo.fx]]></category>
		<category><![CDATA[moo.tools]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/compressing-mootools-javascript-even-further/</guid>
		<description><![CDATA[Moo.tools is neat, I love it and use it whenever I can, but one thing is still bugging me: its size. Even though moo.tools can be downloaded compressed (using the great php5 version of dean edward&#8217;s packer), I personally find 18kb of javascript too much. So I started researching a bit with Google and found [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right;padding: 20px"><!--adsense#200_inlay--></div>
<p><a href="http://mootools.net">Moo.tools</a> is neat, I love it and use it whenever I can, but one thing is still bugging me: its size.<br />
Even though moo.tools can be <a href="http://mootools.net/download">downloaded</a> <em>compressed</em> (using the great php5 version of <a href="http://dean.edwards.name/packer/">dean edward&#8217;s packer</a>), I personally find <b>18kb</b> of javascript too much.</p>
<p><em>So I started researching a bit with Google and found out different way of compressing moo.tools (or actually whatever javascript you have) even further:</em></p>
<p>The first method, which I am using works like this:<br />
+ You rename your javascript file (moo.tools) from the original filename.js to filename.js.<b>php</b><br />
+ Open the file with your favourite editor and add the following line just at the very <em>TOP</em> of the code:</p>
<pre><code>

</code></pre>
<p>+ Next, scroll down to the end of the file in your editor and add the following to the bottom:</p>
<pre><code>

</code></pre>
<p>+ Save your file and upload it.</p>
<p>Now add it to your website using the old HTML code, but keep in mind to add the <b>.php</b>-file extension.<br />
It might look like this:</p>
<pre><code>

</code></pre>
<p class="update">I was able to reduce the whooping 18kb moo.tools down to 9kb this way. Well, actually I did not do anything, but the server and its php and zlib.</p>
<div style="float: right;padding: 20px"><!--adsense#200_inlay--></div>
<p>Other methods:<br />
At the top of Javascript:</p>
<pre><code>

</code></pre>
<p>.htaccess method<br />
Save a compressed javascript file as *.jgz, and write .htaccess like this.</p>
<pre><code>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ".*Safari.*" [OR]
RewriteCond %{HTTP:Accept-Encoding} !gzip
RewriteRule (.*)\.jgz$ $1\.js [L]

AddType "text/javascript;charset=UTF-8" .jgz
AddEncoding gzip .jgz
</code></pre>
<div style="float: right;padding: 20px"><!--adsense#200_inlay--></div>
<p>Filesmatch .htaccess method:</p>
<pre><code>

ForceType text/javascript
Header set Content-Encoding: gzip

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule (.*)\.js$ $1\.js.gz [L]
ForceType text/javascript

</code></pre>
<p><u>Sources / Ideas:</u><br />
1. <a href="http://paulstamatiou.com/2007/03/18/how-to-optimize-your-css-even-more/" target="_Blank">paulstamatiou.com</a><br />
2. <a target="_Blank" href="http://joseph.randomnetworks.com/archives/2006/07/13/compressed-javascript/">randomnetworks.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/compressing-mootools-javascript-even-further/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate entry ?0&#8242; for key 1</title>
		<link>http://h4x3d.com/duplicate-entry-0-for-key-1/</link>
		<comments>http://h4x3d.com/duplicate-entry-0-for-key-1/#comments</comments>
		<pubDate>Sun, 23 Apr 2006 09:22:36 +0000</pubDate>
		<dc:creator>jez</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[2006]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/duplicate-entry-0-for-key-1/</guid>
		<description><![CDATA[1. Go into your phpMyAdmin panel. 2. For each tables structure, edit the first entry (which should be a primary key such as ID). 3. Delete the 0 in the default value and select &#8220;auto_increment&#8221; in the drop-down menu next to it (on the right). 4. Save. 5. Go to the next table and do [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<div>1. Go into your phpMyAdmin panel.<br />
2. For each tables structure, edit the first entry (which should be a primary key such as ID).<br />
3. Delete the 0 in the default value and select &#8220;<strong>auto_increment</strong>&#8221; in the drop-down menu next to it (on the right).<br />
4. Save.<br />
5. Go to the next table and do the same.</div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/duplicate-entry-0-for-key-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing a row in MYSQL with PHP</title>
		<link>http://h4x3d.com/23/</link>
		<comments>http://h4x3d.com/23/#comments</comments>
		<pubDate>Fri, 26 Aug 2005 09:28:07 +0000</pubDate>
		<dc:creator>jez</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Oldskool]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/v9.1/?p=23</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><code><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting a row in MYSQL with PHP</title>
		<link>http://h4x3d.com/deleting-a-row-in-mysql-with-php/</link>
		<comments>http://h4x3d.com/deleting-a-row-in-mysql-with-php/#comments</comments>
		<pubDate>Fri, 26 Aug 2005 09:23:48 +0000</pubDate>
		<dc:creator>jez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/v9.1/?p=22</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<blockquote><p>
<code> </code>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/deleting-a-row-in-mysql-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Collection of PHP Tutorials</title>
		<link>http://h4x3d.com/collection-of-php-tutorials/</link>
		<comments>http://h4x3d.com/collection-of-php-tutorials/#comments</comments>
		<pubDate>Sat, 02 Jul 2005 21:03:49 +0000</pubDate>
		<dc:creator>jez</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Oldskool]]></category>
		<category><![CDATA[2005]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.h4x3d.com/v9.1/?p=57</guid>
		<description><![CDATA[the php tutorials got lost in the server moval, sorry about that!]]></description>
			<content:encoded><![CDATA[<p>the php tutorials got lost in the server moval, sorry about that!</p>
]]></content:encoded>
			<wfw:commentRss>http://h4x3d.com/collection-of-php-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

