<?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>Joe Riggs Bloggs &#187; php</title>
	<atom:link href="http://joe-riggs.com/blog/category/php-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://joe-riggs.com/blog</link>
	<description>simple man/complex world</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:39:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Php long running script to dynamically update html</title>
		<link>http://joe-riggs.com/blog/2011/07/php-long-running-script-to-dynamically-update-html/</link>
		<comments>http://joe-riggs.com/blog/2011/07/php-long-running-script-to-dynamically-update-html/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 15:43:25 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=691</guid>
		<description><![CDATA[This code is a work in progress and should never be used in a production environment without extensive testing! First, the page that is loaded into the browser, it uses jQuery to receive status updates from &#8216;getstatus.php&#8217; script &#60;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01//EN&#34; &#34;http://www.w3.org/TR/html4/strict.dtd&#34;&#62; &#60;html&#62; &#60;head&#62; &#60;title&#62;Update Inventory&#60;/title&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=UTF-8&#34;&#62; &#60;script src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js&#34; [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2011/07/php-long-running-script-to-dynamically-update-html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple php ftp download file script example</title>
		<link>http://joe-riggs.com/blog/2011/07/simple-php-ftp-download-file-script-example/</link>
		<comments>http://joe-riggs.com/blog/2011/07/simple-php-ftp-download-file-script-example/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 13:19:52 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=688</guid>
		<description><![CDATA[&#160; &#60;?php &#160; // define some variables $local_file = '&#60;save-file-as&#62;'; $server_file = '&#60;server-file-name&#62;'; $ftp_user_name='&#60;ftp-user&#62;'; $ftp_user_pass='&#60;ftp-pass&#62;'; $ftp_server='&#60;ftp-host-name&#62;'; // set up basic connection $conn_id = ftp_connect&#40;$ftp_server&#41;; &#160; // login with username and password $login_result = ftp_login&#40;$conn_id, $ftp_user_name, $ftp_user_pass&#41;; &#160; /* uncomment if you need to change directories if (ftp_chdir($conn_id, &#34;&#60;directory&#62;&#34;)) { echo &#34;Current directory is now: &#34; [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2011/07/simple-php-ftp-download-file-script-example/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add Linkshare Pixel To Magento</title>
		<link>http://joe-riggs.com/blog/2011/04/add-linkshare-pixel-to-magento/</link>
		<comments>http://joe-riggs.com/blog/2011/04/add-linkshare-pixel-to-magento/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 21:13:39 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=623</guid>
		<description><![CDATA[Add this code to: \app\design\frontend\enterprise\&#60;your theme&#62;\template\checkout\success.phtml &#60;?php &#160; $order_id = Mage::getSingleton&#40;'checkout/session'&#41;-&#62;getLastOrderId&#40;&#41;; $order = Mage::getModel&#40;'sales/order'&#41;-&#62;load&#40;$order_id&#41;; $_totalData = $order-&#62;getData&#40;&#41;; &#160; /*linkshare vars*/ $skus = array&#40;&#41;; $qtys = array&#40;&#41;; $amounts = array&#40;&#41;; &#160; foreach &#40;$order-&#62;getAllItems&#40;&#41; as $item&#41; &#123; &#160; $skus&#91;$item-&#62;getProductId&#40;&#41;&#93; = $item-&#62;getSku&#40;&#41;; $names&#91;$item-&#62;getProductId&#40;&#41;&#93; = rawurlencode&#40;$item-&#62;getName&#40;&#41;&#41;; $qtys&#91;$item-&#62;getProductId&#40;&#41;&#93; = $item-&#62;getQtyOrdered&#40;&#41; * 1; $amounts&#91;$item-&#62;getProductId&#40;&#41;&#93; = $item-&#62;getRowTotal&#40;&#41; * 100; &#125; &#160; $order_id [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2011/04/add-linkshare-pixel-to-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery and php Progressive Form Example</title>
		<link>http://joe-riggs.com/blog/2009/12/jquery-and-php-progressive-form-example/</link>
		<comments>http://joe-riggs.com/blog/2009/12/jquery-and-php-progressive-form-example/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 20:09:37 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[progressive enhancement]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=462</guid>
		<description><![CDATA[How to use php and jquery to submit a form. This form features progressive enhancement meaning that if the client has javascript disabled the form will still function. First the form, written in php: &#160; &#60;?php function DisplayForm&#40;$values, $errors&#41;&#123; ?&#62; &#160; &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;title&#62;Progressive Enhancement&#60;/title&#62; &#60;meta [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2009/12/jquery-and-php-progressive-form-example/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Address Standardization &amp; Verification with USPS web tools and PHP</title>
		<link>http://joe-riggs.com/blog/2009/10/address-standardization-verification-with-usps-web-tools-and-php/</link>
		<comments>http://joe-riggs.com/blog/2009/10/address-standardization-verification-with-usps-web-tools-and-php/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 18:53:30 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[standard]]></category>
		<category><![CDATA[usps]]></category>
		<category><![CDATA[web tools]]></category>
		<category><![CDATA[zip code]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=419</guid>
		<description><![CDATA[Before using this code you will need to sign up for an account with USPS webtools here. Class, save as &#8216;usps_address_class.php&#8217; &#160; &#60;?php &#160; class usps &#123; &#160; public $account = 'xxxxxxx'; //you need to register for this public $url = 'http://production.shippingapis.com/ShippingAPI.dll'; public $address1, $address2, $city, $state, $zip; public $ship_address1, $ship_address2, $ship_city, $ship_state, $ship_zip; &#160; [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2009/10/address-standardization-verification-with-usps-web-tools-and-php/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>php: Create Url Safe Encrypted String</title>
		<link>http://joe-riggs.com/blog/2009/08/php-create-url-safe-encrypted-string/</link>
		<comments>http://joe-riggs.com/blog/2009/08/php-create-url-safe-encrypted-string/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 15:57:59 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=408</guid>
		<description><![CDATA[The following code represents an easy way to create an encrypted string that can be passed in an URL.  While this method is adequate for email addresses, user names, and the like &#8211; it should not be used to encrypt mission-critical info or personal data such as Social Security numbers or credit card information. Also, [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2009/08/php-create-url-safe-encrypted-string/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Create Blank Page for WordPress Blog Using Your Theme Template</title>
		<link>http://joe-riggs.com/blog/2009/07/create-blank-page-for-wordpress-blog-using-your-theme-template/</link>
		<comments>http://joe-riggs.com/blog/2009/07/create-blank-page-for-wordpress-blog-using-your-theme-template/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 12:54:27 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blank page]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=385</guid>
		<description><![CDATA[There may come a time when you need to create a blank page on your WordPress site that still uses your template&#8217;s header, footer and sidebar.  For example, if you incorporate your own custom search from google, you will need to specify a landing page where the search results will be displayed. You could use [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2009/07/create-blank-page-for-wordpress-blog-using-your-theme-template/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>php: Send xml/soap to Secured Server</title>
		<link>http://joe-riggs.com/blog/2009/03/php-send-xmlsoap-to-secured-server/</link>
		<comments>http://joe-riggs.com/blog/2009/03/php-send-xmlsoap-to-secured-server/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 13:26:41 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[payload]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=187</guid>
		<description><![CDATA[Sample requires curl see code below: function callWebServicePost&#40;$host, $url, $payload, $user, $password&#41; &#123; &#160; $header&#91;&#93; = &#34;Host: &#34;. $host; $header&#91;&#93; = &#34;Content-type: text/xml&#34;; $header&#91;&#93; = &#34;Content-length: &#34;.strlen&#40;$payload&#41; . &#34;\r\n&#34;; $header&#91;&#93; = $payload; &#160; $session = curl_init&#40;$url&#41;; &#160; // Tell curl to use HTTP POST curl_setopt &#40;$session, CURLOPT_POST, true&#41;; curl_setopt&#40;$session, CURLOPT_CONNECTTIMEOUT,30&#41;; // Tell curl that this [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2009/03/php-send-xmlsoap-to-secured-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Display images in a directory with php</title>
		<link>http://joe-riggs.com/blog/2009/02/display-images-in-a-directory-with-php/</link>
		<comments>http://joe-riggs.com/blog/2009/02/display-images-in-a-directory-with-php/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 16:00:21 +0000</pubDate>
		<dc:creator>jriggs</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[files]]></category>

		<guid isPermaLink="false">http://joe-riggs.com/blog/?p=95</guid>
		<description><![CDATA[Here&#8217;s a quick and dirty way to show all the files in a directory. I use this in my images folder to see what&#8217;s there. Some improvements would be to add a mime-type check or a *jpg check. &#60;?php $path = "./"; $dir_handle = @opendir($path) or die("Unable to open folder"); while (false !== ($file = [...]]]></description>
		<wfw:commentRss>http://joe-riggs.com/blog/2009/02/display-images-in-a-directory-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

