<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Come get your GEEK on!</title>
	<atom:link href="http://macfoo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://macfoo.wordpress.com</link>
	<description>Programming &#38; life in general</description>
	<lastBuildDate>Fri, 06 Nov 2009 13:09:43 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='macfoo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/24b3673b9b0b63949e5b11862b5eaedf?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Come get your GEEK on!</title>
		<link>http://macfoo.wordpress.com</link>
	</image>
			<item>
		<title>Remove all the items in a drop down list except the first using Jquery</title>
		<link>http://macfoo.wordpress.com/2009/11/06/remove-all-the-items-in-a-drop-down-list-except-the-first-using-jquery/</link>
		<comments>http://macfoo.wordpress.com/2009/11/06/remove-all-the-items-in-a-drop-down-list-except-the-first-using-jquery/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 13:09:43 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=91</guid>
		<description><![CDATA[I needed a drop down list to be populated from a selection in another drop down list. Each select should change the options listed in the second list. Using Jquery it was easy to remove all the options and rebuild the list, but I wanted to keep the first option. I finally found the solution [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=91&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I needed a drop down list to be populated from a selection in another drop down list. Each select should change the options listed in the second list. Using Jquery it was easy to remove all the options and rebuild the list, but I wanted to keep the first option. I finally found the solution searching the Jquery site and it&#8217;s quite simple.<br />
<code><br />
selection.children('option:not(:first)').remove();<br />
</code><br />
Where selection is the id of the drop down list. I hope this helps somebody not spend the hour it took me to figure it out.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=91&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/11/06/remove-all-the-items-in-a-drop-down-list-except-the-first-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide borders for an input box</title>
		<link>http://macfoo.wordpress.com/2009/11/06/hide-borders-for-an-input-box/</link>
		<comments>http://macfoo.wordpress.com/2009/11/06/hide-borders-for-an-input-box/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 12:53:02 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=83</guid>
		<description><![CDATA[I wanted to have a form with read only input boxes that were populated by Ajax calls. The problem is there was a border around the box in IE7 and FF 3.5. In IE6 border=0 solved the issue but not in the other browsers. Thanks to this site for the inspiration I was able to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=83&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wanted to have a form with read only input boxes that were populated by Ajax calls. The problem is there was a border around the box in IE7 and FF 3.5. In IE6 border=0 solved the issue but not in the other browsers. Thanks to this <a href="http://www.jankoatwarpspeed.com/post/2008/07/27/Enhance-your-input-fields-with-simple-CSS-tricks.aspx">site</a> for the inspiration I was able to remove the borders using the this css style:</p>
<pre class="brush: css;">
.hiddenlabel[type=&quot;text&quot;] {
border:none;
display:inline;
vertical-align:middle;
}
</pre>
<p>The key is the [type="text"], this applies the style to the input box. Just in case your wondering why I need to do this it is because I need the information in the form to be submitted and need to update the information using Ajax. This was easier than using hidden fields.</p>
<p>&nbsp;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=83&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/11/06/hide-borders-for-an-input-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Snow Leopard Install</title>
		<link>http://macfoo.wordpress.com/2009/09/13/snow-leopard-install/</link>
		<comments>http://macfoo.wordpress.com/2009/09/13/snow-leopard-install/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 15:34:55 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=80</guid>
		<description><![CDATA[I updated my MacBook Pro to Apple&#8217;s latest operating system Snow Leopard 10.6. This is how I did it and my install went fine.
First, check to make sure any programs that you need are compatible or have been updated to work with 10.6. The best place I have found was this wiki http://snowleopard.wikidot.com/. I had [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=80&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I updated my MacBook Pro to Apple&#8217;s latest operating system Snow Leopard 10.6. This is how I did it and my install went fine.<br />
First, check to make sure any programs that you need are compatible or have been updated to work with 10.6. The best place I have found was this wiki <a href="http://snowleopard.wikidot.com/">http://snowleopard.wikidot.com/</a>. I had some software that was not compatible but for me, but the software was not that big of a deal and I could wait for updates.<br />
The next thing I did was run a full maintenance on my computer using <a href="http://www.titanium.free.fr/pgs2/english/maintenance.html">Maintenance</a>. This clean a lot of stuff out and repaired any permissions.<br />
After that I just rebooted to the install disk and followed the onscreen instructions. Everything was fine. I got back about 6GB of space.<br />
I did have to uninstall the software for my HP AIO 2570 printer and add it using the Printers &amp; Faxes, but everything works including scanning. Scanning directly from Preview is nice.<br />
Well that&#8217;s how I did it and it worked for me.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=80&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/09/13/snow-leopard-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Save an email attachment using Zend Mail</title>
		<link>http://macfoo.wordpress.com/2009/06/10/save-an-email-attachment-using-zend-mail/</link>
		<comments>http://macfoo.wordpress.com/2009/06/10/save-an-email-attachment-using-zend-mail/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 22:07:06 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=60</guid>
		<description><![CDATA[To do some automated billing I needed to grab an email attachment off the exchange server. The Zend framework made it very easy to connect to the mail server and navigate files, and that part of the code came directly from the Zend Framework documentation. The issue that took the longest was saving the attachment. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=60&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To do some automated billing I needed to grab an email attachment off the exchange server. The Zend framework made it very easy to connect to the mail server and navigate files, and that part of the code came directly from the Zend Framework documentation. The issue that took the longest was saving the attachment. I could not figure out how to decode the attachment using the Zend framework. Let me know if you have a better way or if it helps you out.<br />
NOTE: If you getting the mail from the INBOX you do not have to use the getFolders() function.</p>
<pre class="brush: php;">
// Connecting with Imap
$mail = new Zend_Mail_Storage_Imap(
        array('host'     =&gt; 'SERVER',
              'user'     =&gt; 'USERNAME',
              'password' =&gt; 'PASSWORD'));

// Navigate to desired folder
$folder = $mail-&gt;getFolders()-&gt;INBOX-&gt;Info;

// Change to folder
$mail-&gt;selectFolder($folder);

// Loop through messages
foreach ($mail as $message)
{
 // Find desired message subject
 if($message-&gt;subject == 'SUBJECT')
 {
 // Check for attachment
 if($message-&gt;isMultipart())
 {
    $part = $message-&gt;getPart(2);
 }

 // Get the attacment file name
 $fileName = $part-&gt;getHeader('content-description');

 // Get the attachement and decode
 $attachment = base64_decode($part-&gt;getContent());

 // Save the attachment
 $fh = fopen($fileName, 'w');

 fwrite($fh, $attachment);

 fclose($fh);
 }
}
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=60&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/06/10/save-an-email-attachment-using-zend-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting the root node from an XML string</title>
		<link>http://macfoo.wordpress.com/2009/06/03/getting-the-root-node-from-an-xml-string/</link>
		<comments>http://macfoo.wordpress.com/2009/06/03/getting-the-root-node-from-an-xml-string/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 17:33:32 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=56</guid>
		<description><![CDATA[PHPs SimpleXML is great for parsing xml files. The downside is that it does not return the root node name. I wrote this function that gets the name.


/**
 * function getXMLRootNode
 * @param string An xml string
 * @return string Return XML root node name
 */

function getXMLRootNode($xmlstr)
{
 // Create DOM model
 $doc = new DOMDocument();

 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=56&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>PHPs SimpleXML is great for parsing xml files. The downside is that it does not return the root node name. I wrote this function that gets the name.</p>
<pre class="brush: php;">

/**
 * function getXMLRootNode
 * @param string An xml string
 * @return string Return XML root node name
 */

function getXMLRootNode($xmlstr)
{
 // Create DOM model
 $doc = new DOMDocument();

 // Load the XML string
 if(!$doc-&gt;loadXML($xmlstr))
 {
 throw new Exception('Unable to parse XML string');
 }

 // Find the root tag name
 $root = $doc-&gt;documentElement;

 if(!isset($root))
 {
 throw new Exception('Unable to find XML root node');
 }

 if(!isset($root-&gt;nodeName))
 {
 throw new Exception('Unable to find XML root node name');
 }

 return $root-&gt;nodeName;
}
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=56&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/06/03/getting-the-root-node-from-an-xml-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>New autoloading with Zend Framework 1.8</title>
		<link>http://macfoo.wordpress.com/2009/05/15/new-autoloading-with-zend-framework-1-8/</link>
		<comments>http://macfoo.wordpress.com/2009/05/15/new-autoloading-with-zend-framework-1-8/#comments</comments>
		<pubDate>Fri, 15 May 2009 16:42:06 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=47</guid>
		<description><![CDATA[I love the fact that you can autoload classes using the ZF. I was a little shocked at the depreciation errors when I updated to ZF 1.8. Apparently, there is a new way to use the autoload class. It took a little reading but I came up with this solution. Let me know what you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=47&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I love the fact that you can autoload classes using the ZF. I was a little shocked at the depreciation errors when I updated to ZF 1.8. Apparently, there is a new way to use the autoload class. It took a little reading but I came up with this solution. Let me know what you think!</p>
<pre class="brush: php;">
/*
 * Set up Zend loader
 */
require_once 'Zend/Loader/Autoloader.php';

$autoloader = Zend_Loader_Autoloader::getInstance();

/*
 * Register Cisc Classes
 */
$autoloader-&gt;registerNamespace('Cisc_');
</pre>
<p>The registerNamespace function registers my own classes.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=47&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/05/15/new-autoloading-with-zend-framework-1-8/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a Soap Server using the Zend Framework</title>
		<link>http://macfoo.wordpress.com/2009/05/15/creating-a-soap-server-using-the-zend-framework/</link>
		<comments>http://macfoo.wordpress.com/2009/05/15/creating-a-soap-server-using-the-zend-framework/#comments</comments>
		<pubDate>Fri, 15 May 2009 13:06:56 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=35</guid>
		<description><![CDATA[I decide to try my hand at creating a soap server using the Zend Framework. This was an exersice in getting me more familiar with ZF and web services. Hopefully this will help others. I think the code is pretty self explanitory but feel free to ask questions or provide comments.
Basically the WSDL is auto [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=35&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I decide to try my hand at creating a soap server using the Zend Framework. This was an exersice in getting me more familiar with ZF and web services. Hopefully this will help others. I think the code is pretty self explanitory but feel free to ask questions or provide comments.</p>
<p>Basically the WSDL is auto generated by php if the URL ends in ?wsdl, if not then the soap server is created and the request handled.</p>
<pre class="brush: php;">

/*
* Check to see if soap call is to be handled
* or if the WSDL should be displayed
*/
if(isset($_GET['wsdl']))
{
    createWSDL();
}
else
{
   /*
    * Soap Server WSDL document
    */
    $wsdl = 'http://' . $_SERVER[&quot;SERVER_NAME&quot;] .
    $_SERVER['PHP_SELF'] . '?wsdl';

   /*
    * Create a new soap server
    */
    $server = new Zend_Soap_Server($wsdl,
        array('soap_version' =&gt; SOAP_1_2)
    );

   /*
    * Set the server to cache the wsdl file
    */
    $server-&gt;setWsdlCache(1);

   /*
    * Set the class for the web service
    */
    $server-&gt;setClass('Cisc_Ws_Cs3webservice');

   /*
    * Set soap server persistance (For use with login feature)
    */
    $server-&gt;setPersistence(SOAP_PERSISTENCE_SESSION);

   /*
    * Register exceptions
    */
    $server-&gt;registerFaultException('Exception');
   /*
    * Handle the soap call
    */
    $server-&gt;handle();
}

/**
* Create the WSDL file for display
*
* @param none
* @return string The wsdl xml
*/
function createWSDL()
{
    $wsdl = new Zend_Soap_AutoDiscover();

    $wsdl-&gt;setClass('Cisc_Ws_Cs3webservice');

    $wsdl-&gt;handle();
}
</pre>
<p>The WSDL is created from the class file, so make sure you use proper documentation blocks for you code. The only issue I have seen so far is that if a function input in the class is a integer,<br />
no matter what is inputted, an integer will be pass to the function. This makes it difficult to verify data, say that your getting an integer and not a float. The workaround is to pass an array<br />
and check the values of the array.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=35&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/05/15/creating-a-soap-server-using-the-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Events created in iPod Touch do not appear in iCal after syncing</title>
		<link>http://macfoo.wordpress.com/2009/03/10/events-created-in-ipod-touch-do-not-appear-in-ical-after-syncing/</link>
		<comments>http://macfoo.wordpress.com/2009/03/10/events-created-in-ipod-touch-do-not-appear-in-ical-after-syncing/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 11:55:17 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=33</guid>
		<description><![CDATA[I had the problem of when I added new events on my iPod Touch they would not show up in iCal after syncing. The quick fix for me was to open iSync, go to Preferences, then click the Reset Sync History&#8230; button. This resolved the issue for me. Hope this helps somebody else.
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=33&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I had the problem of when I added new events on my iPod Touch they would not show up in iCal after syncing. The quick fix for me was to open iSync, go to Preferences, then click the Reset Sync History&#8230; button. This resolved the issue for me. Hope this helps somebody else.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=33&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/03/10/events-created-in-ipod-touch-do-not-appear-in-ical-after-syncing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Zend Server Community Edition Install</title>
		<link>http://macfoo.wordpress.com/2009/03/04/zend-server-community-edition-install/</link>
		<comments>http://macfoo.wordpress.com/2009/03/04/zend-server-community-edition-install/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 13:52:11 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=31</guid>
		<description><![CDATA[So  I decided I would try out Zend Server CE. I have tried the installation on a server running Windows 2003 and XP Professional with PHP already installed using ISAPI. The install goes fine, but when I try to access the web page I get an FastCGI Access Denied error.
I have tried everything I can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=31&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So  I decided I would try out<a title="Zend Server CE Webstie" href="http://www.zend.com/en/community/zend-server-ce" target="_blank"> Zend Server CE</a>. I have tried the installation on a server running Windows 2003 and XP Professional with PHP already installed using ISAPI. The install goes fine, but when I try to access the web page I get an FastCGI Access Denied error.</p>
<p>I have tried everything I can think of, including the suggestions on the web for changing permissions on several directories, but I still cannot resolve this issue. I am going to try and get it working but if anybody has any suggestions please let me know.</p>
<p>UPDATE: I was finally able to get Zend Sever installed. I had to remove IIS using add/remove programs, re-install it, then install Zend Server. I like it a lot.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=31&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2009/03/04/zend-server-community-edition-install/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
		<item>
		<title>Cross Domain Ajax</title>
		<link>http://macfoo.wordpress.com/2008/09/29/cross-domain-ajax/</link>
		<comments>http://macfoo.wordpress.com/2008/09/29/cross-domain-ajax/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 15:01:24 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://macfoo.wordpress.com/?p=28</guid>
		<description><![CDATA[I found a nice simple way to do cross domain ajax calls reliably. I found this Yahoo page that gives a nice little tutorial on how to use php and curl to access other domains using a simple proxy. Simple and effective. The code that I tweeked for my own use is found here. Let [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=28&subd=macfoo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I found a nice simple way to do cross domain ajax calls reliably. I found this <a title="Yahoo Proxy How To" href="http://developer.yahoo.com/javascript/howto-proxy.html" target="_blank">Yahoo page</a> that gives a nice little tutorial on how to use php and curl to access other domains using a simple proxy. Simple and effective. The code that I tweeked for my own use is found <a title="PHP Simple Proxy Text" href="http://developer.yahoo.com/javascript/samples/proxy/php_proxy_simple.txt" target="_blank">here</a>. Let me know if you have any comments or suggestions.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/macfoo.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/macfoo.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/macfoo.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/macfoo.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/macfoo.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/macfoo.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/macfoo.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/macfoo.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/macfoo.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/macfoo.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=macfoo.wordpress.com&blog=1037030&post=28&subd=macfoo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://macfoo.wordpress.com/2008/09/29/cross-domain-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561206a843d59fc0482e9dd4e8350ac9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">macfoo</media:title>
		</media:content>
	</item>
	</channel>
</rss>