<?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>websitedesignby.com &#187; php</title>
	<atom:link href="http://www.websitedesignby.com/category/programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websitedesignby.com</link>
	<description>Web Site Design and Programming - Naples, Florida</description>
	<lastBuildDate>Sat, 04 Jun 2011 13:17:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Video Player</title>
		<link>http://www.websitedesignby.com/flash/video-player/</link>
		<comments>http://www.websitedesignby.com/flash/video-player/#comments</comments>
		<pubDate>Sat, 07 May 2011 13:56:58 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Action Script]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[website design]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[MediaBox]]></category>
		<category><![CDATA[MooFlow]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.websitedesignby.com/?p=1079</guid>
		<description><![CDATA[We now have a demo up featuring a video player developed by Ross Sabes. 

This player utilizes a full featured custom back-end video database management tool.

Each video title can support multiple files in a variety of formats (FLV, MP4, Ogg, WebM, etc&#8230;) and settings for maximum compatibility and performance across the widest possible array of [...]]]></description>
			<content:encoded><![CDATA[<p>We now have a demo up featuring a video player developed by Ross Sabes. </p>
<p><a href="http://demo.websitedesignby.com" target="_blank"><img src="http://www.websitedesignby.com/wp-content/uploads/main-730.jpg" alt="Video Player" title="Video Player" width="730" height="486" class="alignnone size-full wp-image-1085" target="_blank" /></a></p>
<p>This player utilizes a full featured custom back-end video database management tool.</p>
<p><img src="http://www.websitedesignby.com/wp-content/uploads/screenshot-list.jpg" alt="Web Video Player Admin" title="Web Video Player Admin" width="730" height="636" class="alignnone size-full wp-image-1088" /></p>
<p>Each video title can support multiple files in a variety of formats (FLV, MP4, Ogg, WebM, etc&#8230;) and settings for maximum compatibility and performance across the widest possible array of devices. The player can be customized to detect the users bandwidth and play the most suitable Flash format available. If the visitor is using an iPad, iPhone or iPod the player is programmed to use the compatible MP4 format with both high and low bandwidth options if available.</p>
<p><img src="http://www.websitedesignby.com/wp-content/uploads/screenshot-edit-video.jpg" alt="Video Edit Screen" title="Video Edit" width="730" height="873" class="alignnone size-full wp-image-1091" /></p>
<p>Videos can be assigned to multiple pages by the administrator.<div id="attachment_1093" class="wp-caption alignright" style="width: 389px"><img src="http://www.websitedesignby.com/wp-content/uploads/select_pages.jpg" alt="Select Pages for the Video to Appear On" title="Select Pages" width="379" height="195" class="size-full wp-image-1093" /><p class="wp-caption-text">Select pages for the video to appear on.</p></div></p>
<p>Videos can also be tagged for search engines and other custom functionality.<img src="http://www.websitedesignby.com/wp-content/uploads/select_tags.jpg" alt="Tag videos for addtitional functionality" title="Select Tags" width="373" height="387" class="alignright size-full wp-image-1095" /></p>
<p><a href="http://demo.websitedesignby.com" target="_blank">Visit the front-end here</a><br />
For a demo of the back-end <a href="http://www.websitedesignby.com/profile/">contact us</a>.</p>
<p>This program was developed using:<br />
<a href="http://mootools.net/" target="_blank">MooTools</a><br />
<a href="http://iaian7.com/webcode/Mediabox" target="_blank">MediaBox</a><br />
and <a href="http://www.outcut.de/MooFlow/">MooFlow</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.websitedesignby.com%2Fflash%2Fvideo-player%2F&amp;linkname=Video%20Player"><img src="http://www.websitedesignby.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.websitedesignby.com/flash/video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Website Development Work Flow: wp-config.php</title>
		<link>http://www.websitedesignby.com/programming/wordpress-website-development-work-flow-wp-config-php/</link>
		<comments>http://www.websitedesignby.com/programming/wordpress-website-development-work-flow-wp-config-php/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 12:59:00 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.websitedesignby.com/?p=642</guid>
		<description><![CDATA[When I am working on a website I have a local development version that I program and test locally. When an update is implemented, it is tested locally before it is copied to the live server. Wordpress sites are treated no differently. Here is how you can make the wp-config.php portable to work in your [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.websitedesignby.com/wp-content/uploads/local_live_sign1.jpg" alt="" title="local_live_sign" width="300" height="257" class="alignnone size-full wp-image-667" align="right" style="padding:10px;" />When I am working on a website I have a local development version that I program and test locally. When an update is implemented, it is tested locally before it is copied to the live server. Wordpress sites are treated no differently. Here is how you can make the wp-config.php portable to work in your live and local environment. Simply replace the variables below with the actual information for your web site and you will be have a wp-config.php that can happily thrive in both environments. </p>
<p>I defined an additional constant &#8216;LIVE&#8217; that I can refer to elsewhere in my code to determine if I am on the live server or not.</p>
<p><strong>wp-config.php</strong></p>
<div class="code">
<?php<br />
<span class="highlight"><br />
if($_SERVER['HTTP_HOST']==&#8217;livedomain.com&#8217; || $_SERVER['HTTP_HOST']==&#8217;www.livedomain.com&#8217;){</p>
<div class="indent">
	define(&#8216;DB_NAME&#8217;, &#8216;db_name_live&#8217;);    // The name of the database<br />
	define(&#8216;DB_USER&#8217;, &#8216;mysql_username_live&#8217;);     // Your MySQL username<br />
	define(&#8216;DB_PASSWORD&#8217;, &#8216;mysql_password_live&#8217;); // &#8230;and password<br />
	define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);    // db host<br />
	define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;);<br />
	define(&#8216;DB_COLLATE&#8217;, &#8221;);<br />
	define(&#8216;AUTH_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br />
	define(&#8216;SECURE_AUTH_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br />
	define(&#8216;LOGGED_IN_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br />
	define(&#8216;LIVE&#8217;, true);
</div>
<p>}else{</p>
<div class="indent">
	define(&#8216;DB_NAME&#8217;, &#8216;name_of_db_local&#8217;);    // The name of the database<br />
	define(&#8216;DB_USER&#8217;, &#8216;mysql_username_local&#8217;);     // Your MySQL username<br />
	define(&#8216;DB_PASSWORD&#8217;, &#8216;mysql_password_local&#8217;); // &#8230;and password<br />
	define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);    // db host<br />
	define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;);<br />
	define(&#8216;DB_COLLATE&#8217;, &#8221;);<br />
	define(&#8216;AUTH_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br />
	define(&#8216;SECURE_AUTH_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br />
	define(&#8216;LOGGED_IN_KEY&#8217;, &#8216;put your unique phrase here&#8217;);<br />
	define(&#8216;LIVE&#8217;, false);
</div>
<p>}<br />
</span><br />
// You can have multiple installations in one database if you give each a unique prefix<br />
$table_prefix  = &#8216;wp_&#8217;;   // Only numbers, letters, and underscores please!</p>
<p>// Change this to localize WordPress.  A corresponding MO file for the<br />
// chosen language must be installed to wp-content/languages.<br />
// For example, install de.mo to wp-content/languages and set WPLANG to &#8216;de&#8217;<br />
// to enable German language support.<br />
define (&#8216;WPLANG&#8217;, &#8221;);</p>
<p>/* That&#8217;s all, stop editing! Happy blogging. */</p>
<p>if ( !defined(&#8216;ABSPATH&#8217;) )<br />
	define(&#8216;ABSPATH&#8217;, dirname(__FILE__) . &#8216;/&#8217;);<br />
require_once(ABSPATH . &#8216;wp-settings.php&#8217;);<br />
?></p>
</div>
<h3>MySQL Queries</h3>
<p>Another thing to be conscious of when moving between a live and local server environment with Wordpress are couple of records in the wp_options table of the database. The <em>siteurl</em> and <em>liveurl</em> records will be different in your local environment and live environment. If you copy your database from one to the other, just run the appropriate query below (with the <em>liveurl</em> and <em>localurl</em> variables changed to your actual data) depending on if you are copying from local to live or live to local.</p>
<h3>Live to Local Query</h3>
<p>Run query on local database.</p>
<div class="code">
UPDATE wp_options SET option_value=&#8217;http://localurl.com&#8217; WHERE option_name=&#8217;siteurl&#8217; ;</p>
<p>UPDATE wp_options SET option_value=&#8217;http://localurl.com&#8217; WHERE option_name=&#8217;home&#8217;
</p></div>
<h3>Local to Live Query</h3>
<p>Run query on live database.</p>
<div class="code">
UPDATE wp_options SET option_value=&#8217;<em>http://liveurl.com</em>&#8216; WHERE option_name=&#8217;siteurl&#8217; ;</p>
<p>UPDATE wp_options SET option_value=&#8217;http://liveurl.com&#8217; WHERE option_name=&#8217;home&#8217;
</p></div>
<p>If you have any questions or suggestions, your comments are welcome below.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.websitedesignby.com%2Fprogramming%2Fwordpress-website-development-work-flow-wp-config-php%2F&amp;linkname=Wordpress%20Website%20Development%20Work%20Flow%3A%20wp-config.php"><img src="http://www.websitedesignby.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.websitedesignby.com/programming/wordpress-website-development-work-flow-wp-config-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NatureSong 2009 Redesign</title>
		<link>http://www.websitedesignby.com/apis/229/</link>
		<comments>http://www.websitedesignby.com/apis/229/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 23:32:31 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PayPal]]></category>
		<category><![CDATA[redesign]]></category>
		<category><![CDATA[UPS]]></category>

		<guid isPermaLink="false">http://www.websitedesignby.com/?p=229</guid>
		<description><![CDATA[

naturesong.net was redesigned in 2009 to address some issues with the shopping cart, integrate a reseller login so resellers can log in and purchase CDs at a discount and NET 30 payment terms and generally update the look and feel of the site.


The shopping cart and content management system is completely custom. I decided to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.naturesong.net" target="_blank"><img src="http://www.websitedesignby.com/wp-content/uploads/naturesong_700.jpg" alt="Nature Song 2009" title="naturesong.net" width="700" height="542" class="size-medium wp-image-230" /></a></p>
<p>
<a href="http://www.naturesong.net" target="_blank">naturesong.net</a> was redesigned in 2009 to address some issues with the shopping cart, integrate a reseller login so resellers can log in and purchase CDs at a discount and NET 30 payment terms and generally update the look and feel of the site.
</p>
<p>
The shopping cart and content management system is completely custom. I decided to create a custom system for this site because I had a clear vision of how it should work. The owner, Bill Leverick, wanted to be able to easily update the CDs available for sale. I knew there were off-the-shelf shopping carts and content management systems I could probably have used or customized. Because these products had an &#8216;audio sample&#8217; component to them that we needed to attach and be able to associate audio files with multiple products, I decided to build it myself. The site integrates PayPal Website Payments Pro for it&#8217;s merchant service provider and the UPS API to get shipping information from UPS in real-time for orders with quantities above 2 CDs. The AJAX overlay for each product uses the jQuery framework to handle the JavaScript effects.
</p>
<p>
In retrospect I am happy with my decision to go completely custom with this site. It allowed me to develop exactly what the client was looking for without excess functionality that he didn&#8217;t want or need and might have confused the process. It also allowed me to address his fine-tuning requests quickly and not have to compromise because of an off-the-shelf software limitation.
</p>
<p>
Here is a quote from the owner:</p>
<blockquote><p>Ross,<br />
I just logged on to check out the new NatureSong site that you activated today. I am very pleased not only with the graphics, but with the built in ability for me to make necessary changes to the products. You have done a great job and I would heartily recommend you to anyone. Please feel free to use this site and my other web site, <a href="http://www.capcodnewenglandgiftshow.com" target="_blank">Cape Cod &#038; New England Gift Show</a> as examples of your work.<br />
Thanks,<br />
Bill Leverick</p></blockquote>
<p><a href="http://www.naturesong.net" target="_blank">View Project</a></p>
<p><span style="font-size:10px;">The original site I developed in 1998 can be seen <a href="http://www.websitedesignby.com/addesignconcepts/2005/portfolio/flash/naturesong/index_flash.html" target="_blank">here</a>.</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.websitedesignby.com%2Fapis%2F229%2F&amp;linkname=NatureSong%202009%20Redesign"><img src="http://www.websitedesignby.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.websitedesignby.com/apis/229/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UPS Rates API Example Using PHP</title>
		<link>http://www.websitedesignby.com/apis/ups-rates-api-example-using-php/</link>
		<comments>http://www.websitedesignby.com/apis/ups-rates-api-example-using-php/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 15:38:56 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[Shipping]]></category>
		<category><![CDATA[UPS]]></category>

		<guid isPermaLink="false">http://www.websitedesignby.com/?p=185</guid>
		<description><![CDATA[This example uses the php class developed by Mark Sandborn (now hosted at code.google.com here). I made a couple slight modifications to the class.  Using Marks&#8217; class I created this form to serve as a starting point for you to present your user with various UPS shipping options and their associated costs to integrate [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.websitedesignby.com/ups/index.php">This example</a> uses the php class developed by <a href="http://www.marksanborn.net/php/calculating-ups-shipping-rate-with-php/" target="_blank">Mark Sandborn</a> (now hosted at code.google.com <a href="http://code.google.com/p/ups-php/" target="_blank">here</a>). I made a couple slight modifications to the class.  Using Marks&#8217; class I created <a href="http://www.websitedesignby.com/ups/index.php">this form</a> to serve as a starting point for you to present your user with various UPS shipping options and their associated costs to integrate into your own shopping cart.</p>
<p><a href="http://www.websitedesignby.com/ups/Archive.zip">download my sourcecode for the form</a><br />
<a href="http://www.websitedesignby.com/ups/RSS_Tool_06_10_09.pdf" target="_blank">Rates and Service Selection XML Tool Developers Guide from UPS</a></p>
<p>Happy coding!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.websitedesignby.com%2Fapis%2Fups-rates-api-example-using-php%2F&amp;linkname=UPS%20Rates%20API%20Example%20Using%20PHP"><img src="http://www.websitedesignby.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.websitedesignby.com/apis/ups-rates-api-example-using-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>phpFlickr</title>
		<link>http://www.websitedesignby.com/apis/phpflickr/</link>
		<comments>http://www.websitedesignby.com/apis/phpflickr/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 01:32:58 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://websitedesignby.com/blog/?p=13</guid>
		<description><![CDATA[I made a random flickr image loader using phpFlickr.
It loads a random image from based on the search term entered in the text box. Search terms are saved in a database and reused randomly on each refresh.
]]></description>
			<content:encoded><![CDATA[<p>I made a <a href="/flickr_random_image.php" target="_blank">random flickr image loader</a> using <a href="http://phpflickr.com/">phpFlickr.</a></p>
<p>It loads a random image from based on the search term entered in the text box. Search terms are saved in a database and reused randomly on each refresh.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.websitedesignby.com%2Fapis%2Fphpflickr%2F&amp;linkname=phpFlickr"><img src="http://www.websitedesignby.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.websitedesignby.com/apis/phpflickr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

