<?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>wp-SwimTeam &#187; cURL</title>
	<atom:link href="http://www.wp-swimteam.org/tag/curl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wp-swimteam.org</link>
	<description>A WordPress plugin for swim team management</description>
	<lastBuildDate>Wed, 01 Sep 2010 20:43:54 +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>Another goofy e-mail from GoDaddy</title>
		<link>http://www.wp-swimteam.org/2008/08/19/another-goofy-e-mail-from-godaddy/</link>
		<comments>http://www.wp-swimteam.org/2008/08/19/another-goofy-e-mail-from-godaddy/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 04:24:17 +0000</pubDate>
		<dc:creator>Mike Walsh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[fsockopen]]></category>
		<category><![CDATA[GoDaddy]]></category>

		<guid isPermaLink="false">http://wp-swimteam.sourceforge.net/?p=104</guid>
		<description><![CDATA[I had another go-round with GoDaddy yesterday which resulted in another goofy e-mail.  I posted the fsockopen() example they had asked me to which timed out and GoDaddy responded with this: Dear Mike, I sincerely apologize for any confusion or frustration. You will need to specify the proxy in your coding. Applications that need to [...]]]></description>
			<content:encoded><![CDATA[<p>I had another go-round with GoDaddy yesterday which resulted in another goofy e-mail.  I posted the fsockopen() example they had asked me to which timed out and GoDaddy responded with this:</p>
<blockquote><p>Dear Mike,</p>
<p>I sincerely apologize for any confusion or frustration. You will need to specify the proxy in your coding. Applications that need to make outbound connections (port 443) will need to be made &#8220;proxy aware&#8221;. This will require additional coding to varying degrees, depending on the application. You will need to know the ip address and port of the proxy server in order to correctly modify your code. The ip of the proxy server is 64.202.165.130 and connections will be made on port 3128.</p>
<p>You will need to use this when coding with PHP:<br />
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);<br />
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);<br />
curl_setopt ($ch, CURLOPT_PROXY, <a href="http://64.202.165.130:3128/">http://64.202.165.130:3128</a>);<br />
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);</p>
<p>I hope this information helps.</p>
<p>Please let us know if we can assist you in any other way.</p>
<p>Sincerely,<br />
Lindsay C.<br />
Online Support Representative</p></blockquote>
<p>Right back to the cURL requirements which really don&#8217;t make any sense for fsockopen().  It really doesn&#8217;t matter as I chnaged the code which manages the Google Maps so it no longer needs it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wp-swimteam.org/2008/08/19/another-goofy-e-mail-from-godaddy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More on Phoogle &amp; Google Maps</title>
		<link>http://www.wp-swimteam.org/2008/08/15/more-on-phoogle-google-maps/</link>
		<comments>http://www.wp-swimteam.org/2008/08/15/more-on-phoogle-google-maps/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 16:16:46 +0000</pubDate>
		<dc:creator>Mike Walsh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[fsockopen]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[Snoopy]]></category>

		<guid isPermaLink="false">http://wp-swimteam.sourceforge.net/?p=95</guid>
		<description><![CDATA[The members of the WordPress Hackers mailing list are really helpful and usually a very clever bunch.  I posted my dilema last night and received a couple suggestions, one of which was to abandon cURL and use Snoopy because it is embedded with WordPress and therefore would always be avaialble. Sounds like a good idea [...]]]></description>
			<content:encoded><![CDATA[<p>The members of the <a title="WordPress Hackers" href="http://lists.automattic.com/mailman/listinfo/wp-hackers">WordPress Hackers</a> mailing list are really helpful and usually a very clever bunch.  I posted my dilema last night and received a couple suggestions, one of which was to abandon cURL and use <a href="http://snoopy.sourceforge.net">Snoopy</a> because it is embedded with WordPress and therefore would always be avaialble.</p>
<p>Sounds like a good idea so I check it out.  While I don&#8217;t care for the way the class is implemented (direct access to class variables), it if works, I don&#8217;t really care.  So I set it up and sure enough, it works in my development area.  Off the production server and nope, it doesn&#8217;t work either.  Snoopy depends on <a href="http://us2.php.net/fsockopen">fsockopen</a> which <a href="http://help.godaddy.com/article/287">GoDaddy says is supported on all PHP hosting plans</a> but it times out so I am guess what they have stated in their help system isn&#8217;t true.</p>
<p>Now I am not sure what to do other than to pursue a Javascript solution.  GoDaddy is quickly going on my &#8220;less than happy with&#8221; list.  I wonder if a Linux server would be any easier?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wp-swimteam.org/2008/08/15/more-on-phoogle-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demo Site is running &#8230; sort of</title>
		<link>http://www.wp-swimteam.org/2008/08/15/demo-site-is-running-sort-of/</link>
		<comments>http://www.wp-swimteam.org/2008/08/15/demo-site-is-running-sort-of/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 11:55:05 +0000</pubDate>
		<dc:creator>Mike Walsh</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Phoogle]]></category>

		<guid isPermaLink="false">http://wp-swimteam.sourceforge.net/?p=90</guid>
		<description><![CDATA[The nice folks at WinSwim are interested in what I am doing with this plugin and have offered to host a demo site.  You can find it at:  http://wp.winswim.com  The demo site is running for the most part, if you are interested in trying it out, go ahead and register with the demo site then [...]]]></description>
			<content:encoded><![CDATA[<p>The nice folks at <a title="WinSwim" href="http://www.winswim.com">WinSwim</a> are interested in what I am doing with this plugin and have offered to host a demo site.  You can find it at:  <a href="http://wp.winswim.com">http://wp.winswim.com</a>  The demo site is running for the most part, if you are interested in trying it out, go ahead and register with the demo site then drop me an e-mail so I can change your permissions so you can actually do something other than register sample swimmers.</p>
<p>I say the demo site is running &#8220;sort of&#8221; because just about everything is working although there are a few bugs I know of (e.g. defining age groups).  The one thing which isn&#8217;t working and it is driving me nuts is the ability to display a Google Map.  This is a really nice feature that my own team used quite a bit this year.</p>
<p>I have encapsulated a class called <a title="Phoogle" href="http://www.systemsevendesigns.com/phoogle">Phoogle</a> within wp-SwimTeam and it worked just fine in my development area and on the <a title="MacDolphins" href="http://www.macdolphins.org">MacDolphins</a> site.  Phoogle relies on a PHP configuration option known as <a href="http://us.php.net/manual/en/filesystem.configuration.php">allow_url_fopen</a> which basically allows PHP to open a web page on an external site and read the content like it would a local file.  It&#8217;s a nice feature but one that a lot of web hosting providers turn off.  In fact, the host for the demo site has it turned off.</p>
<p>There is another technology called cURL which for all practical purposes, accomplishes what allow_url_fopen does although it is a little more involved.  I enhanced Phoogle to use cURL if allow_url_fopen is disabled and it worked just fine in my development area.  Great!  The change was pretty simple too.  Uploaded to the production server and nothing.  It doesn&#8217;t work there.  It turns out that <a title="GoDaddy" href="http://www.godaddy.com">GoDaddy</a> (the web hosting provider) has a <a href="http://help.godaddy.com/article/289">goofy cURL implementation</a> which requires the use of a proxy.</p>
<p>After a much trial and error and a couple e-mails with GoDaddy support, all I have accomplished is a partial cURL request.  I am unable to get a complete response which prevents the map from being displayed.  I then got another e-mail from GoDaddy telling me that cURL is only supported on their Linux hosting environments not under Windows (even though it is enabled in PHP.ini).  Bleh.  ;-(</p>
<p>I think for now when I find a short code, I will check the allow_url_fopen setting and if it is off, will issue a warning during the short code processing.  There is probably a way to interact with the <a title="Google Maps API" href="http://code.google.com/apis/maps/">Google Maps API</a> via Javascript, I guess I will need to look into that.  It is really too bad, the Phoogle solution was really simple to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wp-swimteam.org/2008/08/15/demo-site-is-running-sort-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
