<?xml version="1.0" encoding="iso-8859-1"?>
<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>CrankBerry Blog &#187; Web Owners</title>
	<atom:link href="http://www.crankberryblog.com/category/web-owners/feed" rel="self" type="application/rss+xml" />
	<link>http://www.crankberryblog.com</link>
	<description>Sharing ideas on web design, development and the internet economy</description>
	<lastBuildDate>Thu, 22 Apr 2010 21:46:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automated MySQL database backup with PHP and cronjob</title>
		<link>http://www.crankberryblog.com/2010/automated-mysql-database-backup-with-php-and-cronjob</link>
		<comments>http://www.crankberryblog.com/2010/automated-mysql-database-backup-with-php-and-cronjob#comments</comments>
		<pubDate>Fri, 16 Apr 2010 17:04:36 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Owners]]></category>
		<category><![CDATA[Cronjob]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP Script]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=373</guid>
		<description><![CDATA[At some point of working on your website you'll want to back up you MySQL database. This is they key for all of you building dynamic sites. If one day your server goes down or something you may have the files backed up but without the database you'll have to start from scratch again. If you operate a very slow-paced site then manual back up is fine but if you want to backup your database daily then it becomes tedious. I, myself is lazy so I came up with a PHP and Cronjob solution to automatically backup MySQL database.]]></description>
			<content:encoded><![CDATA[<p>At some point of working on your website you&#039;ll want to back up you MySQL database. This is they key for all of you building dynamic sites. If one day your server goes down or something you may have the files backed up but without the database you&#039;ll have to start from scratch again. If you operate a very slow-paced site then manual back up is fine but if you want to backup your database daily then it becomes tedious. I, myself is lazy so I came up with a PHP and Cronjob solution to automatically backup MySQL database.</p>
<h3>Automating It</h3>
<p><strong>What you need?</strong> The first thing you need to know how to do it set cronjobs. If you don&#039;t know how to do that you can <a href="http://www.crankberryblog.com/2009/setting-php-cron-job-with-crontab" title="Learn to set cronjobs">learn how to set cronjobs here</a>. The cronjob is what will automate your server to run the script and how often to run it.</p>
<h3>The Files</h3>
<p>All you&#039;ll need is two files to make this work. The first file, <strong>mysqldump.php</strong> can be grabbed from <a href="http://www.creativefactory.it/lab/">CreativeFactory.it</a>. The next thing you need is my backup.php file. Just create a file called <strong>backup.php</strong> and dump the following script inside.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span></p>
<p><span class="co1">//The File Name You Want To Use</span><br />
<span class="re0">$fileName</span> = <span class="st0">&#039;Filename&#039;</span>;</p>
<p><span class="co1">//Global</span><br />
<span class="re0">$sqlhost</span> = <span class="st0">&#039;localhost&#039;</span>;<br />
<span class="re0">$sqluser</span> = <span class="st0">&#039;db_user&#039;</span>;<br />
<span class="re0">$sqlpass</span> = <span class="st0">&#039;db_password&#039;</span>;<br />
<span class="re0">$sqldb</span> = <span class="st0">&#039;db_name&#039;</span>;</p>
<p><span class="co1">//**********************************</span><br />
<span class="co1">//You Don&#039;t Need to Edit This</span><br />
<span class="co1">//**********************************</span></p>
<p><span class="co1">//Today&#039;s Timestamp</span><br />
<span class="re0">$today_ts</span> = <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="st0">&quot;now&quot;</span><span class="br0">&#41;</span>;</p>
<p>
<span class="re0">$backupDate</span> = <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&#039;y.m.d.h.i&#039;</span>, <span class="re0">$today_ts</span><span class="br0">&#41;</span>;<br />
<span class="re0">$backupFile</span> = &nbsp;<span class="re0">$backupDate</span>.<span class="st0">&#039;- &#039;</span>.<span class="re0">$fileName</span>.<span class="st0">&#039;.txt&#039;</span>;</p>
<p><span class="co1">//Connect to mysql server</span><br />
<span class="re0">$connessione</span> = @<a href="http://www.php.net/mysql_connect"><span class="kw3">mysql_connect</span></a><span class="br0">&#40;</span><span class="re0">$sqlhost</span>,<span class="re0">$sqluser</span>,<span class="re0">$sqlpass</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">//Include class</span><br />
<span class="kw1">require_once</span><span class="br0">&#40;</span><span class="st0">&#039;mysqldump.php&#039;</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">//Create new instance of MySQLDump</span><br />
<span class="re0">$dumper</span> = <span class="kw2">new</span> MySQLDump<span class="br0">&#40;</span><span class="re0">$sqldb</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">//If you want to write the MySQL dump to file</span><br />
<span class="re0">$dumper</span>-&gt;<span class="me1">writeDump</span><span class="br0">&#40;</span><span class="re0">$backupFile</span><span class="br0">&#41;</span>;</p>
<p><span class="kw2">?&gt;</span></div>
<h3>The Setup</h3>
<p>Configure the first file variables of the script and then just leave the rest. Put the backup.php and mysqldump.php in the same folder where you want the back up files to be dumped. Set the cronjob to run backup.php you don&#039;t need to worry about mysqldump.php. That&#039;s it, it&#039;ll automatically backup.</p>
<h3>Possible Problems</h3>
<p>The problems that you may experience is the MySQL privileges. If your account doesn&#039;t have enough privilege then you may not be able to properly query the database. Another problem maybe the CHMOD of the folder you&#039;re backing up to. You need to have write access into that folder.</p>
<h3>Recovering from Backup</h3>
<p>To recover you database just log into your phpMyAdmin, open the database you want to recover. Select the import tab and just browse for the file. If I recall the file itself should overwrite tables that are already in place if not then you may have to drop all the tables first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2010/automated-mysql-database-backup-with-php-and-cronjob/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importance of Alexa Ranking</title>
		<link>http://www.crankberryblog.com/2009/importance-of-alexa-ranking</link>
		<comments>http://www.crankberryblog.com/2009/importance-of-alexa-ranking#comments</comments>
		<pubDate>Sat, 17 Oct 2009 00:06:22 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Owners]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=204</guid>
		<description><![CDATA[<div class="excerpt_screen_left"><img src="http://www.crankberryblog.com/images/importance-of-alexa-toolbar-screen.jpg" /></div>I know a couple webmasters myself and they've always been obsessed with their "Alexa Ranking", and to some degree has used it to measure their <em>success</em> on the world wide web. Is this accurate? The short answer - No! The long answer, is possibly but based on how you use it. I'm going to break down what Alexa measures, how is it relevant for you and how you should use it.]]></description>
			<content:encoded><![CDATA[<p>I know a couple webmasters myself and they&#039;ve always been obsessed with their &#034;Alexa Ranking&#034;, and to some degree has used it to measure their <em>success</em> on the world wide web. Is this accurate? The short answer &#8211; No! The long answer, is possibly but based on how you use it. I&#039;m going to break down what Alexa measures, how is it relevant for you and how you should use it.</p>
<p>For those of you who aren&#039;t familiar with Alexa here&#039;s a little background. Alexa is a tool available online to measure the ranking of websites based on traffic. So for Google who&#039;s one of the tops in traffic they&#039;re ranked number 1, and Yahoo who has a bit less is ranked number 2 and so on. Over the years web developers has been obsessed with their ranking as a measurement of how well their website is doing and to be honest this is not a good way of doing so, to a certain degree.</p>
<h3>Inaccurate Measurements</h3>
<p>First thing&#039;s first, lets understand measurement of traffic. If say right now I want to find out your website&#039;s traffic I can&#039;t, obviously because you own the website and you don&#039;t want to share it with me. Now if I was to place a tracker code in your site then I can see the statistics without your consent, but I need your approval and admin access to do so. With that in mind, think about how Alexa is able to measure your website statistics, they can&#039;t without your consent! So that&#039;s the &#034;trick&#039;, they actually gather statistics from their Alexa toolbar. I&#039;m not sure if you&#039;re using one right now, but people have installed a tool made by Alexa to quickly get statistics of websites they visit but what they aren&#039;t aware of is that Alexa is doing the same thing. They&#039;re tracking user visits to websites and accumulating a data of their own. This is why the Alexa ranking is not accurate and not a precise measurement of your <em>success</em>.</p>
<p><img src="http://www.crankberryblog.com/images/importance-of-alexa-toolbar.jpg" /></p>
<h3>Shouldn&#039;t It Still Work?</h3>
<p>Ok, so somebody was to say, its not accurate but if so many people use it, shouldn&#039;t it still work? Well here&#039;s my take on it. As far as I know the Alexa toolbar is only available for Firefox (correct me if I&#039;m wrong), and FireFox users only account for 46.6% (1) of browsers online. That means that a majority of users are still neglected in the statistics. I don&#039;t have the stats but I have a feeling there are demographic segments that does not install the Alexa toolbar so depending on which target market/niche your website is catered to you may be higher or lower on the charts.</p>
<h3>The Proof</h3>
<p>Based on the theory I have above I&#039;ve decided to test it out. The company I work for is a B2B company but their target market is senior level IT people which a majority is in the 39+ category. Our website visitors are mainly on IE6.7. Now the sites have on average a few hundreds of unique visits on a daily basis, but their rankings are between 1 million to 2 million. I</p>
<p>On the contrary I have a personal site which has 20+ unique visitors a day on average, but my ranking for that site is in the 400 000 category. It goes to show, its all based on the users that visits your site; therefore, skewed and inaccurate.</p>
<h3>So It Doesn&#039;t Work &#8211; Why Use It?</h3>
<p>Even though it doesn&#039;t give you an accurate ranking in the world wide web you can use it in a different way. Based on the first part of this article you aren&#039;t able to see other people/company&#039;s website statistics so by using Alexa ranking to compare again competitors in the same segment is a method to measure yourself against your competitors, but even then its not very accurate.</p>
<p>The true method to measure your success is to mark a goal and try to achieve it. If its 100 unique visits a day or $100 dollars in revenue a day, just set it and aim for it. When you have achieved it, you are successful.</p>
<p>1. <a href="http://www.w3schools.com/browsers/browsers_stats.asp">http://www.w3schools.com/browsers/browsers_stats.asp</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/importance-of-alexa-ranking/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favicon and what are they for?</title>
		<link>http://www.crankberryblog.com/2009/favicon-and-what-are-they-for</link>
		<comments>http://www.crankberryblog.com/2009/favicon-and-what-are-they-for#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:05:00 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Owners]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=208</guid>
		<description><![CDATA[For web owners, overtime you'll notice a thing, which is not new called the favicon. You may have came across it and lightly discussed about it but have never drilled any further on it. Well I'm about to explain to you what the favicon is used for in modern web design. If you still have no clue what the favicon is, it is the little image show below.

<img src="http://www.crankberryblog.com/images/what-is-favicon.jpg" />]]></description>
			<content:encoded><![CDATA[<p>For web owners, overtime you&#039;ll notice a thing, which is not new called the favicon. You may have came across it and lightly discussed about it but have never drilled any further on it. Well I&#039;m about to explain to you what the favicon is used for in modern web design. If you still have no clue what the favicon is, it is the little image show below.</p>
<p><img src="http://www.crankberryblog.com/images/what-is-favicon.jpg" /></p>
<p>To be more specific, a favicon is exactly as the name suggest, its an ICON. Its an icon usually displayed in 16&#215;16 pixels that is associated with your website. That&#039;s the short story of it. For the rest of the article I&#039;ll explain the details of favicons and how you can have one for your site.</p>
<h3>Aesthetic Reasons</h3>
<p>Favicons are typically for iconic reasons. Its to associate a small graphic to your website that indicates to the user that they&#039;re on your site (not that they can&#039;t see that). Another reason is that the icon is shown in tabs. Tabs are really popular in modern web surfing, with a favicon it helps users quickly identify which tabs are associated with your website. With a small canvas (16&#215;16) to work with its really testing your creativity, especially for those with very graphical logos. Here are a couple of creative favicons.</p>
<p><img src="http://www.crankberryblog.com/images/what-is-favicon-example.jpg" /></p>
<h3>Bookmark Measurement</h3>
<p>Back in the old days, favicons were a good measurement to see how many people were bookmarking your site, but that only worked when majority of the users on the internet used Internet Explorer. That&#039;s right, when people with Internet Explorer bookmark your site, you can see it if you have the right analytic in place. Here&#039;s an example for one of my sites using AW Stats.</p>
<p><img src="http://www.crankberryblog.com/images/what-is-favicon-hits.jpg" /></p>
<p>It shows that this month there were 14 visitors who bookmarked my site. As I said before this measurement only worked for IE; thus, not very accurate. As well, a measurement of bookmarks truly doesn&#039;t account for anything.</p>
<h3>How to Create a Favicon</h3>
<p>Creating your own favicon is not hard. You just need to create a graphical image with dimensions 16&#215;16px. Modern browsers will support GIF and PNG formats but if you want to be safe you can go with ICO format. If you don&#039;t know how to convert to ICO formats or don&#039;t have any graphical software you can use this <a href="http://favicon.crankberryblog.com/">favicon generator/converter tool</a> I made for free. Save your file to any name store it in your web directory. You&#039;ll need to attach the code below for it to work.</p>
<h3>Attaching Favicon to Website</h3>
<p>Now that you have your icon in your directory and ready to go you need to tell your website where the icon is. I always use the two following codes in my header between <head></head> code.</p>
<div class="dean_ch" style="white-space: wrap;">&lt;link href=&quot;favicon.ico&quot; rel=&quot;icon&quot; type=&quot;image/x-icon&quot;/&gt;<br />
&lt;link href=&quot;favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/x-icon&quot; /&gt;</div>
<p>There you have it, your very own and unique favicon to match your site. Remember to be creative.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/favicon-and-what-are-they-for/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase traffic to your blog/website for free</title>
		<link>http://www.crankberryblog.com/2009/increase-traffic-to-your-blogwebsite-for-free</link>
		<comments>http://www.crankberryblog.com/2009/increase-traffic-to-your-blogwebsite-for-free#comments</comments>
		<pubDate>Tue, 13 Oct 2009 01:27:38 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Web Owners]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=194</guid>
		<description><![CDATA[When you first planned out your website or blog you thought to yourself, "WOW! This is a great idea, people will love it". After a couple weeks or months of launch your still looking at your analytic wondering why you're hovering so low in traffic. Well, here's the thing, you haven't gained momentum yet. I'll give you a general outlook of how to produce traffic for free and keep it high.

<img src="http://www.crankberryblog.com/images/increase-traffic-main.jpg" />]]></description>
			<content:encoded><![CDATA[<p>When you first planned out your website or blog you thought to yourself, &#034;WOW! This is a great idea, people will love it&#034;. After a couple weeks or months of launch your still looking at your analytic wondering why you&#039;re hovering so low in traffic. Well, here&#039;s the thing, you haven&#039;t gained momentum yet. I&#039;ll give you a general outlook of how to produce traffic for free and keep it high.</p>
<p>The concept is very simple, its all in how you manage your website/blog. What is your goal? It doesn&#039;t matter if its to share opinions or generate revenue, the thing you need most to keep your site live and you motivated to provide content is traffic. So, manage your site like a business. There are three main elements you should be looking at &#8211; the attraction, the product, and the return.</p>
<h3>Part One: The Attraction</h3>
<div class="excerpt_screen_right"><img src="http://www.crankberryblog.com/images/increase-traffic-the-message.jpg" /></div>
<p> Assuming you have completed constructing your website and have made it beautiful. The key is to attract people to your site with the right message. There are many ways to promote the message of your site, of course there are the paid methods such as internet advertisements and sponsoring other sites, but these could sum up to be hundreds or thousands of dollars per month. Since you&#039;re reading this article I assume you&#039;re looking for the cheaper way out. So here it is, I have to warn you though its quite time consuming, there are many ways to get your message out there. Here are some that I believe to be the most effective.</p>
<p><strong>Commenting on Blogs</strong></p>
<p>Commenting on blogs in the <em>same niche</em> as your own is very important for a few particular reason. One of course is to gain so backlinks to your own site. Another reason is that it allows you to create your personality on other sites, where readers are looking for articles like your own. If they like your tasteful comments and inputs they&#039;re more than likely to read your articles that you provide. For example, if you have a website that sells fashionable clothes, commenting on fashion sites would be helpful.</p>
<p><strong>Posting in Related Forums</strong></p>
<p>Forums is a great place to find users for your website, because forum users are mainly active internet users that likes interactive contents. Find forums that relate to what your website is about and be active on those forums. Now I&#039;m not saying start 20 threads with your website as the topic and hope to gain awareness, the only thing you&#039;ll gain from that is a permanent banning. Interact with users, and post good replies. If the admins permit, have your website linked in your signature.</p>
<p><strong>Directories Submission</strong></p>
<p>Submitting your site to online directories can be a waste of time if you don&#039;t plan it out strategically. I know some people who spends weeks submitting to 1000+ directories which maybe as effective as somebody who submits to 100 effective directories. Find ones directories that are reputable and have categories related to your website. Not all directories are free so watch out. If you own a blog, I&#039;ve compiled a list of <a href="http://www.crankberryblog.com/2009/15-free-blog-directories-to-get-you-started">great blog directories</a> here for you to start with.</p>
<p><strong>Social Networking</strong></p>
<p>Now a days if you tell your friends and family about your website they may not remember your name and they may not visit even if they do. By sharing your site and what you have to offer over social networking sites, you can reach more people and since the message is digital they may pass it forward for you. Don&#039;t be shy about passing the word forward, you may know people who know others that are into what you have to offer.</p>
<p><strong>Article Submission</strong></p>
<p>If you own a blog and you write your own content. Another option for you is to submit your wonderful articles to article directories. They usually have a wide range of readers already and they sometimes provide links back to your site. Do not submit every single article though, just a few good ones now and then to tease the readers. If they like what you write they&#039;ll visit your blog and be suprised by how many more great articles you have. Just like movie trailers, usually they don&#039;t give out the whole plot to temp you to watch the movie (but there are some that gives it all away).</p>
<h3>Part Two: The Product</h3>
<p>Now that you have people coming to your site you have to worry about the second thing, <em>the product</em>. It doesn&#039;t matter if you attracted 10 billion people coming to your site, if you don&#039;t have a good product to offer they won&#039;t stay. The first impression is very important, keep your landing page attractive and your intentions clear. When a user first opens your site, what do you want them to see? What do you want them to know? Build a good landing page with the message of what you have to offer, people will stay and look around.</p>
<div class="excerpt_screen_left"><img src="http://www.crankberryblog.com/images/increase-traffic-maintain-traffic.jpg" /></div>
<p> The one thing that most web owners will keep saying is that &#034;content is king&#034;, and I truly believe in this. Having good content will keep users on your site longer. The longer a user is on your site, the more likely they&#039;ll remember you. What does having good content mean? It means that the content is relevant to what your target market wants to read, hear or know. It also means that your content is consistent with the message you promoted in part one. So in part one your promoting good fashion tips and trendy seasonal advice, but your website only sells clothes then you have not provided good content. Now if you were doing the same promotion, but you sell clothes categories and sorted for seasons and with fashion tips then you&#039;re being consistent.</p>
<h3>Part Three: The Return</h3>
<p>The last aspect you need to take a look at when managing your website/blog is <em>the return</em>. You have incoming traffic, and you have people looking at your site, what you should really think of is if they&#039;ll return again. You can&#039;t rely on new traffic all the time because it takes a lot less work to retain a current user than it is to gain a new user. If I recall correctly is cost 50% less to retain a customer than to gain a new one.</p>
<p><img src="http://www.crankberryblog.com/images/increase-traffic-returning-traffic.jpg" /></p>
<p><strong>Commenting</strong></p>
<p>Having a simple to use commenting system allows users to interact with your site, yourself and other users. Users now a days love interactions and will visit more often if they are permitted to participate. When I say simple commenting system, it means minimal information required and possibly no membership either.</p>
<p><strong>Upcoming Content/Offers</strong></p>
<p>Promote what you&#039;ll be offering next, so users will mark a time in their head of when to visit back. Some people may visit you once a month but if you keep promoting something good weekly or daily they maybe visiting you more often than they know.</p>
<p><strong>Social Bookmarking</strong></p>
<p>Allow social bookmarking where available or fits. This allows users to mark it in their favourites in which is a list of sites that they&#039;ll visit often.</p>
<p><strong>Newsletter</strong></p>
<p>If you offer great content and great deals, offer a newsletter sign up. Its a good way to constantly promote your site to current users and have them coming back often. Newsletter is not easy to manage and maintain so ensure you have the right skills and tools before advancing in this area.</p>
<p>So there you have it, a few tips to increase your traffic all for free. Now there is one aspect I didn&#039;t mention even once which is search engine optimization (SEO), because I think SEO is too important to be undermined or overlooked. I&#039;ll have another article on that in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/increase-traffic-to-your-blogwebsite-for-free/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
