<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>cfyves.com - PHP</title>
			<link>http://www.cfyves.com/blog/index.cfm</link>
			<description>cfyves.com is the personal website of Yves Arsenault. Yves Arsenault is a father, drummer, ColdFusion programmer, sports fan and someone who may have an opinion.</description>
			<language>en-us</language>
			<pubDate>Thu, 09 Sep 2010 08:14:09 -0300</pubDate>
			<lastBuildDate>Fri, 03 Apr 2009 11:28:00 -0300</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>yves.arsenault@gmail.com</managingEditor>
			<webMaster>yves.arsenault@gmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>yves.arsenault@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			<itunes:image href="" />
			<image>
				<url></url>
				<title>cfyves.com</title>
				<link>http://www.cfyves.com/blog/index.cfm</link>
			</image>
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>My first Magento experience</title>
				<link>http://www.cfyves.com/blog/index.cfm/2009/4/3/My-first-Magento-experience</link>
				<description>
				
				&lt;p&gt;On a fairly recent project I&apos;d been working on a webstore using &lt;a target=&quot;_blank&quot; href=&quot;http://www.magentocommerce.com/&quot;&gt;Magento&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Magento is an open source system using &lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net/&quot;&gt;PHP&lt;/a&gt; and the &lt;a target=&quot;_blank&quot; href=&quot;http://framework.zend.com/&quot;&gt;Zend Framework&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
One thing that we needed in this project was automatic shipping calculation with Canada Post... we found a &lt;a target=&quot;_blank&quot; href=&quot;http://www.magentocommerce.com/extension/525/canada-post-shipping&quot;&gt;module that gave that functionality&lt;/a&gt; and purchased it.&lt;br /&gt;
&lt;br /&gt;
The installation process seemed pretty straight forward, went through the process and the module was then listed in Magento&apos;s configuration.&lt;br /&gt;
&lt;br /&gt;
But the module wasn&apos;t working. The author of the module had written a test script which I&amp;nbsp;began using to test with. &lt;br /&gt;
&lt;br /&gt;
This module needed to use port 30000 to connect with the canada post system.. I contacted my technical support with the hosting provider and concluded that the port was open. I then used telnet and got a valid response (from the server).&lt;br /&gt;
&lt;br /&gt;
I had also used another PHP script to connect with the canada post successfully which used &lt;a target=&quot;_blank&quot; href=&quot;http://ca2.php.net/stream_socket_client&quot;&gt;stream_socket_client()&lt;/a&gt; and had programmed (for my own fun) a small test script in &lt;a target=&quot;_blank&quot; href=&quot;http://www.adobe.com/products/coldfusion/&quot;&gt;ColdFusion&lt;/a&gt;&amp;nbsp;which had successfully connected....&lt;br /&gt;
&lt;br /&gt;
After lot&apos;s of lookin&apos; around, reading forum posts on Magento&apos;s forums, help from a twitter contact and trying a couple of PHP lists I had nothing. I was suspecting that somehow it was the PHP config or the &lt;a target=&quot;_blank&quot; href=&quot;http://ca2.php.net/curl&quot;&gt;curl command&lt;/a&gt;&amp;nbsp;... so I&amp;nbsp;spent time looking that up.&lt;br /&gt;
&lt;br /&gt;
After a bit, I was in contact with the module&apos;s author who suggested a couple of things. One of these things I had sworn I&amp;nbsp;had tried... but must not of... or made the change in code and hadn&apos;t uploaded the file to the server in a tired state of mind....&lt;br /&gt;
&lt;br /&gt;
It was to do with options for the curl command. The original code used was something like this:&lt;/p&gt;
&lt;div style=&quot;border: 1px solid black; background-color: rgb(236, 233, 216);&quot;&gt;// setting the url and port&lt;br /&gt;
$url = &apos;http://sellonline.canadapost.ca:30000&apos;;&lt;br /&gt;
$port = &apos;30000&apos;;&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $url);&lt;br /&gt;
curl_setopt($ch, CURLOPT_PORT, $port);&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
&amp;nbsp;So the suggestion was to add the port directly to the url... and get rid of the curlopt_port... which looked something like this:&lt;/p&gt;
&lt;div style=&quot;border: 1px solid black; background-color: rgb(236, 233, 216);&quot;&gt;// basically this is what is being passed to the URL opt&lt;br /&gt;
$url = &apos;http://sellonline.canadapost.ca:30000&apos;;&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $url);&lt;br /&gt;
// and comment out the port opt&lt;br /&gt;
//curl_setopt($ch, CURLOPT_PORT, $port);&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
By not using curlopt_port and adding the port to the URL.... it worked beautifully.&lt;/p&gt;
&lt;p&gt;I should mention that this was being hosted on CentOS. Not exactly sure why it is that it wouldn&apos;t work... but it worked with the little fix.... and since this little fix there has been NO glitch.&lt;/p&gt;
&lt;p&gt;Works perfectly!&lt;br /&gt;
&lt;br /&gt;
Thanks to the module&apos;s author!&lt;/p&gt;
				
				</description>
						
				
				<category>Technology</category>				
				
				<category>PHP</category>				
				
				<pubDate>Fri, 03 Apr 2009 11:28:00 -0300</pubDate>
				<guid>http://www.cfyves.com/blog/index.cfm/2009/4/3/My-first-Magento-experience</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>What are you working on?</title>
				<link>http://www.cfyves.com/blog/index.cfm/2009/1/16/What-are-you-working-on</link>
				<description>
				
				&lt;p&gt;&amp;nbsp;The last couple of weeks, after the christmas holidays, I went from finishing a bunch of stuff and getting a little bit &amp;quot;slacker&amp;quot; in terms of how much work I have... to now having work lined up for the next little while.&lt;/p&gt;
