<?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>GrandmasterB dot com &#187; php</title>
	<atom:link href="http://www.grandmasterb.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.grandmasterb.com</link>
	<description>Wandering Thoughts of a Graphical Assassin</description>
	<lastBuildDate>Sat, 30 Jan 2010 17:55:41 +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>Q&amp;A with GrandmasterB &#8211; Markup Validation</title>
		<link>http://www.grandmasterb.com/qa-with-grandmasterb-markup-validation/</link>
		<comments>http://www.grandmasterb.com/qa-with-grandmasterb-markup-validation/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 13:00:47 +0000</pubDate>
		<dc:creator>GrandmasterB</dc:creator>
				<category><![CDATA[Q&A with GMB]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[markup validation]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.grandmasterb.com/?p=899</guid>
		<description><![CDATA[
It&#8217;s been quite awhile since I&#8217;ve posted anything new under the Question and Answers with GrandmasterB category, but today I received a great question in my inbox that I had to share with you all. The email was from my good pal Mike Cusden (you all know him as Cuzzy) from Cuzoogle. He had run [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-299" title="Q&amp;A with GrandmasterB" src="http://www.grandmasterb.com/wp-content/uploads/2008/08/q_a_gmb.png" alt="Q&amp;A with GrandmasterB" width="510" height="135" /></p>
<p>It&#8217;s been quite awhile since I&#8217;ve posted anything new under the Question and Answers with GrandmasterB category, but today I received a great question in my inbox that I had to share with you all. The email was from my good pal Mike Cusden (you all know him as Cuzzy) from Cuzoogle. He had run his site through the Markup Validation script at <a title="W3C Markup Validator" href="http://validator.w3.org/">http://validator.w3.org/</a> and it came back with quite a few errors and warnings, his question follows:</p>
<blockquote><p>Hey GrandmasterB, I ran my site through the Markup Validator and it came back with a ton of errors. Are any of these errors fixable? And is it something that&#8217;s relatively easy to fix?</p></blockquote>
<p>My first reaction was one of surprise, because every theme that I design and develop is run through to make sure that the code is 100% XHTML compliant before turning it over to the client. After taking a look at the output from the validator I could see exactly what the issue was and what needed to be fixed. For reference, I have pasted a copy of the report link <a title="W3C Markup Validator: Cuzoogle.com" href="http://validator.w3.org/check?uri=http%3A%2F%2Fcuzoogle.com%2F&amp;charset=(detect+automatically)&amp;doctype=Inline&amp;group=0&amp;user-agent=W3C_Validator%2F1.606" target="_blank">here</a> for you to follow along.</p>
<p>The problem that Cuzzy is having is that his theme code isn&#8217;t the problem, it&#8217;s the advertising code that he&#8217;s placed on the site. If you look at the errors that appear on the Markup Validation page, you&#8217;ll notice that the first error states the following:</p>
<blockquote><p>Line 15, Column 107: cannot generate system identifier for general entity &#8220;MarketPlace&#8221;.<br />
…om/widgets/q?ServiceVersion=20070822&amp;<strong><span style="color: #ff0000;">M</span></strong>arketPlace=US&amp;ID=V20070822/US/cuzoogle- </p></blockquote>
<p><span id="more-899"></span>There are a couple of things to look at here to determine the error. First you&#8217;ll notice next to the warning icon the words &#8220;Line 15, Column 107&#8243;. This is where the line of code is found if you view the source code in a text editor like DreamWeaver or BBEdit. Since this error is found on Line 15, it is going to be found in the header.php file of the WordPress theme. You see the capital &#8216;<span style="color: #ff0000;"><strong>M</strong></span>&#8216; is highlighted in red? That&#8217;s where the error is, if you read the description of the error it tells you that the ampersand before the letter &#8216;<span style="color: #ff0000;"><strong>M</strong></span>&#8216; is uncoded. What that means is it doesn&#8217;t have the proper code tag. Instead of using just the symbol you would use this code: <strong>&amp;amp;</strong></p>
<p>By fixing that one mistake with the ampersand, Cuzzy will be able to get rid of approximately 27 warnings/errors on his Markup Validation! Pretty cool and extremely easy to do. </p>
<h4>How Do I Validate Markup?</h4>
<p>I like to pull up my source code in Firefox and then copy and paste it into Coda (or your favorite text editor). I do that so I can see the line count and determine where the error is. I then open the file that contains that piece of code, in this case the header.php file. I don&#8217;t edit it though&#8230;what I do is &#8220;save as&#8221; and call it header.php.old and close it. I don&#8217;t like to edit working code, in case I have to revert back to the original. Open the header.php file again, make the change and then upload the file to your server. <strong>NOTE</strong>: If you&#8217;re using Coda, you can do all of this to your files that are on the server remotely and don&#8217;t have to worry about uploading files via FTP. After you make the change, go back to the HTML Markup Validator and click &#8220;revalidate&#8221;. The code will then be revalidated and you should see all of the errors for Line 15 disappear.</p>
<h4>Markup Validation Tools</h4>
<p>There are many tools available for validating your markup, but the good thing is that most of them are free! If you use Firefox, I highly recommend downloading <a title="Firefox Add-ons: Web Developer" href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer Add-on</a> by Chris Pederick. Under the &#8216;Tools&#8217; menu on Web Developer it has links that will run your site through the Markup Validator as well as a CSS Validator. For editing code, I use Coda (as mentioned before), but you can use whatever text editor you choose. I highly recommend an editor which has a line count display. If you do a Google Search for &#8220;Free HTML Editors&#8221; you&#8217;ll find all kinds of stuff.</p>
<p>Well, that&#8217;s it for this edition of Q&amp;A with GrandmasterB. I hope that you all learned a little bit from this post. If anything it should shed a little light on markup validation and show you that it&#8217;s really something that you shouldn&#8217;t be afraid of. If you have any questions about markup validation or anything else related to web design or development, please shoot me an email. I would be happy to answer your questions&#8230;now, I&#8217;m off to make double sure my code is all up to par.</p>
<p>~ GrandmasterB</p>
]]></content:encoded>
			<wfw:commentRss>http://www.grandmasterb.com/qa-with-grandmasterb-markup-validation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Q&amp;A with GrandmasterB &#8211; August 21</title>
		<link>http://www.grandmasterb.com/qa-with-grandmasterb-august-21/</link>
		<comments>http://www.grandmasterb.com/qa-with-grandmasterb-august-21/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 20:46:21 +0000</pubDate>
		<dc:creator>GrandmasterB</dc:creator>
				<category><![CDATA[Q&A with GMB]]></category>
		<category><![CDATA[cuzoogle]]></category>
		<category><![CDATA[FireFTP]]></category>
		<category><![CDATA[GoogleBot]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.grandmasterb.com/?p=332</guid>
		<description><![CDATA[
I skipped the Q&#38;A last week in order to get some good questions rolling in the door and to find a good day of the week to commit to the feature post. I&#8217;ve settled on Thursdays for the Q&#38;A with GrandmasterB feature; since it allows me to get things caught up over the weekend and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.grandmasterb.com/wp-content/uploads/2008/08/q_a_gmb.png"><img class="aligncenter size-full wp-image-299" title="Q&amp;A with GrandmasterB" src="http://www.grandmasterb.com/wp-content/uploads/2008/08/q_a_gmb.png" alt="" width="500" height="132" /></a><br />
I skipped the Q&amp;A last week in order to get some good questions rolling in the door and to find a good day of the week to commit to the feature post. I&#8217;ve settled on Thursdays for the Q&amp;A with GrandmasterB feature; since it allows me to get things caught up over the weekend and more time to put together a clear and concise answer. Don&#8217;t forget to send me your questions and if your question is published you&#8217;ll get a free linkback from GrandmasterB and 100 EntreCard credits for your bankroll. Now onto the question for this week.</p>
<p>My boy Cuzzy (<a title="Cuzoogle" href="http://www.cuzoogle.com" target="_blank">Cuzoogle.com</a>) wrote me an email the other day asking me the following question:</p>
<p>I have recently started a new blog and want to set up a google site map. I downloaded the plugin and activated it but I am still having trouble getting my site map to work. It says I need to make sure the file is writeable and this was where I got lost. Can you help?</p>
<p><span id="more-332"></span></p>
<p>Cuzzy, this is actually a very common problem with installing plug-ins that need to be able to &#8220;write&#8221; to a given file on your server. In regards to your question the first thing you need to do is create the file for the sitemap. In order to do this you can use any text editor, I suggest using <strong>Notepad</strong> or if you have it <strong>Dreamweaver</strong> or another HTML editor. You don&#8217;t have to add any code to it, just save it as <strong><em>sitemap.xml</em></strong> and then upload it to the root directory of your site (wherever your index.php file is for WordPress).</p>
<p>If you don&#8217;t have an FTP client to upload your files I highly recommend installing FireFTP for Firefox. You should be able to download, install and setup the FTP client in record time; it is very user friendly. The only information that you will need to enter is your host (aka URL), username and password; once you have that hit connect and you should see the directory of your website in the right hand column. From here you will need to upload the <em><strong>sitemap.xml</strong></em> file to the home directory. Once it is uploaded right click it and choose &#8220;properties&#8221; (<a title="FireFTP: File Properties" href="http://www.grandmasterb.com/wp-content/uploads/2008/08/ftp_properties.png">see image</a>).</p>
<p>Once you have clicked on properties, it will bring up a window for you showing you the file permissions. Each checkbox has a numeric value, and for this case we need that number to add up to 0777. What you&#8217;ll need to do is make sure that you check Read, Write and Execute under each column and then click OKAY (<a title="FireFTP: File Properties Permissions" href="http://www.grandmasterb.com/wp-content/uploads/2008/08/ftp_properties2.png">see image</a>). You&#8217;ve now changed the file permissions for <strong><em>sitemap.xml</em></strong>.</p>
<p>After you have changed the file properties, go back to your WordPress Admin Panel and click on settings and then access the XML-Sitemap settings. Under the top section labeled &#8220;Status&#8221; you may still see a warning that the file isn&#8217;t writeable, that is okay. It doesn&#8217;t automatically check the files if you&#8217;ve made a change. Simply click on the &#8220;rebuild sitemap manually&#8221; link and it should write the sitemap and create a new compressed file as well. One thing to note is that under the Location of the Sitemap File you should check automatically; that will save you time in the long run.</p>
<p>That&#8217;s pretty much it for the XML-Sitemap plugin settings though. Once you have everything setup, you should begin to see more activity from the search engines crawling your content. If you haven&#8217;t done so already I highly recommend installing the <a title="Crawl Rate Tracker" href="http://www.blogstorm.co.uk/wordpress-crawl-rate-tracker/" target="_blank">Crawl Rate Tracker</a> plugin; with that plugin installed you can see when the top three search engines (GoogleBot, Yahoo! and MSN) are crawling your site and how often.</p>
<p>That is all for this week&#8217;s Q&amp;A with GrandmasterB. Thank you again, to <a title="Cuzoogle" href="http://www.cuzoogle.com" target="_blank">Cuzzy</a> for his question and your 100 EntreCard Credits are being emailed to you now. Don&#8217;t forget if there&#8217;s something you&#8217;d like to know about hit me up with a question and you too can get a linkback and 100 EntreCard credits if I answer your question on the Q&amp;A.</p>
<p>~ GrandmasterB</p>
]]></content:encoded>
			<wfw:commentRss>http://www.grandmasterb.com/qa-with-grandmasterb-august-21/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
