<?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>webhank &#187; tutorial</title>
	<atom:link href="http://www.webhank.com/tag/tutorial/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webhank.com</link>
	<description>my two cents - by Hank Pantier</description>
	<lastBuildDate>Wed, 04 Aug 2010 19:42:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Online Guitar Resources</title>
		<link>http://www.webhank.com/music/online-guitar-resources</link>
		<comments>http://www.webhank.com/music/online-guitar-resources#comments</comments>
		<pubDate>Thu, 03 Dec 2009 21:32:12 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[guitar]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=329</guid>
		<description><![CDATA[I&#8217;ve spent a lot of time on the &#8216;net over the past month or so reading, watching, and listening to tutorials on how to play the guitar.  I though that I&#8217;d post these &#8220;How to play the guitar&#8221; links for others out there that may be searching.  Let me know what you think. Videos Marty [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webhank.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/329.jpg&amp;w=530&amp;h=220&amp;zc=1&amp;ft=jpg' alt='post thumbnail' title="Online Guitar Resources" /></p>
<p>I&#8217;ve spent a lot of time on the &#8216;net over the past month or so reading, watching, and listening to tutorials on how to play the guitar.  I though that I&#8217;d post these &#8220;How to play the guitar&#8221; links for others out there that may be searching.  Let me know what you think.</p>
<h3>Videos</h3>
<p>Marty Schwartz from Guitarjams.com has a great channel on Youtube.  He goes over how to play songs of all levels and he updates frequently.  <a href="http://www.youtube.com/user/guitarjamzdotcom">Check him out here</a>.</p>
<p>Aaron Gallagher is almost entirely self taught (and he&#8217;s not even been playing all that long) he runs a great site called <a href="http://freeandeasyguitar.com">Free and Easy Guitar</a> that has a HUGE how to video library.  Pick a song from the drop down list, and Aaron will teach you how to play it.</p>
<p>Justin Sandercoe is a London based guitarist who runs the site <a href="http://justinguitar.com">justinguitar.com</a>.  His site differs from the others in that he has highly structured lessons that you can follow along with.  The site is donation based.  I&#8217;ve been spending a good bit of time making my way through his <a href="http://justinguitar.com/en/BC-000-BeginnersCourse.php">Basics Course</a>.</p>
<p>I also just stumbled upon a site called <a href="http://www.guitarnoise.com/">Guitar Noise</a>.  I&#8217;ve not used it too much yet, but it has many tutorials as well as guitar related news.</p>
<h3>Tabs</h3>
<p>The best site i have found for guitar tabs is hands down <a href="http://www.ultimate-guitar.com/">Ultimate Guitar</a> their index seems to be near bottomless, so much so that I feel no need to reference any other.</p>
<h3>Other Resources</h3>
<ul>
<li><a href="http://www.metronomeonline.com/">Online metronome</a></li>
<li><a href="http://www.chordbook.com/guitarscales.php">Guitar Scales</a> &amp; <a href="http://www.guitarists.net/scales/">More Scales</a></li>
<li><a href="http://www.chordbook.com/guitarchords.php">Guitar chords</a> &amp; <a href="http://www.jguitar.com/chordsearch?chordsearch=E&amp;jguitarbtn=Go">More Chords</a></li>
<li><a href="http://www.zentao.com/guitar/theory/notes.html">All about the fret board</a></li>
</ul>
<p>And just to humble everyone out there &#8211; remember kids &#8211; John Mayer plays better than you with only one hand.<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/mXpkQPTfYuQ&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/mXpkQPTfYuQ&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/music/online-guitar-resources/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to Magento via XML-RPC</title>
		<link>http://www.webhank.com/web-development/connecting-to-magento-via-xml-rpc</link>
		<comments>http://www.webhank.com/web-development/connecting-to-magento-via-xml-rpc#comments</comments>
		<pubDate>Thu, 12 Feb 2009 20:42:59 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=194</guid>
		<description><![CDATA[I have been trying off and on for about a week to get a connection made to Magento&#8217;s API via a PHP script. Magento gives the following code snippet on their site, but I could not get it to work &#8211; souring the message boards didn&#8217;t really help either.  I am not sure if something [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying off and on for about a week to get a connection made to <a href="http://www.magentocommerce.com/support/magento_core_api">Magento&#8217;s API</a> via a PHP script.</p>
<p>Magento gives the following code snippet on their site, but I could not get it to work &#8211; souring the message boards didn&#8217;t really help either.  I am not sure if something was off with my installation instance or what.</p>
<div class="code php" style="font-family: monospace;">
<div class="code_bg">
<ol>
<li class="li1">
<div class="de1"><span class="re0">$client</span> = <span class="kw2">new</span> Zend_XmlRpc_Client<span class="br0">(</span><span class="st0">&#8216;http://youmagentohost/api/xmlrpc/&#8217;</span><span class="br0">)</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// If somestuff requires api authentification,</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// we should get session token</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$session</span> = <span class="re0">$client</span>-&gt;<span class="me1">call</span><span class="br0">(</span><span class="st0">&#8216;login&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="st0">&#8216;apiUser&#8217;</span>, <span class="st0">&#8216;apiKey&#8217;</span><span class="br0">)</span><span class="br0">)</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$client</span>-&gt;<span class="me1">call</span><span class="br0">(</span><span class="st0">&#8216;call&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="re0">$session</span>, <span class="st0">&#8216;somestuff.method&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="st0">&#8216;arg1&#8242;</span>, <span class="st0">&#8216;arg2&#8242;</span>, <span class="st0">&#8216;arg3&#8242;</span><span class="br0">)</span><span class="br0">)</span><span class="br0">)</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$client</span>-&gt;<span class="me1">call</span><span class="br0">(</span><span class="st0">&#8216;call&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="re0">$session</span>, <span class="st0">&#8216;somestuff.method&#8217;</span>, <span class="st0">&#8216;arg1&#8242;</span><span class="br0">)</span><span class="br0">)</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$client</span>-&gt;<span class="me1">call</span><span class="br0">(</span><span class="st0">&#8216;call&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="re0">$session</span>, <span class="st0">&#8216;somestuff.method&#8217;</span><span class="br0">)</span><span class="br0">)</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$client</span>-&gt;<span class="me1">call</span><span class="br0">(</span><span class="st0">&#8216;multiCall&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="re0">$session</span>,</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">array</span><span class="br0">(</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">array</span><span class="br0">(</span><span class="st0">&#8216;somestuff.method&#8217;</span>, <span class="st0">&#8216;arg1&#8242;</span><span class="br0">)</span>,</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">array</span><span class="br0">(</span><span class="st0">&#8216;somestuff.method&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="st0">&#8216;arg1&#8242;</span>, <span class="st0">&#8216;arg2&#8242;</span><span class="br0">)</span><span class="br0">)</span>,</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">array</span><span class="br0">(</span><span class="st0">&#8216;somestuff.method&#8217;</span><span class="br0">)</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">)</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">)</span><span class="br0">)</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// If you don&#8217;t need the session anymore</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$client</span>-&gt;<span class="me1">call</span><span class="br0">(</span><span class="st0">&#8216;endSession&#8217;</span>, <span class="kw3">array</span><span class="br0">(</span><span class="re0">$session</span><span class="br0">)</span><span class="br0">)</span>;</div>
</li>
</ol>
</div>
</div>
<p>After a bunch of trial and error &#8211; scouring the web etc &#8211; i was finally able to make a connection with the following script</p>
<pre>&lt;?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
define("XMLRPC_DEBUG", 1);

require_once('../app/Mage.php');
$client = new Zend_XmlRpc_Client('http://www.domain.com/api/xmlrpc');

// If somestuff requires api authentification, we should get session token
$session = $client-&gt;call('login', array('user', 'key'));

echo "&lt;pre&gt;";
print_r($session);
echo "&lt;/pre&gt;";

// If you don't need the session anymore
$client-&gt;call('endSession', array($session));
?&gt;</pre>
<p>one strange thing to note is the path to the API &#8211; with a trailing slash, i could not get this to work&#8230;&#8217;</p>
<p>I hope that this helps someone else out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/web-development/connecting-to-magento-via-xml-rpc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sys Admin Stuff</title>
		<link>http://www.webhank.com/various-ramblings/sys-admin-stuff</link>
		<comments>http://www.webhank.com/various-ramblings/sys-admin-stuff#comments</comments>
		<pubDate>Wed, 28 Jan 2009 21:05:43 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/uncategorized/sys-admin-stuff</guid>
		<description><![CDATA[things i&#8217;ve used recently: tar -zxvf file.tar.gz mysql -u username -p password database_name &#60; filename.sql http://kb.mediatemple.net/questions/129/How+can+I+Backup+and+Restore+a+MySQL+database%3F]]></description>
			<content:encoded><![CDATA[<p>things i&#8217;ve used recently: tar -zxvf file.tar.gz</p>
<p>mysql -u username -p password database_name &lt; filename.sql</p>
<p>http://kb.mediatemple.net/questions/129/How+can+I+Backup+and+Restore+a+MySQL+database%3F</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/various-ramblings/sys-admin-stuff/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media Temple Notes</title>
		<link>http://www.webhank.com/various-ramblings/media-temple-notes</link>
		<comments>http://www.webhank.com/various-ramblings/media-temple-notes#comments</comments>
		<pubDate>Wed, 28 Jan 2009 05:45:03 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=175</guid>
		<description><![CDATA[You&#8217;ve configured open_basedir correctly to allow access to /usr/share/pear but to call the file correctly you can either call DB.php using the absolute path /usr/share/pear/DB.php or if you want to just use DB.php you will also need to modify include_path to use /usr/share/pear You can just include, include_path to the vhost where you added open_basedir. [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve configured open_basedir correctly to allow access to /usr/share/pear but to call the file correctly you can either call DB.php using the absolute path</p>
<p>/usr/share/pear/DB.php</p>
<p>or if you want to just use DB.php you will also need to modify include_path to use</p>
<p>/usr/share/pear</p>
<p>You can just include, include_path to the vhost where you added open_basedir. Something like</p>
<p>php_admin_value include_path &#8220;/usr/share/pear&#8221;</p>
<p>then run</p>
<p>/usr/local/psa/admin/sbin/websrvmng &#8211;reconfigure-vhost &#8211;vhost-name=domain.com<br />
Here are step by step instructions, on how to add an include path for your (dv) Dedicated Virtual 3.5 Extreme.</p>
<p>http://kb.mediatemple.net/questions/514/(dv)+HOWTO%3A+Enable+PEAR%7B47%7DSet+open_basedir+and+include_path.</p>
<p>Also, you may need to modify your php.ini file.</p>
<p>Configuring the php.ini file on a DV requires the following.</p>
<p>1. Access to an SSH client.<br />
(http://kb.mediatemple.net/article.php?id=016)<br />
2. Basic knowledge of SSH commands<br />
(http://kb.mediatemple.net/article.php?id=247)<br />
3. And the root password.  Root access can easily be enabled using our Root Access and Developer Tools function in the Admin Section of the AccountCenter.</p>
<p>The most common parameters changed in the php.ini file are:</p>
<p>safe_mode<br />
register_globals<br />
max_upload_filesize<br />
post_max_size<br />
max_execution_time</p>
<p>Use the following command at the command prompt to start editing:</p>
<p>vi /etc/php.ini</p>
<p>If you are looking for a specific parameter and would like to go<br />
straight there, type the following:</p>
<p>vi +/parameter /etc/php.ini</p>
<p>example: vi +/safe_mode /etc/php.ini</p>
<p>For more information on using the vi command, review kb article</p>
<p>http://kb.mediatemple.net/article.php?id=247</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/various-ramblings/media-temple-notes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacBook Pro Hard Drive Replacement</title>
		<link>http://www.webhank.com/mac/macbook-pro-hard-drive-replacement</link>
		<comments>http://www.webhank.com/mac/macbook-pro-hard-drive-replacement#comments</comments>
		<pubDate>Wed, 17 Sep 2008 21:39:46 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Mac/Apple]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=102</guid>
		<description><![CDATA[So I accidentally let a TV fall on my MacBook Pro last night &#8211; and not a light, modern, flat-panel TV, but a heavy ass old-school CRT TV.  When I tried to boot it after gravity played her evil trick on me, all i got was a flashing folder icon with a question mark in [...]]]></description>
			<content:encoded><![CDATA[<div class="MultiBoxHelp" id="MultiBoxHelp"><a href="http://www.rutschmann.biz" title="powered by WordPress Multibox Plugin v1.3.5" target="_blank"><img src="http://www.webhank.com/wp-content/plugins/wordpress-multibox-plugin/images/help.png" alt="powered by WordPress Multibox Plugin v1.3.5" title="powered by WordPress Multibox Plugin v1.3.5" /></a></div>
<p><a href="http://www.webhank.com/wp-content/uploads/img_0092.jpg"  class="wmp" id="wmp2"><img src="http://www.webhank.com/wp-content/uploads/img_0092-150x150.jpg" alt="img 0092 150x150 MacBook Pro Hard Drive Replacement" title="img_0092" width="150" height="150" class="alignleft size-thumbnail wp-image-106" /></a>So I accidentally let a TV fall on my MacBook Pro last night &#8211; and not a light, modern, flat-panel TV, but a heavy ass old-school CRT TV.  When I tried to boot it after gravity played her evil trick on me, all i got was a flashing folder icon with a question mark in it.  I tried some tricks to get the machine to recognize the hard drive, all to no avail.  I could hear the drive clicking but not spinning, and the TV did fall on the portion of the laptop where the hard drive lies, so I decided to try my hand at replacing the hard drive.  A trip to Best Buy and I had a 320GB hard drive in hand and a quick viewing of this video&#8230;and things seem to be on track.  Ignore the awful music selection.  If you&#8217;re crunched for time, watch this video instead&#8230;<a href="http://www.youtube.com/watch?v=rhNPchwhQoc&#038;NR=1">http://www.youtube.com/watch?v=rhNPchwhQoc&#038;NR=1</a></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/I_bgDRRN0_w&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/I_bgDRRN0_w&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Tomorrow I will try and re-install the OS, but the computer recognized the drive and allowed me to partition it, so I am not overly concerned.  I anticipate that the re-install will go fairly smoothly &#8211; but I will post updates.  This new drive will give me 200GB more space so maybe once this is all over with it will end up being a good thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/mac/macbook-pro-hard-drive-replacement/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Root ID from embeded pages</title>
		<link>http://www.webhank.com/web-development/getting-root-id-from-embeded-pages</link>
		<comments>http://www.webhank.com/web-development/getting-root-id-from-embeded-pages#comments</comments>
		<pubDate>Thu, 17 Apr 2008 17:20:47 +0000</pubDate>
		<dc:creator>webhank</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[example code]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webhank.com/?p=64</guid>
		<description><![CDATA[For quite a while now I have been using the following script to show sub navigation on WordPress Sidebars. It utilizes the built in wp_list_pages function to show parent and child relationships on a sidebar (or where ever you choose to use it for that matter). &#60;?php if($post-&#62;post_parent) $children = wp_list_pages("title_li=&#38;child_of=".$post-&#62;post_parent."&#38;echo=0"); else $children = wp_list_pages("title_li=&#38;child_of=".$post-&#62;ID."&#38;echo=0"); [...]]]></description>
			<content:encoded><![CDATA[<pre>
<pre>
<pre>
<div class="MultiBoxHelp" id="MultiBoxHelp"><a href="http://www.rutschmann.biz" title="powered by WordPress Multibox Plugin v1.3.5" target="_blank"><img src="http://www.webhank.com/wp-content/plugins/wordpress-multibox-plugin/images/help.png" alt="powered by WordPress Multibox Plugin v1.3.5" title="powered by WordPress Multibox Plugin v1.3.5" /></a></div>

<a href="http://www.webhank.com/wp-content/uploads/wordpressicon-hanttula2.gif"  class="wmp" id="wmp4"><img class="alignright size-full wp-image-61" style="float: right;" title="wordpressicon-hanttula2" src="http://www.webhank.com/wp-content/uploads/wordpressicon-hanttula2.gif" alt="wordpressicon hanttula2 Getting Root ID from embeded pages" width="80" height="80" /></a></pre>
</pre>
</pre>
<p>For quite a while now I have been using the following script to show sub navigation on <a title="Customizing Your WordPress Sidebar" href="http://codex.wordpress.org/Customizing_Your_Sidebar" target="_blank">WordPress Sidebars</a>.  It utilizes the built in <a title="Wp List Pages link to codex" href="http://codex.wordpress.org/Template_Tags/wp_list_pages" target="_blank">wp_list_pages</a> function to show parent and child relationships on a sidebar (or where ever you choose to use it for that matter).</p>
<p><tt> </tt>&lt;?php</p>
<pre><tt>if($post-&gt;post_parent)
$children = wp_list_pages("title_li=&amp;child_of=".$post-&gt;post_parent."&amp;echo=0");
else $children = wp_list_pages("title_li=&amp;child_of=".$post-&gt;ID."&amp;echo=0");</tt> <tt>if ($children) { ?&gt;</tt> <tt> &lt;ul&gt; &lt;?php echo $children; ?&gt; &lt;/ul&gt; &lt;?php } ?&gt;</tt></pre>
<p>I like that it is simple, and that it can be re-written to show items only if they are child pages of a specific parent, ie:</p>
<pre>&lt;?php
// find out what the top level page is

global $post;
if($post-&gt;post_parent) $parentPG = $post-&gt;post_parent; // page is a child
else $parentPG = $post-&gt;ID; // page has children
?&gt;

&lt;?php

// marketing

if($parentPG==7){

// show items if the parent id is 7
}elseif($parentPG==8){
// show items if the parent id is 8
}
?&gt;</pre>
<p>This works great when you only need to make it work with parent and child pages.  Recently, however, I had the need to utilize this type of functionality on a project that required pages 3 levels deep (grandchildren?).  After a bit of Googling, and searching through the <a title="Link to the WordPress Codex" href="http://codex.wordpress.org/Main_Page" target="_blank">WordPress Codex</a> I realized that I was going to have to &#8220;roll my own&#8221; on this one.  So here you go &#8211; there are probably better ways of doing this.  If you know of one please let me know, but maybe this will help someone else searching for &#8220;wordpress list grandchildren&#8221;</p>
<pre>&lt;?php
// find out what the top level page is
global $post;
if($post-&gt;post_parent){
$parentPG = $post-&gt;post_parent; // page is a child

// check for grand children
$sql = "SELECT * FROM `".$wpdb-&gt;prefix."posts` WHERE ID=$parentPG";
$data = $wpdb-&gt;get_results($sql,ARRAY_A);

if(!empty($data[0][post_parent])) $parentPG=$data[0][post_parent];
}
else $parentPG = $post-&gt;ID; // page has children
?&gt;

&lt;?php

// marketing
if($parentPG==7){
// show stuff for parent 7
}elseif($parentPG==8){
// show stuff for parent 8
}
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webhank.com/web-development/getting-root-id-from-embeded-pages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