&lt;p&gt;In the past 2 weeks I&apos;ve had to upgrade software on a couple of servers... PHP, MySQL.. updates... I got to install and learn about &lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net/apc&quot;&gt;APC&lt;/a&gt; for the first time.&lt;/p&gt;
&lt;p&gt;I also got to work with &lt;a target=&quot;_blank&quot; href=&quot;http://www.magentocommerce.com/&quot;&gt;Magento&lt;/a&gt;&amp;nbsp;for the first time. Magento is an Ecommerce platform. Coded in &lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net&quot;&gt;PHP&lt;/a&gt; and using the &lt;a target=&quot;_blank&quot; href=&quot;http://framework.zend.com/&quot;&gt;Zend framework&lt;/a&gt;. This has prompted me to try to learn a bit more about PHP. Code it a bit more and I&apos;m gonna learn &amp;quot;how it runs&amp;quot; just a tad more.&lt;/p&gt;
&lt;p&gt;I&apos;ve also got a project where I have to merge 2 existing &lt;a target=&quot;_blank&quot; href=&quot;http://www.adobe.com/products/coldfusion/&quot;&gt;ColdFusion&lt;/a&gt; apps... one using &lt;a target=&quot;_blank&quot; href=&quot;http://www.model-glue.com/&quot;&gt;Model-Glue&lt;/a&gt; and the other a &amp;quot;home grown&amp;quot; kind of framework. These 2 apps then have to be merged into an existing intranet using another &amp;quot;home grown&amp;quot; framework.... user rights... etc.... should be a bit of a challenge in how it&apos;s supposed to work.&lt;/p&gt;
&lt;p&gt;Then there&apos;s a couple of smaller ColdFusion projects.. which should be pretty straight forward.&lt;/p&gt;
&lt;p&gt;And last but not least is something I&apos;ve been trying to develop for quite some time... which I&apos;m going to upgrade. A re-write. It&apos;s a ColdFusion app. The upgrade will use &lt;a target=&quot;_blank&quot; href=&quot;http://www.coldboxframework.com/&quot;&gt;ColdBox&lt;/a&gt; or Model-Glue for the administrative section. Most likely keeping it&apos;s MySQL 5 DB in the backend.&lt;/p&gt;
&lt;p&gt;Possibilities for a couple of things in near future too..... so, I will likely be busy.&lt;/p&gt;
&lt;p&gt;Et vous??&lt;/p&gt;
				
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Adventures in self-employment</category>				
				
				<category>Technology</category>				
				
				<category>Yves Stuff</category>				
				
				<category>PHP</category>				
				
				<pubDate>Fri, 16 Jan 2009 11:26:00 -0300</pubDate>
				<guid>http://www.cfyves.com/blog/index.cfm/2009/1/16/What-are-you-working-on</guid>
				
			</item>
			
		 	
			</channel></rss>