<?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>Helmut Granda &#187; PHP Solutions</title>
	<atom:link href="http://www.helmutgranda.com/tag/php-solutions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.helmutgranda.com</link>
	<description>learning through interaction</description>
	<lastBuildDate>Mon, 19 Jul 2010 15:01:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Getting UPS Rates with PHP fixing small issue</title>
		<link>http://www.helmutgranda.com/2009/11/22/getting-ups-rates-with-php-fixing-small-issue/</link>
		<comments>http://www.helmutgranda.com/2009/11/22/getting-ups-rates-with-php-fixing-small-issue/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 05:50:23 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[AS Burst]]></category>
		<category><![CDATA[PHP Solutions]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=392</guid>
		<description><![CDATA[There is an great class in Google Code written in PHP that works as a wrapper to the UPS API, I started using it about a year ago and never had issues with it since I was using it with Flash/AMFPHP/PHP, but now that I am working with a new shopping cart where I need [...]]]></description>
			<content:encoded><![CDATA[<p>There is an great class in <a target="_blank" href="http://code.google.com/p/ups-php/">Google Code</a> written in PHP that works as a wrapper to the UPS API, I started using it about a year ago and never had issues with it since I was using it with Flash/AMFPHP/PHP, but now that I am working with a new shopping cart where I need this functionality but the front end is PHP only, I noticed that I was starting to get the following error:</p>
<div class="syntax_hilite"><strong>PHP:</strong>
<div id="php-1">
<div>
<ol style="">Parse error: syntax error, unexpected $end in path.../UPSRate.php(131) : eval()'d code on line 1[php]</p>
<p>After investigating the issue further I was able to fix the issue by only using eval on those elements where 'value' wasn't undefined.</p>
<p>[php]if (isset($xml_elem['value'])) {<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$php_stmt .= '[$xml_elem[\'tag\']] = $xml_elem[\'value\'];';<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;eval($php_stmt);<br />
}</ol>
</div>
</div>
</div>
<p>Notice that these parse errors do not break the application and that is why they weren't raising a flag in Flash but working on PHP alone we have to squash all these kind of warnings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2009/11/22/getting-ups-rates-with-php-fixing-small-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
