<?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>dawhoo &#187; Scripts</title>
	<atom:link href="http://www.dawhoo.com/category/php-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dawhoo.com</link>
	<description>a little this a little that</description>
	<lastBuildDate>Fri, 23 Jul 2010 04:58:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SWF Viewer for ASPDotNetStoreFront</title>
		<link>http://www.dawhoo.com/swf-viewer-for-aspdotnetstorefront/</link>
		<comments>http://www.dawhoo.com/swf-viewer-for-aspdotnetstorefront/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 22:11:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet Technology]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Web Management]]></category>
		<category><![CDATA[aspdotnetstorefront]]></category>
		<category><![CDATA[Shopping Cart Image Viewer]]></category>
		<category><![CDATA[SWF Image Viewer]]></category>

		<guid isPermaLink="false">http://www.dawhoo.com/?p=82</guid>
		<description><![CDATA[If you are using ASPDotNetStoreFront for your shopping cart, then you know how the popup image viewer looks and to me, it doesn't look all that great. After working with ASPDNSF for some time, I am finally starting to 'get it' and I thought I would share some of my secrets for working with this shopping cart.]]></description>
			<content:encoded><![CDATA[<div id="attachment_85" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hostelboardcompany.com/p-1646-oneill-hyper-freak-mens-boardshorts-blu.aspx" target="_blank"><img class="size-medium wp-image-85" title="swf_image_viewer" src="http://www.dawhoo.com/wp-content/uploads/2009/06/swf_image_viewer-300x243.jpg" alt="swf_image_viewer" width="300" height="243" /></a><p class="wp-caption-text">ASPDotNetStoreFront SWF Image Viewer Popup</p></div>
<p><a href="http://www.hostelboardcompany.com/p-2017-oneill-psychofreak-2535-mens-wetsuit-0910-3347.aspx"><strong>SWF Image Viewer Demo</strong></a> (this is a live site, so if you order something, you will be charged!)</p>
<p>If you are using <strong>ASPDotNetStoreFront</strong> for your shopping cart, then you know how the popup image viewer looks and to me, it doesn&#8217;t look all that great. After working with ASPDNSF for some time, I am finally starting to &#8216;get it&#8217; and I thought I would share <em>some of my secrets</em> for working with this shopping cart.</p>
<p>You&#8217;re going to need a little working knowledge of ASPDNSF to do this, so if you&#8217;re not comfortable doing this yourself, <a href="http://www.dawhoo.com/contact/"><strong><span style="color: #0000ff;">contact me and I can set this up for your site</span></strong></a>. The code provided below does work, but is not as complete as it could be&#8230; (I can&#8217;t give away all my secrets). If you need help setting this up and would like the complete package (including SWF viewer), I charge a flat rate of $250 to set this up and it comes with everything you&#8217;ll need, plus a few extra tweaks you&#8217;re not going to find in this guide.</p>
<p>First of all, you&#8217;re going to need a SWF for making a gallery page. I used <strong>Zoomify Design</strong> as it&#8217;s inexpensive, simple to use and works very well. Zoomify Design costs $29 and it&#8217;s worth every penny to me. I am going to assume you know how to use Zoomify and if you don&#8217;t, read the documentation. It&#8217;s pretty easy and once you get it set up, it&#8217;s easy to make the files for your call to a SWF popup image viewer.</p>
<p>Create a flash directory to store your files on your server. I created my flash folder inside the root of the website, but you can choose almost any location, as long as the folder is readable.</p>
<p>You&#8217;re going to need to have a custom product.xml package. You can just copy one of existing product.XML packages for your products. I used <strong>product.SimpleProduct.xml.config</strong> Be sure and give your XML a new name, I use product.Flash.xml.config</p>
<p>Edit the XML package and look for this line of code in your XML package. It will appear in several place and it&#8217;s best to edit them all.</p>
<blockquote><p><span style="color: #3366ff;">&lt;xsl:value-of select=&#8221;aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, &#8216;medium&#8217;, 0, $AltText)&#8221; disable-output-escaping=&#8221;yes&#8221; /&gt;</span></p></blockquote>
<p>Comment out the code so it looks like:</p>
<blockquote><p><span style="color: #ff0000;">&lt;!&#8211;</span><span style="color: #3366ff;">&lt;xsl:value-of select=&#8221;aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, &#8216;medium&#8217;, 0, $AltText)&#8221; disable-output-escaping=&#8221;yes&#8221; /&gt;</span><span style="color: #ff0000;">&#8211;&gt;</span></p></blockquote>
<p>It&#8217;s better to <strong>comment it out</strong>, in case you make a mistake, it will be easier to fix. Right below the code you just commented out, place this bit of code to call the SWF.</p>
<blockquote><p><span style="color: #0000ff;">&lt;a href=&#8221;</span><strong><span style="color: #ff0000;">flash/<span style="color: #0000ff;">{ProductID}</span>/viewer.htm</span></strong><span style="color: #0000ff;">&#8221; target=&#8221;_blank&#8221;&gt;&lt;img src=&#8221;images/product/medium/{ProductID}.jpg&#8221; /&gt;&lt;br /&gt; &lt;center&gt;</span><strong><span style="color: #ff0000;">Multi Image Viewer</span></strong><span style="color: #0000ff;">&lt;/center&gt;&lt;/a&gt;</span></p></blockquote>
<p>The areas in red are the only changes you will need to make a change to the code to make it work. Change the href path to reflect the location of the folder and the name of the htm file that calls the swf within the product folder. The {ProductID} pulls the dynamic file name for each image so leave that in tact. This code can be modified to suit your needs. Now upload the product.XML file into your XML folder on your webserver.</p>
<p>Choose the item you want to use the SWF multi image viewer. Each product has a unique user ID number and that&#8217;s what you&#8217;re going to name the folder that contains the SWF viewer and image files. Process the images <strong>per the directions for Zoomify</strong> and upload the folder into the flash folder on the website. (eg: upload the folder 2345 to the /flash directory on your website.</p>
<p>Go to your edit product page and choose the XML package you created for the item and you&#8217;re done. Be sure and check out the new page to make sure it looks the way you want and everything is working. A few lines of code, a little preperation and you&#8217;ve turned your vanilla ASPDNSF image viewer into a powerful and dynamic image viewing system that&#8217;s going to increase sales and make your customers very happy.</p>
<p><a href="http://www.hostelboardcompany.com/p-2017-oneill-psychofreak-2535-mens-wetsuit-0910-3347.aspx">Here is a working example on a live site.</a></p>
<p>If you would like to have me do this for you and give you the complete package, with everything ready to go, <a href="http://www.dawhoo.com/contact/"><strong>contact me</strong> </a>and I will try and get back with you as soon as possible. Please leave a phone number and a good time to contact you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dawhoo.com/swf-viewer-for-aspdotnetstorefront/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Buoy Reports on a Cell Phone</title>
		<link>http://www.dawhoo.com/buoy-reports-on-a-cell-phone/</link>
		<comments>http://www.dawhoo.com/buoy-reports-on-a-cell-phone/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 01:44:32 +0000</pubDate>
		<dc:creator>dawhoo</dc:creator>
				<category><![CDATA[Internet Technology]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://dawhoo.com/blog/buoy-reports-on-a-cell-phone/</guid>
		<description><![CDATA[Fast, easy and very low bandwidth. If you need or ever thought you needed buoy weather on your cellphone, you need to check this out. I was envolved in the project and I think we made soething very useful for surfers, offshore fisherman and anyone who has an interest in ocean weather.
Buoy Weather Conditions and [...]]]></description>
			<content:encoded><![CDATA[<p>Fast, easy and very low bandwidth. If you need or ever thought you needed buoy weather on your cellphone, you need to check this out. I was envolved in the project and I think we made soething very useful for surfers, offshore fisherman and anyone who has an interest in ocean weather.</p>
<p><a href="http://www.otesurf.com/cellphone_surf.php">Buoy Weather Conditions and Forecasts on Your Cell Phone </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dawhoo.com/buoy-reports-on-a-cell-phone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Online shopping cart ecommerce guide: ZenCart</title>
		<link>http://www.dawhoo.com/online-shopping-cart-ecommerce-guide-zencart/</link>
		<comments>http://www.dawhoo.com/online-shopping-cart-ecommerce-guide-zencart/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 06:08:05 +0000</pubDate>
		<dc:creator>dawhoo</dc:creator>
				<category><![CDATA[Internet Technology]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Web Site Updates]]></category>
		<category><![CDATA[aspdotnetstorefront]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[shopping cart guide]]></category>
		<category><![CDATA[shopping cart review]]></category>
		<category><![CDATA[zen cart]]></category>
		<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://dawhoo.com/blog/2008/04/01/online-shopping-cart-ecommerce-guide-zencart/</guid>
		<description><![CDATA[When you&#8217;re ready for an online shopping cart, there are a lot of questions you need to ask yourself. What cart will work best for my situation? What about Visa&#8217;s PABP and PCI compliance? Credit card gateways, PHP, ASP, custom carts or out of the box; which one do I need? Should you host your [...]]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re ready for an online shopping cart, there are a lot of questions you need to ask yourself. What cart will work best for my situation? What about Visa&#8217;s PABP and PCI compliance? Credit card gateways, PHP, ASP, custom carts or out of the box; which one do I need? Should you host your shopping cart or do you want to have your cart hosted? Perpetual license or a one time fee? And that&#8217;s just the beginning.</p>
<p>In this series, I will try and broach some of the pros and cons of various shopping cart and various ecommerce solutions. We will begin with ZenCart.</p>
<p>Zen Cart is a really nice online shopping cart. Out of the box, it works. It&#8217;s basic, but it does work.  There&#8217;s a beauty to its simplicity, thus Zen. Out of the box, you get basic image handling, easy to use and create templates and built in credit card processing gateways. You also have the ability to add a lot of features that would cost thousands extra for most pay shopping carts, but with Zen Cart, most every extension and contribution that add functionality to your cart are free. $0 is a very attractive price for a piece of such powerful software, but there&#8217;s a cost. ZenCart management is not for the faint of heart. ZenCart requires a fairly high level of knowledge to really have a good shopping cart.</p>
<p><span id="more-16"></span></p>
<p><font color="#de010a"><strong>ZenCart &#8211; The Good</strong></font></p>
<p>One of the best things about Zen Cart is it&#8217;s free. Yep, free. Not only is it free, it&#8217;s also open source, which means, given enough knowledge, you can make the cart do anything you want it to do. Well, anything within reason or the ability of your programmer. And it&#8217;s not just the cart that is free, the source is also free for Zen Cart. Shopping carts source code can cost thousands of dollars, but Zen Cart is free. And when you really need to change a function of the site, the source is, well, the best source. Updates and upgrades are also free and that&#8217;s a big plus in the world of ecommerce.</p>
<p>Designing a shopping cart with ZenCart is fairly simple, if you can design a website. Zen Cart uses a great template system. It&#8217;s very easy to use and it makes updating the software a lot easier. I really like the hierarchical taxonomic structure of the template system. It takes a little getting used to and it&#8217;s not a WYSIWYG system, you still need to code, but it&#8217;s one of the easier template systems I&#8217;ve used.  And let us not forget, ZenCart is free.</p>
<p><font color="#de010a"><strong>Zen Cart &#8211; The Not So Good</strong></font></p>
<p>Product management with ZenCart is both a godsend and a nightmare. The godsend is keeping track of products that are published vs non-published items. Price adjusting and category management. Any system is going to take some time to learn, but Zen Cart provided a wealth of information about your products, all on one page and all easy to update and edit. In some aspects, it&#8217;s the best product management layout I&#8217;ve used. However, adding variants (size, color, etc..) to a product is archaic. ZenCart&#8217;s cousin, OSCommerce, has an add-in that addresses this issue, but not in Zen Cart. ZenCart 3 is scheduled to address this issue, but the schedule itself is 2 years old. There are a few contributions and add-ons that try and address this issue, but the method for adding variants to products falls far short of user friendly and is downright hostile at times.</p>
<p><font color="#de010a"><strong>ZenCart &#8211; The Ugly</strong></font></p>
<p>The downside &#8211; you need a real programmer. And every upgrade is going to require some rather extensive work to keep the look, feel and functionality of your site. All the little bells and whistles are going to cost you in programmer fees or extensive amounts of your time. Your cart is going to need a lot of add-on, contributions and graphics to have a nice looking and highly functional site. Images handling is fairly poor, but there are add-ons to make image handling as good as most any other website, but again, you&#8217;ll need someone who knows PHP and SQL to get it functional and be able to update your site in the future.</p>
<p>Search engine optimization is going to take a lot of work with Zen Cart. The shopping cart isn&#8217;t exactly what you would call search engine friendly out of the box, but that can be fixed with an add-on. So there&#8217;s more money to the programmer.</p>
<p><font color="#de010a"><strong>ZenCart &#8211; What it all means</strong></font></p>
<p>Depending on what you&#8217;re selling, Zen Cart may be the best solution for your shopping cart. It can handle an infinite amounts of products, but if you have a lot of variants (size, color, etc.), you&#8217;ll probably be happier with an easier to use administrator interface for stock and attributes than the one used by Zen Cart. If you&#8217;re selling products without variants ZenCart may be a great solution for your web site&#8217;s shopping cart.</p>
<p>coming up next&#8230; ASPDotNetStoreFront</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dawhoo.com/online-shopping-cart-ecommerce-guide-zencart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Tide Clock</title>
		<link>http://www.dawhoo.com/php-tide-clock/</link>
		<comments>http://www.dawhoo.com/php-tide-clock/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 15:36:29 +0000</pubDate>
		<dc:creator>dawhoo</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tides]]></category>

		<guid isPermaLink="false">http://dawhoo.com/blog/2008/01/19/php-tide-clock/</guid>
		<description><![CDATA[Here&#8217;s a quick little script for predicting tides. Be sure and change the high tide time on line 2. You may have to play around with the numbers a little to get it working on your site. Please, don&#8217;t ever use this script for navigational purposes. Seriously, this is a rough estimate and not for [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick little script for predicting tides. Be sure and change the high tide time on line 2. You may have to play around with the numbers a little to get it working on your site. Please, <strong><span style="color: #993300;">don&#8217;t ever use this script for navigational purposes</span></strong>. Seriously, this is a rough estimate and not for marine navigation purposes.</p>
<p>Tides depend on many factors, sun, moon, wind and some other things I don&#8217;t understand. But I do understand tides differ by a set amount of time in most places &#8211; usually. I developed this code to work for Folly Beach, but it will work in locations with a 12:50 time difference between high tides. As a general rule, this works fairly well, but you will still need to update the tides occasionally or during time changes.<span id="more-9"></span></p>
<p>&lt;!&#8211;<br />
php tide by dawhoo<br />
*********************************************************************<br />
© dawhoo  2004<br />
dawhoo.com<br />
This script must be used in whole with credit in tact.<br />
php tide script by philip nicholson</p>
<p>*********************************************************************<br />
do not rely on this script for navigational purposes &#8211; serious<br />
*********************************************************************</p>
<p>Instructions:<br />
Paste into any php page an viola! There are the predicted next tides.<br />
1)Change $knowntide to the last observed high tide<br />
2)You may need to tweak the $knowntide to adjust for a server in a different time zone than  			      where the tides are being measured.<br />
&#8211;&gt;</p>
<p><span class="style1"><span style="color: #ff0000;">&lt;?php</span><br />
$knowntide = strtotime(&#8216;2007-06-25 18:30&#8242;);  // <span style="color: #008000;">known hightide use the sample format</span><br />
$current = date(U);<br />
$interval = (12 * 3600) + (25 * 60); </span><span class="style1">// <span style="color: #008000;">12 hours and 50 minutes between high tides</span></span><br />
<span class="style1"> $num_tides_passed = floor(($current &#8211; $knowntide) / $interval);<br />
$last_tide = $knowntide + ($interval * $num_tides_passed);<br />
$next_high = $last_tide + (12 * 3600) + (25 * 60); </span><span class="style1">// <span style="color: #008000;">12 hours and 50 minutes between 2 high tides</span></span><br />
<span class="style1"> $next_low = $last_tide + (6 * 3600) + (13 * 60);  <span style="color: #ff0000;">?&gt; </span></span><span class="style1">// <span style="color: #008000;">6 hours and 13 minutes between high and low</span></span></p>
<p><span class="style1"><span style="color: #ff0000;">&lt;?php</span> echo date(&#8216;m/d g:i a&#8217;, $next_low); <span style="color: #ff0000;">?&gt;</span> low </span><span class="style1">// <span style="color: #008000;">change </span></span><span style="color: #008000;"><span class="style1">&#8220;m/d g:i a&#8221; to use a different date format</span></span><br />
<span class="style1"> &lt;br&gt;&lt;font color=&#8221;blue&#8221;&gt;<br />
<span style="color: #ff0000;"> &lt;?php</span> echo date(&#8216;m/d g:i a&#8217; , $next_high);  <span style="color: #ff0000;">?&gt;</span> high<br />
&lt;br&gt;&lt;/font&gt;<br />
<span style="color: #ff0000;"> &lt;?php</span> echo date( &#8216;m/d g:i a&#8217; , $next_low + (12 * 3600) + (25 * 60)); <span style="color: #ff0000;">?&gt;</span> low&lt;br /&gt;<br />
&lt;font color=&#8221;blue&#8221;&gt;<br />
<span style="color: #ff0000;"> &lt;?php</span> echo date( &#8216;m/d g:i a&#8217; , $next_high + (12 * 3600) + (25 * 60)); <span style="color: #ff0000;">?&gt;</span> high&lt;/font&gt;<br />
&lt;br&gt;&lt;br&gt;&lt;a href=&#8221;http://www.dawhoo.com/script.html&#8221;&gt;dawhoo tide&lt;/a&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dawhoo.com/php-tide-clock/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
