<?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/tag/php-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://joe-riggs.com/blog</link>
	<description>simple man/complex world</description>
	<lastBuildDate>Mon, 07 May 2012 14:12:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<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>2</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>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>

