<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.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>Geeks Aloud</title>
	<link>http://www.geeksaloud.com</link>
	<description>Rants, thoughts and bugs from an older coder</description>
	<pubDate>Fri, 15 Feb 2008 16:34:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<item>
		<title>The reciprocal link exchange scam</title>
		<link>http://www.geeksaloud.com/8/the-reciprocal-link-exchange-scam</link>
		<comments>http://www.geeksaloud.com/8/the-reciprocal-link-exchange-scam#comments</comments>
		<pubDate>Fri, 15 Feb 2008 16:33:08 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
		
		<category><![CDATA[websites]]></category>

		<category><![CDATA[link exchange]]></category>

		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.geeksaloud.com/8/the-reciprocal-link-exchange-scam</guid>
		<description><![CDATA[You know how it is, you have your new website running, you followed all the right Search Engine Optimization (SEO) tips and structure your pages well with the right meta tags, content and layout. Then you consider your next step&#8230; building a solid foundation of inbound links.
As if by magic, a few days later and [...]]]></description>
			<content:encoded><![CDATA[<p>You know how it is, you have your new website running, you followed all the right Search Engine Optimization (SEO) tips and structure your pages well with the right meta tags, content and layout. Then you consider your next step&#8230; building a solid foundation of inbound links.</p>
<p>As if by magic, a few days later and probably every other day from then on you receive that familiar email&#8230;</p>
<blockquote><p>
I think your site is really interesting and I wanted to link to it from my wonderful.com website? </p>
<p>I wanted to check with you first. I have over 100,000 monthly visitors and I would like to bring you a bit of increased traffic.<br />
Is it also possible for you to link back to me from your site?</p></blockquote>
<p><strong>Be warned, it&#8217;s likely to be a link exchange scam for their SEO benefit&#8230;</strong></p>
<p>In the good old days of the web, there was a real community spirit and people would happily provide links to each others sites. Nowadays with every site competing for those 10 positions on page 1 of Google things are unfortunately different and you may well be dealing with a link exchange scammer who will benefit from your link but tell the search engines to give you nothing back in return.</p>
<p>So, before you go ahead and agree to the link exchanger&#8217;s request, let me tell you about some of the things to look out for.</p>
<p>Go to the link exchanger&#8217;s site, find the page where they are suggesting they will add a link to your site and view the source code of that page.</p>
<p><strong>1. Meta data telling search Robots to not index or follow</strong></p>
<p>Look for the presence of a line within the &lt;head&gt; section of the code that looks like this:</p>
<pre><code>&lt;meta name="robots" content="noindex,nofollow" /&gt;</code></pre>
<p>This tells search engines that this page should not be indexed and not to follow links on the page. So, if your page is listed on this page it will be ignored by the search engines.</p>
<p><strong>2. The nofollow attribute</strong></p>
<p>Take a look at the individual links on the page, if they include the nofollow attribute and look like this:</p>
<pre>
&lt;a href="http://linktosomesite.com" rel="nofollow">Link to some site&lt;/a>
</pre>
<p>Then that link will be ignored by search engines. </p>
<p><strong>3. Robots exclusion</strong></p>
<p>Take a look at the site&#8217;s robots.txt file (www.theirdomainname.com/robots.txt) and look for a line that excludes the page containing external links. For example:</p>
<pre>
<code>Disallow: /links.html</code>
</pre>
<p>Again, if a line like this exists, the site manager is a link grabber and any of your links on their site won&#8217;t be given credit by Search Engines.</p>
<p><strong>4. Indirect links to your site</strong></p>
<p>If you&#8217;ve managed to avoid all the above pitfalls and you are ready to get your link added to the link exchanger&#8217;s site, hold on, we&#8217;re not done yet. Even if they are honest enough not to have written clever code to fool the search engines, you may find that links on their site aren&#8217;t all they appear to be.</p>
<p>For example, they may be using code behind what appears to be a genuine link to redirect to another page which then launches your website. This is all well and good for human visitors but a search engine will never run that code. </p>
<p>Say the link appears to go to www.mywebsite.com, take a look at the code and you may see something like this:</p>
<pre>
&lt;a href="/linkdirectory.php?id=3245>www.mywebsite.com&lt;/a>
</pre>
<p>You&#8217;ll see that instead of giving search engines some nice clear keywords and a website to visit, they are directing the link to a piece of code that will then forward the visitor (but not necessarily a search engine to the site).</p>
<h3>My thoughts on this</h3>
<p>I think it&#8217;s a sad state of affairs when website links are traded like a valuable commodity. The web is about networking and community. The millions of pages competing for search popularity has diluted the value of the &lt;link&gt; tag to almost purely a search engine optimization tool.</p>
<p>Almost all the major blogging platforms have set all comment links to be &#8220;nofollow&#8221; because of this. Wikipedia has also made all external links &#8220;nofollow&#8221;.</p>
<p><strong>HTML link categories</strong></p>
<p>I can see a point where the HTML link specification will need to be expanded to support different categories of links: commercial, trusted, personal etc. with a way for both search engines and web users to see the difference when browsing pages. </p>
<p><strong>The end of page rank?</strong></p>
<p>The current &#8220;nofollow&#8221; method is reaching a point where web masters are becoming so protective of their site&#8217;s page rank that they are reluctant to give a genuine link away. Maybe that&#8217;s the solution - drop page rank and base a sites search rankings on other factors such as content quality, hits and perhaps even recommendations from real visitors?</p>
<p>Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geeksaloud.com/8/the-reciprocal-link-exchange-scam/feed</wfw:commentRss>
		</item>
		<item>
		<title>I&#8217;ve become a Mac OS X Leopard fan - way better than Windows</title>
		<link>http://www.geeksaloud.com/7/ive-become-a-mac-os-x-leopard-fan-way-better-than-windows</link>
		<comments>http://www.geeksaloud.com/7/ive-become-a-mac-os-x-leopard-fan-way-better-than-windows#comments</comments>
		<pubDate>Sun, 10 Feb 2008 19:57:18 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
		
		<category><![CDATA[os]]></category>

		<category><![CDATA[leopard]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[os x]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.geeksaloud.com/7/ive-become-a-mac-os-x-leopard-fan-way-better-than-windows</guid>
		<description><![CDATA[I&#8217;m sorry Bill but I purchased an Apple iMac last week and I&#8217;m converted. But it&#8217;s ok, I&#8217;m still using a PC at home&#8230; for now. 
I now see why there are heated debates between the two religions - Mac OS X and Windows. Being a PC user, I never really &#8220;got&#8221; the Mac thing [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sorry Bill but I purchased an Apple iMac last week and I&#8217;m converted. But it&#8217;s ok, I&#8217;m still using a PC at home&#8230; for now. </p>
<p>I now see why there are heated debates between the two religions - Mac OS X and Windows. Being a PC user, I never really &#8220;got&#8221; the Mac thing and the last time I used a Mac in anger was 1991.</p>
<p>However, last year I started to become really frustrated with Windows. How after a fresh install, it would get slower each month as the registry grew. Also, how it would decide an urgent update was required and stop me working for 20 minutes while it installed. Or when everything would freeze as the anti-virus decided to do a weekly scan. Or perhaps it was the 15 minutes I&#8217;d have to wait for it to boot when I switched my PC on at work each morning.</p>
<p>So, last week I got a gorgeous iMac with a huge 24&#8243; screen in brushed aluminium running OS X and became a Macophile.</p>
<p>Day 1 was all &#8220;ah&#8217;s&#8221; and &#8220;ooh&#8217;s&#8221; as I revelled in the beauty of OS X Leopard. I was amazed that everything just worked - networks, printers, even Windows file systems were detected by my iMac and worked faultlessly first time.</p>
<p>Day 2 I discovered the Dashboard and played with the Dock. Features like Spaces made Windows look so out of date - a simple squeeze of my mighty mouse&#8217;s side and all open windows were visible. No longer would I spend ages looking through layers of windows looking for that elusive application.</p>
<p>Then I plugged in an external drive and turned on the Time Machine. Wow. I certainly can&#8217;t say I&#8217;ve ever been excited by backing up files before but Time Machine is incredible. Every hour it incremently and silently backs up my files. If I ever need to recover something, I simply launch the Time machine interface and move back through time to locate it. Being OS X Leopard of course, it does this in real style with all backups moving back in time to a space vortex in the distance.</p>
<p>I love the little things like how I can create, preview and edit PDFs - something not possible in Windows without extra software. Same for image editing, all in-built within Leopard. In Leopard, you can preview files in the finder without opening the documents - even Microsoft Word documents can be previewed on the iMac without opening the file. How come you can&#8217;t do this on Windows?!</p>
<p>Startup and shutdown of OS X Leopard can be measured in seconds rather than minutes and performance so far has been excellent. We do some fairly intensive graphic processing in the office and a colleague was having problems rendering an image on his NEW high spec PC. It was taking him 24 minutes to process the file. We performed the same operation on the iMac in 3 minutes.</p>
<p>Of course it&#8217;s early days but I&#8217;m definitely hooked and I will write again in a few weeks to tell you all how I&#8217;m getting on. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.geeksaloud.com/7/ive-become-a-mac-os-x-leopard-fan-way-better-than-windows/feed</wfw:commentRss>
		</item>
		<item>
		<title>Practical Search Engine Optimization (SEO) tips</title>
		<link>http://www.geeksaloud.com/6/practical-search-engine-optimization-seo-tips</link>
		<comments>http://www.geeksaloud.com/6/practical-search-engine-optimization-seo-tips#comments</comments>
		<pubDate>Wed, 23 Jan 2008 16:35:19 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
		
		<category><![CDATA[websites]]></category>

		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.geeksaloud.com/6/practical-search-engine-optimization-seo-tips</guid>
		<description><![CDATA[If you search for the keyword SEO online, there are hundreds if not thousands of sites out there offering advice, consultancy and &#8220;top 10&#8243; SEO improvements that you can make.
What I&#8217;m hoping this article will do is look at the problem from a practical angle based on what I&#8217;ve learnt from working with SEO experts [...]]]></description>
			<content:encoded><![CDATA[<p>If you search for the keyword SEO online, there are hundreds if not thousands of sites out there offering advice, consultancy and &#8220;top 10&#8243; SEO improvements that you can make.</p>
<p>What I&#8217;m hoping this article will do is look at the problem from a practical angle based on what I&#8217;ve learnt from working with SEO experts who I rate highly and from real world experience running many websites. I&#8217;m not offering any commercial services on this site and will try and remain impartial to give you what I believe are the best solutions for getting your website higher in the rankings than others.</p>
<h3>What is SEO?</h3>
<p>First, I guess I&#8217;d better clarify what I mean by Search Engine Optimization or SEO. When I say SEO, I mean the process of improving the volume of traffic to your site from search engines and improving the chances of your website appearing higher in search engine results for specific keyword combinations that are relevant to your site&#8217;s content.</p>
<p>A few words of warning though. Nothing in the SEO world is guaranteed and anyone who says otherwise isn&#8217;t being completely honest with you. By applying the SEO tips in this article the chances are that your site will move up in the search engine rankings but by no means would I ever say you&#8217;ll get to page 1 of the search results.</p>
<p>Google, Yahoo and MSN never publish their algorithms and they are always being updated. If you try and trick the engines you&#8217;ll eventually be caught out and your site may drop like a stone or even worse you may be blacklisted. Attempting to trick the engines is often called &#8220;Black Hat SEO&#8221; and is definitely not recommended by me.</p>
<h3>It takes time</h3>
<p>Like all the best things in life, SEO takes time. Don&#8217;t expect to make changes to your site and see an overnight improvement. In my experience, many changes can take between 1 and 3 months to start making a difference. This is a double edged sword because if you make a change incorrectly or try something new that doesn&#8217;t work, you won&#8217;t notice for some time then once you do it&#8217;ll take ages for the fix to make a difference.</p>
<p>So, with that said, let&#8217;s get to the SEO tips:</p>
<h3>Practical SEO tips</h3>
<h4>1. Understand your site</h4>
<p>Before you embark on any SEO related improvements, the first step is to understand your site and your current traffic. I would recommend three proven methods:</p>
<p>1. <a rel="nofollow" href="http://www.google.com/webmasters/">Google webmaster tools</a><br />
2. <a rel="nofollow" href="http://www.google.com/analytics">Google analytics</a><br />
3. <a rel="nofollow" href="http://home.snafu.de/tilman/xenulink.html">Xenu link checker</a></p>
<p>Google webmaster tools will tell you exactly about your site&#8217;s visibility in Google, where your site has errors, who is linking to you and how often the site is crawled. My favourite feature is top search queries which is able to tell you keywords people have used and where your site appeared in the results even if they did not go on to click your site.</p>
<p>Google Analytics has to be one of the best online toolsets available. By adding a few lines of code to each page on your site, Google Analytics allows you to track visitor numbers, landing pages, page views, time on site, geographic breakdown of visitors and even the city they came from.</p>
<p>Xenu is a downloadable tool that will quickly analyse your site and report all broken links. Invaluable.</p>
<p>You should spend a lot of time with these tools. I personally use Google Analytics daily. You should review traffic and then optimize your content and pages accordingly.</p>
<h4>2. Content is king</h4>
<p>Nothing is more important than content. A well structured site without content is like a ferrari without an engine - great looking but useless. You need to love writing articles, managing feedback, reviewing links and everything else associated with running a website with real visitors.</p>
<p>Remember that your site is for two audiences - real people and search engines. However your content should only be written for real people. Don&#8217;t create clusters of keywords or worry about keyword frequency and density. Simply write regularly with content and articles that are consistent with your site&#8217;s intent and that you think your readers will enjoy reading.</p>
<p>There&#8217;s no clear rule on frequency but I would recommend trying to post at least a couple of articles per week. It is important not to copy content from other sites and not to plagiarize. Search engines hate duplicate content and will penalize you accordingly. Copyright owners will chase you if you use their work without permission - a polite request is often all that is required if you want to use material from others on your site.</p>
<h4>3. Other sites need to like you</h4>
<p>If you write good quality content the visitors will come and other sites will link to you. If you are starting out, link directories are one way to quickly build inbound links but be careful as Google is beginning to penalize sites that do this.</p>
<p>I would recommend the <a rel="nofollow" href="http://info.vilesilencer.com/">SEO friendly directory site</a> for a list of quality directories. After you&#8217;ve been running for a while you will find you need these directories less and less.</p>
<h4>4. Remove page errors</h4>
<p>404 errors, server errors, missing links are bad for your users and bad for search engines. Use tools such as Xenu and Google Webmaster to eliminate them. </p>
<p>You can read another article about how I was <a href="http://www.geeksaloud.com/5/a-website-bites-the-hand-of-its-creator">caught out by a strange 404 error</a>.</p>
<h4>5. Make life easy - use a content management system</h4>
<p>If your site is hand coded using PHP, ASP, JSP or any other fine coding language and your content is coming from a database or even worse static you will spend hours updating, tuning and improving.</p>
<p>Some people love this but as you create more sites and more content it will begin to wear you down. </p>
<p>Using a Content Management System will make a huge difference - many now come with embedded features such as feeds, tags, pretty URLs and page designs that are very SEO friendly. I am personally a big fan of <a rel="nofollow" href="http://wordpress.com/">WordPress</a> and I use it for both blogging as used in this site and also as a general purpose content management platform. WordPress has an extensive library of plugins, many of which are ideal for SEO purposes. I run WordPress with plugins for MetaTags, Tag Clouds, Feedburner and Google sitemaps which all help me with search engines.</p>
<h4>6. Titles, titles, titles</h4>
<p>Make sure every page on your site has a unique title and that the title accurately describes the content of the page first using relevant keywords. For example, on a website about travel and a page about Italian hotels, instead of the title &#8220;TravelSite&#8221;, put the page description first and the site title last like this &#8220;Hotels in Italy ~ By TravelSite. Everything about Travel&#8221;. </p>
<p>Not only will this give your pages unique titles but it will also give search engines an indication of relevant keywords for pages and make the title clear when the page is listed in search results.</p>
<h4>7. Page tag structure</h4>
<p>After the title, you should structure your page in a clear hierarchy. H1 tags are the most important but only use this tag for content titles on the page that are significant. One or two H1s per page is really enough. Including too many will confuse the search engine.</p>
<p>After the H1, use H2s for article/section titles, H3s for subheadings and so on. </p>
<p>The rule is to give your page a clear keyword and content hierarchy to help the search engine (and your visitors) navigate the page.</p>
<p>Finally, I would also recommend a one line footer that links back to your home page containing a sentence with your most important keywords. For the travel site, this could be &#8220;TravelSite - Accommodation, Flights, Guides and Discussion about top holiday and travel destinations worldwide&#8221;.</p>
<h4>8. URL format</h4>
<p>Many sites use a confusing URL structure such as http://site.com/page?parameter=22342. No keywords are included and it gives readers no indication what the page is about. I would recommend a keyword based URL format such as http://site.com/545/skiing-and-snowboarding-in-canada</p>
<p>You can immediately see that this URL is both search engine friendly and user friendly. If you use a platform such as WordPress, it can create this URL structure for you automatically.</p>
<h4>9. Sitemaps</h4>
<p>A sitemap is an XML file that guides a search engine to find all of your pages, it also tells the engine when pages are updated and which pages are more important than others. As your site becomes more important you will rely less on the sitemap but for new sites, it&#8217;s a vital tool. There are many tools out there that can create sitemaps for you automatically.</p>
<p>The second sitemap I would recommend is a human readable HTML sitemap that acts like a simple index to your site. Incuding this somewhere on your site not only provides a quick way for people to locate pages that may otherwise be difficult to find but also acts as a keyword guide for search engines.</p>
<h4>10. Image optimization</h4>
<p>Give every one of your images an ALT tag that describes the image to search engines.<br />
Also, use Google Webmaster tools to allow image indexing of your site - it&#8217;s amazing how many extra visitors can come from a Google image search.</p>
<h4>11. Link optimization</h4>
<p>Give every one of your links a TITLE tag and also a description containing keywords. So, instead of:</p>
<pre>
&lt;a href="http://www.somesite.com"&gt;www.somesite.com&lt;/a&gt;
</pre>
<p>Do this&#8230;</p>
<pre>
&lt;a href="http://www.somesite.com" title="A site about travel around the world"&gt;A site about travel around the world&lt;/a&gt;
</pre>
<p>Again, this gives search engines those vital keywords.</p>
<h4>12. Page rank</h4>
<p>Page rank (PR) is a hotly debated topic within the web community. A site&#8217;s Google page rank is often seen as the badge of honour or embarrassment for a webmaster.  Whole websites are devoted to discussing page rank and &#8220;High PR&#8221; directories abound that will only list websites with a PR4 or higher.</p>
<p>In simple terms, a page rank is a numerical value from 0 to 10 that indicates that web page&#8217;s measure of &#8220;importance&#8221; within the web community. The Google toolbar provides a toolbar that gives an indicative page rank for each page you visit or there are many websites out there that will show you PR values. The true Google page rank is of course hidden within Google&#8217;s search algorithm.</p>
<p>When you include a link to another site on your page, part of your page&#8217;s PR is given to that site. Conversely, when a site links to you, part of that site&#8217;s PR comes your way. This sharing of PR (or &#8220;link juice&#8221; as I like to call it) is how the PR system works and part of how search engines determine where pages are displayed in search results.</p>
<p>The idea of course is that the higher your PR, the higher your page will appear in results. Whilst this is of course partially true, there are many other factors that will also affect your results and PR is just one of them. I personally recommend that you don&#8217;t worry about PR too much. If you write your site well and keep posting good quality, relevant content then sites will link to you, visitors will come and your PR will increase. However, once you&#8217;ve got your PR, don&#8217;t just give it away&#8230;</p>
<h4>13. Don&#8217;t give every link away</h4>
<p>If you&#8217;ve read the PR topic above, you&#8217;ll see that I recommend that you don&#8217;t worry unduly about PR - it will come. The key thing is thought that once you&#8217;ve got your PR, don&#8217;t just give it away to every site that asks. </p>
<p>As your PR increases, you&#8217;ll be inundated with requests to share links with other sites. This will give away a small portion of your PR in return for a bit of theirs. If they have a lot of links and/or a low PR you&#8217;ll only get a tiny portion of page rank from them whilst you may be giving away more.</p>
<p>At the start of this article I talked about writing for two types of user - real people and search engines. People reading your site are the most important and I certainly recommend including as many links as possible to other sites that you think your readers will find useful but you don&#8217;t have to give your PR away on all these links to the search engine user.</p>
<p>If you want to include a link for your readers but instruct a search engine not to follow the link (and therefore not give your PR away), here&#8217;s what you do:</p>
<pre>
&lt;a href="http://www.somesite.com" rel="nofollow"&gt;The link text&lt;/a&gt;
</pre>
<p>Notice the &#8220;nofollow&#8221; within the tag. To a normal user, the link appears normal but to a search engine, this say stop there. </p>
<p>Using this technique, you can give your PR away to only those sites you choose to whilst still giving your readers the benefit of interesting links. This may not sound very community spirited towards fellow webmasters but it&#8217;s a competitive world out there and I can see the use and dominance of PR being reduced in the future because of this feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geeksaloud.com/6/practical-search-engine-optimization-seo-tips/feed</wfw:commentRss>
		</item>
		<item>
		<title>A website bites the hand of its creator</title>
		<link>http://www.geeksaloud.com/5/a-website-bites-the-hand-of-its-creator</link>
		<comments>http://www.geeksaloud.com/5/a-website-bites-the-hand-of-its-creator#comments</comments>
		<pubDate>Mon, 14 Jan 2008 11:38:33 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
		
		<category><![CDATA[websites]]></category>

		<category><![CDATA[cms]]></category>

		<category><![CDATA[htaccess]]></category>

		<category><![CDATA[SEO]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.geeksaloud.com/5/a-website-bites-the-hand-of-its-creator</guid>
		<description><![CDATA[Ah the joys of development. You spend hours crafting crafting code into a functional website, you run as many tests as possible to iron out those frustrating bugs, finally you &#8220;go live&#8221; and release your creation into the world.
That&#8217;s when it really starts to test your patience. New bugs, Gotchas, missing links, misbehaving dynamic content [...]]]></description>
			<content:encoded><![CDATA[<p>Ah the joys of development. You spend hours crafting crafting code into a functional website, you run as many tests as possible to iron out those frustrating bugs, finally you &#8220;go live&#8221; and release your creation into the world.</p>
<p>That&#8217;s when it really starts to test your patience. New bugs, Gotchas, missing links, misbehaving dynamic content you name it, it will happen. Then when you think you&#8217;ve fixed all those, something else will come along to kick you.</p>
<p>Today&#8217;s rant from me is because of a site that I thought was running perfectly. Orders were coming in (albeit slowly), traffic was reasonable and life was good&#8230;. until I checked my trusty <a rel="nofollow" href="http://www.google.com/webmasters/sitemaps/?hl=en_GB">Google Webmaster tools</a> and discovered over 750 page not found 404 errors in my site for pages that I thought were working perfectly well for the user.</p>
<p>So, here&#8217;s the situation. A URL that worked absolutely fine from any web browser was returning a 404 page not found error to search engines. Suddenly Google and Yahoo think that my site has disappeared into vapour and those pages that have taken months to creep up the search results drop like a stone.</p>
<p>The reason for this was that I&#8217;d tried to be clever by integrating Wordpress as a Content Management System (CMS) into an existing site. </p>
<p>I&#8217;m a BIG fan of Wordpress, not only as a blogging platform at which it excels but also as a generic CMS that I can use to create dynamic content for my sites. Out of the box it includes a fantastic admin system, hundred of plugins, great php based API, user management, commenting system and of course Google loves content and Google loves blogs which really helps with my SEO efforts. I&#8217;ve used Wordpress successfully now to add regularly updated content to a number of site - for example, I use the Amazon Web Services API to query the Amazon database and create website that sell specific products such as <a href="http://www.lovelygold.co.uk" title="Jewellery">Jewellery</a> (<a href="http://www.lovelygold.com" title="Jewelry">Jewelry </a>for US readers!). By using Wordpress as a CMS I can dynamically bring in articles relevant to specific sections of the Jewellery site - for example, an article about the latest deals on Watches in the Watches department.</p>
<p>Back to my problem&#8230; what I done in my site is use an .htaccess file to allow pretty URLs to be used. For example: the URL /products/department/watches would actually go to the file /products.php?department/watches.</p>
<p>To integrate Wordpress into a site, you add the following code:</p>
<pre><code>&lt;?php define('WP_USE_THEMES', false); ?&gt;
&lt;?php require('./blog/wp-blog-header.php');?&gt;
</code></pre>
<p>Wordpress doesn&#8217;t seem to like me using an .htaccess file that isn&#8217;t in sync with it&#8217;s own Permalink structure, so when one of my pretty Wordpress URLs was passed to wp-blog-header.php, it couldn&#8217;t work out where the page was and returned a 404 error &#8230; but only to search engines!</p>
<p>I haven&#8217;t figured out why a 404 was being returned for search engines but users could quite easily see the pages. That&#8217;s the a real mystery that I&#8217;m hoping readers of this site may have the answer to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geeksaloud.com/5/a-website-bites-the-hand-of-its-creator/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hosting with Dreamhost</title>
		<link>http://www.geeksaloud.com/4/hosting-with-dreamhost</link>
		<comments>http://www.geeksaloud.com/4/hosting-with-dreamhost#comments</comments>
		<pubDate>Tue, 08 Jan 2008 12:18:00 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
		
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.geeksaloud.com/4/hosting-with-dreamhost</guid>
		<description><![CDATA[I don&#8217;t intend for this site to be full of promotional rubbish or adverts but I have to say a few positive words about my hosting provider Dreamhost.
Over the years I&#8217;ve used a number of different companies, usually at the lower end of the budget (which of course you&#8217;ll say is why I&#8217;ve had problems) [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t intend for this site to be full of promotional rubbish or adverts but I have to say a few positive words about my hosting provider <a href="http://www.dreamhost.com/r.cgi?374478">Dreamhost</a>.</p>
<p>Over the years I&#8217;ve used a number of different companies, usually at the lower end of the budget (which of course you&#8217;ll say is why I&#8217;ve had problems) and they have all had their faults - poor site performance, poor support, restrictive terms, price creep an so on.</p>
<p>So, in 2007 I decided to consolidate all of my sites onto one provider. I looked into private hosting but I couldn&#8217;t really justify the price and in many cases my databases and email would still be shared. So it was back to shared hosting.</p>
<p>After extensive searching I discovered that many people recommended Dreamhost and the benefits certainly seemed tempting:</p>
<p>For a start 500Gb of disk storage and 5 <strong>Terabytes</strong> of monthly bandwidth that increases by 40Gb a week. Then they add in <em>unlimited </em>domains hosted under one account, <em>unlimited </em>email addresses, <em>unlimited </em>mySQL databases and support for advanced features such as video streaming.</p>
<p>All from $5.95 per month and I&#8217;m not even getting close to their bandwidth limits at the moment.</p>
<p>Too good to be true you might say but using Dreamhost has allowed me to currently host 7 of my sites within one affordable account and the performance to date has been excellent.</p>
<p>Their support has also been exemplary.  A recent example was when I contacted their support team on Dec 31 (New Years Eve) and they came back to me within 10 minutes with a solution to my problem.</p>
<p>Anyway, don&#8217;t just listen to me, take a <a href="http://www.dreamhost.com/r.cgi?374478" title="Dreamhost hosting">look at them for yourself</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geeksaloud.com/4/hosting-with-dreamhost/feed</wfw:commentRss>
		</item>
		<item>
		<title>PHP sessions and simplexml_load_string</title>
		<link>http://www.geeksaloud.com/3/php-sessions-and-simplexml_load_string</link>
		<comments>http://www.geeksaloud.com/3/php-sessions-and-simplexml_load_string#comments</comments>
		<pubDate>Tue, 08 Jan 2008 11:34:04 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
		
		<category><![CDATA[php]]></category>

		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.geeksaloud.com/3/php-sessions-and-simplexml_load_string</guid>
		<description><![CDATA[In all the sites I&#8217;ve developed to date, it&#8217;s actually quite rare to find a php bug so although this issue took me a day to fix, I&#8217;m actually quite pleased to have found one.
The issue:
Basically, using the php simplexml_load_string() function appears to affect session handling and corrupts the data used in the $_SESSION data [...]]]></description>
			<content:encoded><![CDATA[<p>In all the sites I&#8217;ve developed to date, it&#8217;s actually quite rare to find a php bug so although this issue took me a day to fix, I&#8217;m actually quite pleased to have found one.</p>
<p><strong>The issue:</strong></p>
<p>Basically, using the php simplexml_load_string() function appears to affect session handling and corrupts the data used in the $_SESSION data causing the error &#8220;node no longer exists&#8221; error when session_start()  is called.</p>
<p>I was using the session system to keep a breadcrumb history for a store I&#8217;m developing (<a href="http://www.retailhealing.com" title="Retail Healing - online shopping">retailhealing.com</a>) and had a handful of session varables, each representing a page in the breadcrumb history (crumb1, crumb2, crumb3, &#8230; etc).</p>
<p>The code was something like this:</p>
<pre><code>session_start();
...
for ($i=1;$i &lt; 5;$i++)    {
   $snode='crumb'.$i;
   $sdesc='crumbd'.$i;
   if (!isset($_SESSION[$snode])) {

 	$_SESSION[$snode]=0;
 	$_SESSION[$sdesc]='';
  }
}

...

[later in the code, I was also using simple XML]

$parsed_xml = simplexml_load_string($xml);</code>
</pre>
<p>After the first call to session_start(), when the page was refreshed, I kept getting a &#8216;node no longer exists&#8217; php error and I couldn&#8217;t figure out what was going on.</p>
<p><strong>The solution</strong></p>
<p>A Google search revealed a case <a href="http://bugs.php.net/bug.php?id=33142" rel="nofollow" title="PHP session bug">similar to mine</a> but the unfortunate poster seems to have been initially flamed by the respondents who rejected it as a bug.</p>
<p>This case was discussing the use of the simplexml_load_string() which I was also using in my code. As a test, I commented out all calls to this function and reloaded my pages. Everything worked just fine.</p>
<p>This pointed the finger of blame directly at the simplexml_load_string() after I of course had spent hours looking at how I was using the $_SESSION[] calls in my code looking for an elusive typo!</p>
<p>So, what was I to do? I could of course just not use simplexml and use a more complex XML parser but I really wanted a quick solution.</p>
<p>The answer was in fact included at the bottom of the case returned in my initial Google search. You need to cast all non string values assigned to session variables to strings as follows:</p>
<pre><code> $_SESSION[variable]=(String)value;</code></pre>
<p>So, my code snippet above now looks something like this:</p>
<pre><code>session_start();

...

for ($i=1;$i &lt; 5;$i++)    {

   $snode='crumb'.$i;
   $sdesc='crumbd'.$i;

   if (!isset($_SESSION[$snode])) {

 	$_SESSION[$snode]=(String)0;
 	$_SESSION[$sdesc]='';
  }

}</code></pre>
<p>This is the first and only time I&#8217;ve had to use casting in PHP and I&#8217;ve no idea why I need to do it in this case&#8230; I&#8217;m sure there must be someone out there who can explain?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geeksaloud.com/3/php-sessions-and-simplexml_load_string/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
