<?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>PHP Programmer</title>
	<atom:link href="http://www.phpprogrammer.co.nz/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpprogrammer.co.nz</link>
	<description>Hamish&#039;s blog all about PHP Programming</description>
	<lastBuildDate>Mon, 30 Aug 2010 01:08:13 +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>Speed test: PHP vs Perl vs Python vs Go vs C</title>
		<link>http://www.phpprogrammer.co.nz/speed-test-php-vs-perl-vs-python-vs-go-vs-c</link>
		<comments>http://www.phpprogrammer.co.nz/speed-test-php-vs-perl-vs-python-vs-go-vs-c#comments</comments>
		<pubDate>Mon, 30 Aug 2010 01:06:53 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP Programming]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/?p=33</guid>
		<description><![CDATA[Recently I have needed to run a cron job every minute on a high load web server. As am currently most fluent in PHP I naturally wrote my script in PHP. However, as it&#039;s running every minute, I do want it to be as fast as possible. Seeing as the script was very simple, I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have needed to run a cron job every minute on a high load web server. As am currently most fluent in PHP I naturally wrote my script in PHP. However, as it&#039;s running every minute, I do want it to be as fast as possible. Seeing as the script was very simple, I thought that the most time required to run is in loading the PHP interpreter. Maybe i could use a compiled language instead? What about Google&#039;s new language Go?</p>
<p>Anyway, for my test I wrote a &#034;hello, world&#034; command line app in each language and ran the program 1000 times. Without any further ado, here are the results, from fastest to slowest:</p>
<p>C: 5.37 seconds</p>
<p>Go: 6.23 seconds</p>
<p>Perl: 7.97 seconds</p>
<p>Python: 20.64 seconds</p>
<p>PHP: 41.31 seconds</p>
<p>There you go! PHP is a bit slow for this kind of thing! But I&#039;m not going to write all my scripts in Go or C now (what a hassle!). So, for me&#8230;. perl wins!</p>
<p>Ahh, good old perl, my faithful friend! I will never forget you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/speed-test-php-vs-perl-vs-python-vs-go-vs-c/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu for mother in law = yay!</title>
		<link>http://www.phpprogrammer.co.nz/ubuntu-for-mother-in-law-yay</link>
		<comments>http://www.phpprogrammer.co.nz/ubuntu-for-mother-in-law-yay#comments</comments>
		<pubDate>Tue, 10 Nov 2009 05:31:08 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/?p=21</guid>
		<description><![CDATA[As I wrote in previous post, my personal experience trying to use ubuntu as a php development box was very brief! However, i was impressed by the GUI side of things in Xubuntu (ubuntu but with the lightweight xfce desktop), and when my mother in law&#039;s (really!) laptop blew up &#8211; I took the opprtunity [...]]]></description>
			<content:encoded><![CDATA[<p>As I wrote in previous post, my personal experience trying to use ubuntu as a php development box was very brief!</p>
<p>However, i was impressed by the GUI side of things in Xubuntu (ubuntu but with the lightweight xfce desktop), and when my mother in law&#039;s (really!) laptop blew up &#8211; I took the opprtunity to spread the ubuntu/linux buzz up a generation! :)</p>
<p>My own windows desktop workstation (yes I use windows for my PHP programming &#8211; of course the PHP /apache side runs on linux!!) got a weird hardware problem, something to do with USB, and Windows kept rebooting itself, but linux boot cds worked fine&#8230; So I thought, oh well, if I cant really use this myself, why not chuck linux on it and give it away!</p>
<p>Mother-in-law literally just writes email and browses the web (maybe writing a few google docs) so i think linux gui is perfect for her&#8230;.</p>
<p>So&#8230; after a fairly easy install&#8230;. viola! My crappy old desktop is reborn as a super simple NET PC!!! She loves it!</p>
<p>Hooray for linux, hooray for Xubuntu &#8211; rescuing obsolete hardware worldwide! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/ubuntu-for-mother-in-law-yay/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A brief flirtation with Ubuntu as development box</title>
		<link>http://www.phpprogrammer.co.nz/a-brief-flirtation-with-ubuntu-as-development-box</link>
		<comments>http://www.phpprogrammer.co.nz/a-brief-flirtation-with-ubuntu-as-development-box#comments</comments>
		<pubDate>Sat, 29 Aug 2009 01:42:48 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/?p=16</guid>
		<description><![CDATA[Recently I&#039;ve been using this awesome persistent version of Xubuntu on my USB pen drive. It&#039;s great for fixing computers, virus scanning, etc. http://www.pendrivelinux.com/usb-xubuntu-904-persistent-install-windows/ It even detected my wireless adapter with no hassles &#8211; and the awesome thing is that all your settings are saved to disk!! I was so happy that I thought I&#039;d [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#039;ve been using this awesome persistent version of Xubuntu on my USB pen drive. It&#039;s great for fixing computers, virus scanning, etc.</p>
<p>http://www.pendrivelinux.com/usb-xubuntu-904-persistent-install-windows/</p>
<p>It even detected my wireless adapter with no hassles &#8211; and the awesome thing is that all your settings are saved to disk!!</p>
<p>I was so happy that I thought I&#039;d try xubuntu as a PHP/MySQL development box&#8230;</p>
<p>Installed great, looks good, BUT&#8230; OH NO .. mysql can&#039;t start anymore&#8230; some weird access problem!! argh!!!</p>
<p>I&#039;ve never had anything like this with Debian before&#8230; WTF is going on?!</p>
<p>Anyway, back to Debian for development. Ahhhh&#8230;. good old trusty Debian. YAY!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/a-brief-flirtation-with-ubuntu-as-development-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UTF-8 checklist</title>
		<link>http://www.phpprogrammer.co.nz/utf-8-checklist</link>
		<comments>http://www.phpprogrammer.co.nz/utf-8-checklist#comments</comments>
		<pubDate>Mon, 27 Apr 2009 04:31:44 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[PHP Programming]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/utf-8-checklist</guid>
		<description><![CDATA[Character encodings have been driving me insane lately&#8230;. - stuff pasted from word wont display properly - funny square characters in the browser - smart  quotes from word don&#039;t display properly So here&#039; s a handy list of things i have been trying. Some things mgiht work for you, some might not. Let me know [...]]]></description>
			<content:encoded><![CDATA[<p>Character encodings have been driving me insane lately&#8230;.</p>
<p>- stuff pasted from word wont display properly</p>
<p>- funny square characters in the browser</p>
<p>- smart  quotes from word don&#039;t display properly</p>
<p>So here&#039; s a handy list of things i have been trying. Some things mgiht work for you, some might not. Let me know if you have anything to add!</p>
<p><strong>Apache</strong></p>
<p>AddDefaultCharset UTF-8</p>
<p><strong>MySQL</strong></p>
<p>On connect &#8211; SET NAMES &#039;utf8&#039;</p>
<p>Convert: ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;<br />
or:</p>
<p>&lt;?<br />
$dbname = $argv[1];<br />
if(!$dbname) {<br />
print &#034;no database specified\n&#034;;<br />
exit;<br />
}<br />
$dbh = mysql_connect(&#039;localhost&#039;, &#039;username&#039;, &#039;password&#039;, 1);<br />
mysql_select_db($dbname);<br />
$sql = &#034;SHOW TABLES&#034;;<br />
$res = mysql_query($sql, $dbh);<br />
while($row = mysql_fetch_assoc($res)) {<br />
$sql2 = &#034;ALTER TABLE $row['Tables_in_{$dbname}'] CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci&#034;;<br />
print $sql2 . &#034;\n&#034;;<br />
}<br />
?&gt;</p>
<p>http://www.oreillynet.com/onlamp/blog/2006/01/turning_mysql_data_in_latin1_t.html</p>
<p>http://gentoo-wiki.com/TIP_Convert_latin1_to_UTF-8_in_MySQL</p>
<p>Also, once all of your databases are utf8 you could set these options in my.cnf:</p>
<p>[mysqld]<br />
default-character-set=utf8<br />
default-collation=utf8_unicode_ci</p>
<p>[client]<br />
default-character-set=utf8</p>
<p><strong>PHP/HTML</strong></p>
<p>&lt;meta http-equiv=&#034;content-type&#034; content=&#034;text/html; charset=utf8&#034; /&gt;<br />
use htmlentities like this:<br />
htmlentities($string, ENT_COMPAT, &#039;UTF-8&#039;)</p>
<p>Magpie RSS:<br />
$rss = new MagpieRSS($rss_string, &#039;UTF-8&#039;, &#039;UTF-8&#039;, false);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/utf-8-checklist/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup hobbit, including MySQL graphs</title>
		<link>http://www.phpprogrammer.co.nz/how-to-setup-hobbit-including-mysql-graphs</link>
		<comments>http://www.phpprogrammer.co.nz/how-to-setup-hobbit-including-mysql-graphs#comments</comments>
		<pubDate>Fri, 01 Aug 2008 08:50:58 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/how-to-setup-hobbit-including-mysql-graphs</guid>
		<description><![CDATA[Detailed docs soon&#8230; at the moment just a handy link for myself with a few files&#8230;mysqlh.zip Setting up xymon client adduser &#8211;disabled-login xymon cd /usr/src wget http://transact.dl.sourceforge.net/sourceforge/hobbitmon/xymon-4.3.0-beta2.tar.gz tar -zxvf xymon-4.3.0-beta2.tar.gz cd xymon-4.3.0-beta2 ./configure &#8211;client (config=server) (user=xymon) /home/xymon make make install su &#8211; xymon -c &#034;/home/xymon/client/runclient.sh start&#034; Install MySQL/Apache Montioring on client 1. Create a mysql [...]]]></description>
			<content:encoded><![CDATA[<p>Detailed docs soon&#8230; at the moment just a handy link for myself with a few files&#8230;<a title="mysqlh.zip" href="http://www.phpprogrammer.co.nz/wp-content/uploads/2008/08/mysqlh.zip">mysqlh.zip</a></p>
<p><strong>Setting up xymon client </strong><br />
adduser &#8211;disabled-login xymon<br />
cd /usr/src<br />
wget http://transact.dl.sourceforge.net/sourceforge/hobbitmon/xymon-4.3.0-beta2.tar.gz<br />
tar -zxvf xymon-4.3.0-beta2.tar.gz<br />
cd xymon-4.3.0-beta2<br />
./configure &#8211;client<br />
(config=server)<br />
(user=xymon)<br />
/home/xymon<br />
make<br />
make install<br />
su &#8211; xymon -c &#034;/home/xymon/client/runclient.sh start&#034;</p>
<p><strong>Install MySQL/Apache Montioring on client</strong></p>
<p>1. Create a mysql user &#039;monitoring&#039;</p>
<p>2. Install ext scripts::</p>
<p>cd /home/xymon/client/ext<br />
wget http://www.phpprogrammer.co.nz/wp-content/uploads/2009/05/ext.zip</p>
<p>unzip ext.zip<br />
rm ext.zip</p>
<p>Add lines to /home/xymon/client/etc/clientlaunch.cfg</p>
<p>[mysql]<br />
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg<br />
CMD $HOBBITCLIENTHOME/ext/bb-mysql.pl<br />
LOGFILE $HOBBITCLIENTHOME/logs/bb-mysql.log<br />
INTERVAL 3m</p>
<p>[mysqlhq]<br />
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg<br />
CMD $HOBBITCLIENTHOME/ext/mysqlhq<br />
LOGFILE $HOBBITCLIENTHOME/logs/mysqlhq.log<br />
INTERVAL 3m</p>
<p>[mysqlht]<br />
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg<br />
CMD $HOBBITCLIENTHOME/ext/mysqlht<br />
LOGFILE $HOBBITCLIENTHOME/logs/mysqlht.log<br />
INTERVAL 3m</p>
<p>[mysqlhs]<br />
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg<br />
CMD $HOBBITCLIENTHOME/ext/mysqlhs<br />
LOGFILE $HOBBITCLIENTHOME/logs/mysqlhs.log<br />
INTERVAL 3m</p>
<p>[apachew]<br />
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg<br />
CMD $HOBBITCLIENTHOME/ext/apache-workers.sh<br />
LOGFILE $HOBBITCLIENTHOME/logs/apache-workers.log<br />
INTERVAL 3m</p>
<p>restart xymon:</p>
<p>su -c &#034;/home/xymon/client/runclient.sh start&#034; xymon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/how-to-setup-hobbit-including-mysql-graphs/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Easy Setup of a CVS server on Debian Etch</title>
		<link>http://www.phpprogrammer.co.nz/easy-setup-of-a-cvs-server-on-debian-etch</link>
		<comments>http://www.phpprogrammer.co.nz/easy-setup-of-a-cvs-server-on-debian-etch#comments</comments>
		<pubDate>Sat, 26 Jul 2008 02:06:29 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/easy-setup-of-a-cvs-server-on-debian-etch</guid>
		<description><![CDATA[I tore my hair out over this for quite a while yesterday. Hopefully this might help someone else (and as a reminder to my self if I ever need to do this again). Ideally I wanted the following scenario: - developer account &#039;hamish&#039; who can read/write to the cvs server - an anonymous account &#039;anon&#039; [...]]]></description>
			<content:encoded><![CDATA[<p>I tore my hair out over this for quite a while yesterday. Hopefully this might help someone else (and as a reminder to my self if I ever need to do this again). Ideally I wanted the following scenario:</p>
<p>- developer account &#039;hamish&#039; who can read/write to the cvs server<br />
- an anonymous account &#039;anon&#039; who can only read from the cvs server</p>
<p>I wanted the developer accounts to connect with ssh and anon via pserver, however&#8230;this seems like a mission! Perhaps this is why sourceforge (who do it this way) have a horrible delay between the developer and anonymous servers &#8211; maybe the 2 schemes wont cooperate nice and easily!?</p>
<p>Anyway, so I decided to use plain old pserver for both developer and anonymous account. This made my life a lot easier, and I&#039;m not that paranoid about security :)</p>
<p>Anyway, here goes&#8230;<br />
1. Install cvs and cvsd</p>
<p><strong>apt-get install cvs cvsd</strong></p>
<p>When configuring cvsd I was asked which repositories to serve. I typed &#039;/cvs&#039;.</p>
<p>This means my repository will be available at cvs.myserver.com/cvs</p>
<p>2. Initialise the repository</p>
<p><strong>cvs -d /var/lib/cvsd/cvs init</strong></p>
<p>add the following line in /var/lib/cvsd/cvs/CVSROOT/config:<br />
<strong>LockDir=/tmp</strong></p>
<p>3. Allow write access to repository</p>
<p><strong>chown cvsd:cvsd /var/lib/cvsd/cvs</strong></p>
<p>4. Allow history file to be written</p>
<p><strong>chown cvsd:cvsd /var/lib/cvsd/cvs/CVSROOT/history</strong></p>
<p>5. Add developer use account</p>
<p><strong>cvsd-passwd /var/lib/cvsd/cvs hamish</strong></p>
<p>6. Allow developer to write to repository</p>
<p><strong>echo &#034;hamish&#034; &gt; /var/lib/cvsd/cvs/CVSROOT/writers</strong></p>
<p>7. Setup anonymous account</p>
<p><strong>cvsd-passwd /var/lib/cvsd/cvs anon</strong></p>
<p>That&#039;s it! Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/easy-setup-of-a-cvs-server-on-debian-etch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3 excitement&#8230;.disappointment</title>
		<link>http://www.phpprogrammer.co.nz/firefox-3-excitementdisappointment</link>
		<comments>http://www.phpprogrammer.co.nz/firefox-3-excitementdisappointment#comments</comments>
		<pubDate>Wed, 21 Nov 2007 21:12:54 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Blah blah]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/firefox-3-excitementdisappointment</guid>
		<description><![CDATA[I just read on slashdot &#8211; &#034;ZDNet picks up on yesterday&#039;s Firefox 3 beta 1 review by comparing the memory usage of Firefox 2 against the latest beta. The results from one of the tests is quite interesting, after loading 12 pages and waiting 5 minutes, 2 used 103,180KB and 3 used 62,312KB. IE used [...]]]></description>
			<content:encoded><![CDATA[<p>I just read on slashdot &#8211; &#034;ZDNet picks up on <a href="http://blogs.zdnet.com/hardware/?p=958">yesterday&#039;s  Firefox 3 beta 1 review</a> by <a href="http://blogs.zdnet.com/hardware/?p=960">comparing the memory usage of  Firefox 2 against the latest beta</a>. The results from one of the tests is quite interesting, after loading 12 pages and waiting 5 minutes, 2 used 103,180KB and 3 used 62,312KB. IE used 89,756KB.&#034;"</p>
<p>Oh how excited I was &#8211; the memory issues with FF 2 were why i went back to v1. Could I finally move on!?</p>
<p>The answer&#8230;&#8230;&#8230;.NO!!</p>
<p>The simple task of removing a link from my bookmarks toolbar sent FF3 into a spin&#8230;memory usage 720,000k and counting!! LOL!</p>
<p>What a joke.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/firefox-3-excitementdisappointment/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downgrade to Firefox 1.5 &#8211; Firefox 2 is a lemon!</title>
		<link>http://www.phpprogrammer.co.nz/downgrade-to-firefox-15-firefox-2-is-a-lemon</link>
		<comments>http://www.phpprogrammer.co.nz/downgrade-to-firefox-15-firefox-2-is-a-lemon#comments</comments>
		<pubDate>Fri, 09 Nov 2007 01:57:19 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Blah blah]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/downgrade-to-firefox-15-firefox-2-is-a-lemon</guid>
		<description><![CDATA[Ah, what a brilliant day. For months now I&#039;ve been swearing about how bad Firefox 2 is &#8211; memory leaks, slow loading, crashing &#8211; it&#039;s been the bane of my coding life. Anyway, finally today I took the time to scour the net for good old Firefox 1.5 &#8211; you can&#039;t get it from the [...]]]></description>
			<content:encoded><![CDATA[<p>Ah, what a brilliant day. For months now I&#039;ve been swearing about how bad Firefox 2 is &#8211; memory leaks, slow loading, crashing &#8211; it&#039;s been the bane of my coding life. Anyway, finally today I took the time to scour the net for good old Firefox 1.5 &#8211; you can&#039;t get it from the official firefox site. Anyway here it is:</p>
<p>http://filehippo.com/download_firefox/?2743</p>
<p>I can&#039;t believe how much faster it is! My productivity has gone through the roof!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/downgrade-to-firefox-15-firefox-2-is-a-lemon/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian and New Zealand Daylight Savings SOLUTION</title>
		<link>http://www.phpprogrammer.co.nz/debian-and-new-zealand-daylight-savings</link>
		<comments>http://www.phpprogrammer.co.nz/debian-and-new-zealand-daylight-savings#comments</comments>
		<pubDate>Thu, 04 Oct 2007 21:26:27 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.phpprogrammer.co.nz/debian-and-new-zealand-daylight-savings</guid>
		<description><![CDATA[Ok, I read the headlines &#8211; &#034;Debian refuses to push out new NZ daylight savings info&#034; or something like that. Everyone getting angry and annoyed. Sure enough, my Debian boxes (running etch) were an hour behind. The only info I could find was manually compiling new timezone info (which didn&#039;t really work). ANYWAY &#8211; finally [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I read the headlines &#8211; &#034;Debian refuses to push out new NZ daylight savings info&#034; or something like that. Everyone getting angry and annoyed. Sure enough, my Debian boxes (running etch) were an hour behind. The only info I could find was manually compiling new timezone info (which didn&#039;t really work).</p>
<p>ANYWAY &#8211; finally I found the quick and easy solution that I wish the alarmists had just said clearly in the first place:</p>
<p>Put this line in your /etc/apt/sources.list file:</p>
<p>deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free</p>
<p>or for sarge:</p>
<p>deb http://volatile.debian.org/debian-volatile sarge/volatile main contrib non-free</p>
<p>then run the usual apt-get update ; apt-get upgrade and you&#039;re done!</p>
<p>Yay! Hopefully that might save someone a little time, hohoho no pun intended.</p>
<p>More about Debian volatile here:</p>
<p>http://www.debian.org/volatile/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/debian-and-new-zealand-daylight-savings/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Web contact forms, spam, and autoresponders</title>
		<link>http://www.phpprogrammer.co.nz/web-contact-forms-spam-and-autoresponders</link>
		<comments>http://www.phpprogrammer.co.nz/web-contact-forms-spam-and-autoresponders#comments</comments>
		<pubDate>Thu, 12 Jul 2007 21:23:47 +0000</pubDate>
		<dc:creator>hamish</dc:creator>
				<category><![CDATA[Email, Spam]]></category>

		<guid isPermaLink="false">http://www.php-programmer.co.nz/web-contact-forms-spam-and-autoresponders</guid>
		<description><![CDATA[I just realised I almost made a silly mistake :) To cut down on the amount of spam you get, it&#039;s fairly common knowledge that putting your email address (even not machine readable) on your website is an open invitation for spammers to abuse your account. A common solution is to set up a web-based [...]]]></description>
			<content:encoded><![CDATA[<p>I just realised I <em>almost </em>made a silly mistake :)</p>
<p>To cut down on the amount of spam you get, it&#039;s fairly common knowledge that putting your email address (even not machine readable) on your website is an open invitation for spammers to abuse your account. A common solution is to set up a web-based form which visitors fill out, and then gets forwarded to you (with a little bit of spam filtering along the way).</p>
<p>Recently I&#039;ve been getting a lot of contacts that just say things like &#034;hey man, i like your site!&#034;. This is clever way of trying to get your email address by 2 ways:</p>
<p>1. You reply to the email and say &#034;thanks mate, i like my website too&#034; (bad move, you just sent your email address direct to the spammer.)</p>
<p>2. You have a VACATION responder turned on which automatically sends the spammer your email address!</p>
<p>So, there are a couple of solutions:</p>
<p>1. dont set the From: header in the email from the website to be from the email address the user submits in the form (your autoreply will go straight to that address (the spammer&#039;s)).</p>
<p>2. Dont ever go on holiday, so you dont need an autoresponder! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpprogrammer.co.nz/web-contact-forms-spam-and-autoresponders/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
