<?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>Practical PHP Scripts and Tips</title>
	<atom:link href="http://www.terrabyte.dc.com.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.terrabyte.dc.com.au</link>
	<description>Dean&#039;s Free PHP Scripts and Other Web Tips</description>
	<lastBuildDate>Thu, 02 Jun 2011 12:11:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>New Direction</title>
		<link>http://www.terrabyte.dc.com.au/blog/new-direction/</link>
		<comments>http://www.terrabyte.dc.com.au/blog/new-direction/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 13:29:28 +0000</pubDate>
		<dc:creator>Dean</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.terrabyte.dc.com.au/?p=59</guid>
		<description><![CDATA[This blog has had rather a colourful (or &#8220;colorful&#8221; in US/web spelling!) history over its lifetime. First it was my business blog &#8230; I had a business long ago &#8220;Deaken Creative&#8221; based on family tradition &#8212; &#8220;Deaken&#8221; coming from my name, Dean Kennedy. However, with &#8220;Deakin University&#8221; in my home state of Victoria, Australia, &#8220;www.deakencreative.com.au&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>This blog has had rather a colourful (or &#8220;colorful&#8221; in US/web spelling!) history over its lifetime.</p>
<p>First it was my business blog &#8230; I had a business long ago &#8220;Deaken Creative&#8221; based on family tradition &#8212; &#8220;Deaken&#8221; coming from my name, Dean Kennedy. However, with &#8220;Deakin University&#8221; in my home state of Victoria, Australia, &#8220;www.deakencreative.com.au&#8221; was to confusing &#8230; so I changed the URL to dc.com.au.</p>
<p>That was back in the early 1990&#8242;s when .com.au registrations were still free! That domain is now part of a media/publishing business, but no longer as Deaken Creative, but dc.com.au Media.</p>
<p>Anyway, my next business name was &#8220;Terrabyte Communications&#8221; &#8230; and rather than buy a new URL, I simply used a sub-URL which you see here. &#8220;Terrabyte&#8221; was conceived from &#8220;terra&#8221; &#8211;earth, and &#8220;byte&#8221; &#8212; digital &#8230; long before the storage capacity &#8220;terabyte&#8221; became popular.</p>
<p>Anyway, Terrabyte Communications was a bit of a mouthful too, so along came my next business name, DMK Business Systems &#8212; which might sound quite long, but as &#8220;DMK&#8221; is easy to shorten. Finally.</p>
<p>But during the time I had the Terrabyte business name, I was creating websites and getting into PHP. I created a simple, 3-line date script that solved a problem: I lived in Melbourne, Australia, but my server lived in Pennsylvania, USA. I wanted my website to show my local Melbourne time &#8230; so I learned enough PHP to solve this little issue.</p>
<p>At the time, central PHP repositories like HotScripts and others were really in their infancy &#8230; so partly by default my little PHP script more attention than I would have imagined, several years ago getting 1000s of monthly downloads.</p>
<p>So the next iteration of this website tried to cover a whole range of web marketing and design topics &#8230; really way to much for what I could handle.</p>
<p>So I&#8217;m narrowing down the topics a bit, especially since I&#8217;ve had about 3 years of letting the site stay inactive.</p>
<p>The new focus will be where my PHP skills started &#8230; little scripts and tips designed to make the web experience more enjoyable (and leaving your website visitors to wonder a little about &#8220;how did you do that?&#8221; &#8212; especially as PHP is a server-side tool).</p>
<p>Anyway, enough story &#8230; time to get cracking again on PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrabyte.dc.com.au/blog/new-direction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merry Christmas Music</title>
		<link>http://www.terrabyte.dc.com.au/blog/merry-christmas-music/</link>
		<comments>http://www.terrabyte.dc.com.au/blog/merry-christmas-music/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 10:19:54 +0000</pubDate>
		<dc:creator>Dean</dc:creator>
				<category><![CDATA[Old Stuff]]></category>

		<guid isPermaLink="false">http://www.terrabyte.dc.com.au/blog/merry-christmas-music/</guid>
		<description><![CDATA[I was checking out tonight some online ecard software (like Sendcard and gCards) &#8230; and thought that if I was doing a Christmas theme &#8230; then some merry Christmas music would be nice to add. A quick visit to The Google (sorry, that&#8217;s an inside joke I think in the Whitehouse!) &#8230; and viola! Two [...]]]></description>
			<content:encoded><![CDATA[<p>I was checking out tonight some online ecard software (like <a href="http://www.sendcard.org/index.php" target="_blank">Sendcard</a> and <a href="http://www.gregphoto.net/gcards/index.php" target="_blank">gCards</a>) &#8230; and thought that if I was doing a Christmas theme &#8230; then some merry Christmas music would be nice to add.</p>
<p>A quick visit to The Google (sorry, that&#8217;s an inside joke I think in the Whitehouse!) &#8230; and viola! Two sites that had some great and free music to download &#8230;</p>
<p><a href="http://free-loops.com/" target="_blank">Free Loops</a> and <a href="http://christmasmpfree.com/index.html" target="_blank">Christmas MPfree</a>.</p>
<p>Toe tappin&#8217; stuff, the traditional songs &#8230; ready to listen to and download &#8230; and spread some Christmas cheer!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrabyte.dc.com.au/blog/merry-christmas-music/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web video and podcast music</title>
		<link>http://www.terrabyte.dc.com.au/blog/web-video-and-podcast-music/</link>
		<comments>http://www.terrabyte.dc.com.au/blog/web-video-and-podcast-music/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 23:35:25 +0000</pubDate>
		<dc:creator>Dean</dc:creator>
				<category><![CDATA[Old Stuff]]></category>

		<guid isPermaLink="false">http://www.terrabyte.dc.com.au/blog/web-video-and-podcast-music/</guid>
		<description><![CDATA[I&#8217;m on the lookout for a good source of audio intros, stingers, loops and exits for use in online videos, presentations such as MS PowerPoint slide shows and podcasting. Aaron from The Business Commandos has recommended Mike Stewart&#8217;s Front and Back Music, although I wish I could hear more samples on that page before I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m on the lookout for a good source of audio intros, stingers, loops and exits for use in online videos, presentations such as MS PowerPoint slide shows and podcasting. Aaron from <a href="http://www.thebusinesscommandos.com/">The Business Commandos</a> has recommended Mike Stewart&#8217;s <a href="http://dmk500.soundpages.hop.clickbank.net/">Front and Back Music</a>, although I wish I could hear more samples on that page before I fork out the dollars.</p>
<p>Why isn&#8217;t there a royalty free single item download &#8220;micro-stock&#8221; site for this kind of audio, similar to what&#8217;s available in photography with sites like <a href="http://www.istockphoto.com/" target="_blank">istockphoto</a>, <a href="http://www.dreamstime.com/" target="_blank">dreamstime</a>, <a href="http://www.fotolia.com/" target="_blank">fotalia</a> and their many friends?</p>
<p>Hmmmm, the search continues, although I still might end up with the Front and Back music package yet!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrabyte.dc.com.au/blog/web-video-and-podcast-music/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Override a CSS setting</title>
		<link>http://www.terrabyte.dc.com.au/blog/override-a-css-setting/</link>
		<comments>http://www.terrabyte.dc.com.au/blog/override-a-css-setting/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 20:44:49 +0000</pubDate>
		<dc:creator>Dean</dc:creator>
				<category><![CDATA[Web Tips]]></category>

		<guid isPermaLink="false">http://www.terrabyte.dc.com.au/blog/override-a-css-setting/</guid>
		<description><![CDATA[On one of the web forums I regularly visit, the text setting (for my monitor resolution and platform) is a little too squashed together in the &#8220;line height&#8221; &#8212; even though when you did deep into the CSS, you find: &#160; &#160; line-height: normal; in the relevant snippet of CSS values. Hmmm, there must be [...]]]></description>
			<content:encoded><![CDATA[<p>On one of the web forums I regularly visit, the text setting (for my monitor resolution and platform) is a little too squashed together in the &#8220;line height&#8221; &#8212; even though when you did deep into the CSS, you find:</p>
<blockquote><pre style="font-size:11pt; font-weight:bold;"> &nbsp; &nbsp; line-height: normal;
</pre>
</blockquote>
<p>in the relevant snippet of CSS values.</p>
<p>Hmmm, there must be a way to fix this!</p>
<p>Quick Google search: &#8220;firefox override css for domain&#8221; &#8212; the first result was helpful!</p>
<p>What I discovered is that there is a way to permanently &#8220;adjust&#8221; css values for a domain name &#8212; at least using Firefox, I&#8217;m not sure if other browsers can do this too, but nowadays they just might have this kind of functionality &#8212; so that you can impose your own preferences and override the site&#8217;s css values.</p>
<p>In Firefox, it requires installing the <a href="https://addons.mozilla.org/en-US/firefox/addon/2108">free add-on called Stylish</a>.</p>
<p>Stylish lets you customise the look of a website using your own styles.</p>
<p>In my case, I just wanted to change a font size in the css from &#8220;12px&#8221; to &#8220;10pt&#8221; &#8212; that&#8217;s all it took to solve my problem.</p>
<p>So, after installing Stylish and re-starting Firefox, I wrote a really simple bit of css code that applied just to the domain used by the forum:</p>
<blockquote><pre style="font-size:11pt; font-weight:bold;">
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("copywritersboard.com") {

.vb_postbit {
	font-size: 10pt;
}

}</pre>
</blockquote>
<p>In this case, I clicked on the Stylish icon in the Firefox status bar, and chose &#8220;Write Style &#8230;&#8221; and then (as my web page was on the forum site) chose &#8220;For copywritersboard.com&#8221; from the fly-out sub-menu (as I was on the Copywriter&#8217;s Board forum site).</p>
<p>Stylish automatically generated the opening 2 lines and closing line of code, all I had to add in was the &#8220;.vb_postbit&#8221; section with my font-size setting and the surrounding curly braces { and }.</p>
<p>Done!</p>
<p>Now, <strong>every time</strong> I visit the site and read the posts, the font used is automatically displayed to my preference.</p>
<p>Of course, Stylish is much more powerful, and can do a lot more that just this little change: I could change fonts, background colors, sizes, headings, font colors &#8230; to whatever suits my preferences.</p>
<p>Stylish works best when used in conjunction with the <a href="https://addons.mozilla.org/en-US/firefox/addon/60">free Web Developer toolbar add-on</a> for Firefox. With this toolbar enabled, I was able to turn on the feature called &#8220;View Style Information&#8221; under the CSS button &#8212; that way, I simply clicked on a post, and it highlighted the relevant css code properties (class name and values) &#8212; so I could easily override the value with a simple user style in Stylish.</p>
<p>The only &#8220;downside&#8221; is that, if you use more than one computer, you&#8217;d need to have this free add-on installed with the same code on all of the relevant machines. Still, for me, that&#8217;s only 2 computers.</p>
<p>But now, when I&#8217;m reading my favourite forum, I can have the post threads look the way I want them to without imposing my preferences on anyone else!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrabyte.dc.com.au/blog/override-a-css-setting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spring clean for Firefox</title>
		<link>http://www.terrabyte.dc.com.au/blog/firefox-statusbar/</link>
		<comments>http://www.terrabyte.dc.com.au/blog/firefox-statusbar/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 21:05:40 +0000</pubDate>
		<dc:creator>Dean</dc:creator>
				<category><![CDATA[Old Stuff]]></category>

		<guid isPermaLink="false">http://www.terrabyte.dc.com.au/blog/firefox-statusbar/</guid>
		<description><![CDATA[Today I added in a Twitter add-on for Firefox, TwitterFox, so I could keep track of tweets when I&#8217;m browsing. This added a little Twitter icon in my status bar along the bottom of the screen, along with a count of new/unread twitters. Great, that&#8217;s just what I wanted! However &#8212; my status bar has [...]]]></description>
			<content:encoded><![CDATA[<p>Today I added in a <a href="http://twitter.com/">Twitter</a> add-on for Firefox, <a href="http://www.naan.net/trac/wiki/TwitterFox">TwitterFox</a>, so I could keep track of tweets when I&#8217;m browsing.</p>
<p>This added a little Twitter icon in my status bar along the bottom of the screen, along with a count of new/unread twitters.</p>
<p>Great, that&#8217;s just what I wanted!</p>
<p>However &#8212; my status bar has about 15 different tools/indicators on it, and TwitterFox was added on the left-hand end &#8212; about the middle of my screen and not where I wanted it. I have Gmail Manager in the right-hand corner, and I wanted TwitterFox to sit next to it.</p>
<p>Enter the <a href="http://yellow5.us/firefox/osb">Organize Status Bar</a> add-on!</p>
<p>This handy add-on lets me easily arrange the order of programs that live in my status bar &#8230; access from the add-ons panel (select the add-on and click on options), or from the Tools menu. I&#8217;m obviously not the first user to want to tweak this part of the Firefox interface!</p>
<p>Easy, simple, exactly what I needed!</p>
<p>Thankfully I came along at version 0.5.2 &#8212; when a fix was made to have it work with <a href="http://addons.mozilla.org/firefox/1320">Gmail Manager</a> (critical tool for Firefox users with multiple gmail accounts!), <a href="https://addons.mozilla.org/firefox/addon/1117">FoxClocks</a> (which I have, but don&#8217;t use at the moment) and other extensions.</p>
<p>There is some bug they mention in Firefox which hampers the program, and won&#8217;t be resolved until Firefox 3 is released &#8212; however, my particular setup doesn&#8217;t seem to be affected.</p>
<p>It&#8217;s just another great reason to use Firefox. You can use add-ons to improve productivity by giving you extra tools, extend your ability to integrate other applications, adjust the interface to suit your needs&#8230; all for free.</p>
<p>I found TwitterFox on <a href="http://www.caroline-middlebrook.com/blog/">Caroline Middlebrook&#8217;s</a> <a href="http://www.caroline-middlebrook.com/blog/twitter-guide/">Twitter Guide</a> (<a href="http://www.caroline-middlebrook.com/blog/twitter-guide-4-twitter-tools-platform/">part 4</a>).</p>
<p>PS: If you want to follow me in Twitter, I&#8217;m <a href="http://twitter.com/DeanKennedy">DeanKennedy</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrabyte.dc.com.au/blog/firefox-statusbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlogRush II</title>
		<link>http://www.terrabyte.dc.com.au/blog/blogrush-ii/</link>
		<comments>http://www.terrabyte.dc.com.au/blog/blogrush-ii/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 12:39:57 +0000</pubDate>
		<dc:creator>Dean</dc:creator>
				<category><![CDATA[Old Stuff]]></category>

		<guid isPermaLink="false">http://www.terrabyte.dc.com.au/blog/blogrush-ii/</guid>
		<description><![CDATA[If this post by John Reese is true, saying: We just completed our Quality Control audit. You will now notice that all non-English, spam, and low quality blogs (or others that didn’t meet all of our guidelines) are GONE from appearing in your widget. What kind of &#8220;quality control&#8221; is in place where literally anyone [...]]]></description>
			<content:encoded><![CDATA[<p>If <a href="http://www.income.com/blog/2007/10/21/blogrush-quality-audit-complete/">this post by John Reese</a> is true, saying:</p>
<blockquote><p>We just completed our Quality Control audit. You will now notice that all non-English, spam, and low quality blogs (or others that didn’t meet all of our guidelines) are GONE from appearing in your widget.</p></blockquote>
<p>What kind of &#8220;quality control&#8221; is in place where literally anyone willing to earn $12 an hour undertakes the reviews?</p>
<p>Comments are CLOSED on the Reese post, same for that topic on the Warrior Forum (opened by Reese and only live for a short time, then locked). So not only does it seem many reviews were poorly made, and good blogs penalised, but any forum to debate such action is closed off. Sure, &#8220;that&#8217;s life&#8221; &#8212; and it&#8217;s Reese&#8217;s decision &#8212; but it has involved upset and mistakes &#8212; and it is <strong>definitely not</strong> the way I would EVER imagine building my relationship with my customer universe!</p>
<p>Still, now I have my Adblock Plus filter in place, I&#8217;ll never see another BlogRush widget anyway!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrabyte.dc.com.au/blog/blogrush-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

