<?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"
	>

<channel>
	<title>RandomClipart.com</title>
	<atom:link href="http://www.randomclipart.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randomclipart.com/blog</link>
	<description>Clipart &#038; Illustration Blog</description>
	<pubDate>Mon, 17 Nov 2008 10:25:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Christmas Clip Art</title>
		<link>http://www.randomclipart.com/blog/news/christmas-clip-art-6.html</link>
		<comments>http://www.randomclipart.com/blog/news/christmas-clip-art-6.html#comments</comments>
		<pubDate>Wed, 21 Nov 2007 17:05:00 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
		
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.randomclipart.com/blog/news/christmas-clip-art-6.html</guid>
		<description><![CDATA[Christmas is fast approaching so I&#8217;ve been hastily drawing and uploading Christmas clipart to the gallery. I&#8217;ll be adding loads more in the coming weeks but what doesn&#8217;t get done soon will definitely be ready for next year!
I&#8217;ve started with the basics like christmas trees, snowmen and crackers but I&#8217;ve got a big long list [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Cartoon Christmas Tree Clip Art" href="http://www.randomclipart.com/clipart/cartoon-christmas-tree-1029.html"><img style="float: left" title="Cartoon Christmas Tree" src="http://www.randomclipart.com/clipart/thumbs/cartoon-christmas-tree-1029.png" alt="Cartoon Christmas Tree" width="180" height="180" /></a>Christmas is fast approaching so I&#8217;ve been hastily drawing and uploading <a title="Christmas clipart" href="http://www.randomclipart.com/search/christmas-1.html">Christmas clipart</a> to the gallery. I&#8217;ll be adding loads more in the coming weeks but what doesn&#8217;t get done soon will definitely be ready for next year!</p>
<p>I&#8217;ve started with the basics like <a title="Christmas Tree clipart" href="http://www.randomclipart.com/clipart/cartoon-christmas-tree-1029.html">christmas trees</a>, <a title="Snowman clip art" href="http://www.randomclipart.com/clipart/cartoon-snowman-1024.html">snowmen</a> and <a title="Christmas Cracker clipart" href="http://www.randomclipart.com/clipart/cartoon-christmas-cracker-1026.html">crackers</a> but I&#8217;ve got a big long list of other festive items still waiting to be drawn. I suppose that&#8217;s the downside of having started a clipart website so close to a big holiday; it&#8217;s close enough to create a demand for clipart but too close to get much done. I&#8217;m seeing lots of searches for santa, reindeers, elves and so on that are returning tragically empty results pages.   Still, there&#8217;s always next year.</p>
<p>See all the latest <a title="Lastest Christmas clip art" href="http://www.randomclipart.com/search/christmas-1.html">Christmas clip art</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.randomclipart.com/blog/news/christmas-clip-art-6.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Digital Download Protection &#038; Secure Download Scripts</title>
		<link>http://www.randomclipart.com/blog/web-development/digital-download-protection-secure-download-scripts-5.html</link>
		<comments>http://www.randomclipart.com/blog/web-development/digital-download-protection-secure-download-scripts-5.html#comments</comments>
		<pubDate>Wed, 14 Nov 2007 15:56:40 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.randomclipart.com/blog/uncategorized/digital-download-protection-secure-download-scripts-5.html</guid>
		<description><![CDATA[A core feature of RandomClipart.com is the ability for customers to instantly download clipart files after checkout. My previous web development projects have taught me PHP, XHTML, CSS and MySQL and I&#8217;ve also had cause to integrate shopping carts with PayPal for tangible goods and services but I had no idea how to go about [...]]]></description>
			<content:encoded><![CDATA[<p>A core feature of <strong>RandomClipart.com</strong> is the ability for customers to instantly download clipart files after checkout. My previous web development projects have taught me PHP, XHTML, CSS and MySQL and I&#8217;ve also had cause to integrate shopping carts with PayPal for tangible goods and services but I had no idea how to go about writing my own instant download script. A key requirement of any instant download script is security: original files must never be made accessible without a valid transaction. With so much at stake I didn&#8217;t want to risk writing my own script and making a costly mistake so I began to look for and review third-party digital download scripts and services.</p>
<p><span id="more-5"></span></p>
<p>The first option I looked at was an online service called <a href="https://www.payloadz.com/">PayLoadz</a>. I&#8217;d come across this site quite a while before I&#8217;d even started planning RandomClipart.com and thought it&#8217;d be worth checking out again. A PayLoadz account comes with a fixed amount of secure server space for you to upload your files. Your products are then promoted on your own website before handing over to PayPal to complete checkout. A successful PayPal transaction triggers PayLoadz to email download links for purchased products to your customer, with copies and invoices for yourself. Download links are obviously hashed to protect the original files and prevent repeat downloads and link sharing.</p>
<p>At first glance PayLoadz seemed to be an ideal solution but on closer inspection there were a number of problems. Firstly RandomClipart.com is database driven and I didn&#8217;t want to be manually uploading new clipart to PayLoadz as and when it was made. Secondly the amount of disc space PayLoadz offers would at some point become restrictive and costly to upgrade. And lastly, but most importantly, I didn&#8217;t want to be giving away a slice of my income to someone for something that I could probably achieve myself, ableit with a third-party script.</p>
<p>Further searches turned up a script called <a href="http://www.dlguard.com/dlginfo/index.php">DLGuard</a>. DLGuard at the time of writing costs $127 for a double install licence and requires PHP and MySQL. Having read all about the features and checking the requirements I bought a copy and after a straight-forward installation (it comes with a Windows installer to install to your server from the desktop) began configuration. I have to  say that DLGuard is an extremely well written and documented piece of software but after 30 minutes or so of playing around with the settings I began to realise this script wasn&#8217;t going to work for RandomClipart.com.</p>
<p>The main problem was that DLGuard supposes it&#8217;s creating an e-commerce site from your product database and even wants to handle the shopping cart and product pages for you. Although nearly everything is customisable with templates it became apparent that the secure download functionality I needed was only a fraction of what was on offer. Rather than cripple such a good piece of software to suit my limited needs I decided to ask for a refund, which was kindly paid in full, and look elsewhere for a simpler, bare bones script that I could fully integrate into my existing website.</p>
<p>Eventually I came across a script called <a href="http://www.shareasale.com/r.cfm?B=12671&amp;U=240621&amp;M=3826">LinkLok from VibraLogix</a>. At the time of writing this script costs $29.95 for a single domain install and comes with one year&#8217;s support. The core of LinkLok consists of just one PHP file and comes in several different flavours depending on your payment processor. As I already have experience of PayPal integrations and a PayPal account I chose LinkLok for PayPal. The beauty of LinkLok is that you can make it as simple or as complicated as you like. Products can be defined in an array, a text file or a MySQL database and there are dozens of customisation options including link expiry, IP blocking and download limits. The documentation is extensive and provides step-by-step setup instructions, details of configuration options and notes on testing and troubleshooting. You can even test out the script by downloading the PDF manual from the website.</p>
<p>If you&#8217;re looking for a straight-forward, customisable PHP digital download script or link protector that can be easily integrated into your existing site to enable you to securely sell intangible goods I can thoroughly recommend <a href="http://www.shareasale.com/r.cfm?B=12671&amp;U=240621&amp;M=3826">LinkLok from Vibralogix</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.randomclipart.com/blog/web-development/digital-download-protection-secure-download-scripts-5.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Creating an RSS Feed using PHP, MySQL &#038; Apache</title>
		<link>http://www.randomclipart.com/blog/web-development/creating-an-rss-feed-using-php-mysql-4.html</link>
		<comments>http://www.randomclipart.com/blog/web-development/creating-an-rss-feed-using-php-mysql-4.html#comments</comments>
		<pubDate>Mon, 29 Oct 2007 12:52:20 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.randomclipart.com/blog/uncategorized/creating-an-rss-feed-using-php-mysql-4.html</guid>
		<description><![CDATA[With the main clipart gallery now functional I took some time to add an RSS feed of my latest clipart uploads. Although I have plenty of previous experience with PHP and MySQL I&#8217;d never really given much thought to the structure or creation of an RSS feed. After playing around with a few examples and [...]]]></description>
			<content:encoded><![CDATA[<p>With the main clipart gallery now functional I took some time to add an RSS feed of my latest clipart uploads. Although I have plenty of previous experience with PHP and MySQL I&#8217;d never really given much thought to the structure or creation of an RSS feed. After playing around with a few examples and following a few tutorials I had something that nearly worked. The problem was the examples and tutorials I found all had bits that worked and bits that didn&#8217;t. After figuring out precisely how to make an RSS feed with PHP and MySQL I thought it worth noting down.<span id="more-4"></span></p>
<p>The following assumes you have previous experience with PHP and MySQL and just want a simple cut and paste example. Most of   the code is self explanatory but I will add notes regarding specific issues I encountered.</p>
<p>The first thing to make clear is that an RSS feed is simply a dynamic web page in XML format with specific tags. If you have any experience coding dynamic web pages then you&#8217;ll easily be able to rework the code below to create your own RSS feed by following these steps:</p>
<p>1. Create a new file called <strong>rss.xml</strong> in a suitable directory on your website.</p>
<p>2. Create or edit an .htaccess file in this directory with the following command:</p>
<p><code>AddHandler application/x-httpd-php xml</code></p>
<p>This will allow your web server to parse the PHP in your <strong>rss.xml</strong> file.</p>
<p>3. Add the following code to your <strong>rss.xml</strong> file and edit as appropriate:</p>
<p><code>&lt;?php<br />
header('Content-type: text/xml');<br />
echo '&lt;?xml version="1.0" encoding="utf-8"?&gt;';<br />
echo '&lt;rss version="2.0"<br />
xmlns:content="http://purl.org/rss/1.0/modules/content/"<br />
xmlns:wfw="http://wellformedweb.org/CommentAPI/"<br />
xmlns:dc="http://purl.org/dc/elements/1.1/"&gt;';<br />
echo '&lt;channel&gt;';<br />
echo '&lt;title&gt;YOUR FEED TITLE&lt;/title&gt;';<br />
echo '&lt;description&gt;YOUR FEED DESCRIPTION&lt;/description&gt;';<br />
echo '&lt;link&gt;YOUR SITE URL&lt;/link&gt;';<br />
echo '&lt;copyright&gt;YOUR COPYRIGHT NOTICE&lt;/copyright&gt;';<br />
echo '&lt;language&gt;en&lt;/language&gt;';<br />
mysql_connect('YOUR_DATABASE_HOST', 'YOUR_DATABASE_USER', 'YOUR_DATABASE_PASSWORD');<br />
@mysql_select_db('YOUR_DATABASE');<br />
$query = ('SELECT your_id, your_title, your_description, UNIX_TIMESTAMP(your_date) AS your_date FROM your_table ORDER BY   your_date DESC LIMIT 0,15');<br />
$result = mysql_query($query);<br />
while($row = mysql_fetch_array($result)) {<br />
echo '&lt;item&gt;';<br />
echo '&lt;title&gt;'.$row['your_title'].&#8217;&lt;/title&gt;&#8217;;<br />
echo &#8216;&lt;description&gt;&lt;![CDATA['.$row['your_description'].&#8217;]]&gt;&lt;/description&gt;&#8217;;<br />
echo &#8216;&lt;link&gt;ITEM_URL&lt;/link&gt;&#8217;;<br />
echo &#8216;&lt;guid&gt;UNIQUE_ID_(ITEM_URL)&lt;/guid&gt;&#8217;;<br />
echo &#8216;&lt;pubDate&gt;&#8217;.strftime( &#8220;%a, %d %b %Y %T GMT&#8221; , $row['your_date']).&#8217;&lt;/pubDate&gt;&#8217;;<br />
echo &#8216;&lt;/item&gt;&#8217;;<br />
}<br />
mysql_close();<br />
echo &#8216;&lt;/channel&gt;&#8217;;<br />
echo &#8216;&lt;/rss&gt;&#8217;;<br />
?&gt;<br />
</code><br />
Important things to remember:</p>
<ol>
<li>An RSS feed is limited to 15 items so ensure your query returns no more than 15 rows.</li>
<li>Special characters need to be encoded with entity numbers not entity names.</li>
<li>Wrapping a &lt;![CDATA[ ]]&gt; section around your description will allow you to include HTML markup in your item description. Use in other fields if needed.</li>
<li>The date format requires a time zone which can be returned with the <strong>%Z</strong> parameter. I have hard coded <strong>GMT</strong> because occasionally BST will be returned by %Z and BST is not supported.</li>
</ol>
<p>4. Upload your <strong>rss.xml</strong> file to your website and point your feed reader at its location. If everything went to plan then you should see your brand new RSS feed! If it doesn&#8217;t work or things look weird then use this <a title="RSS Feed Validator" href="http://feedvalidator.org/">Feed Validator</a> to check for errors. Good luck!</p>
<p>Here is the <a title="New Clipart RSS Feed" href="http://www.randomclipart.com/rss.xml">RSS feed </a>I created.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.randomclipart.com/blog/web-development/creating-an-rss-feed-using-php-mysql-4.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>RandomClipart.com Launches!</title>
		<link>http://www.randomclipart.com/blog/news/randomclipart-launches-1.html</link>
		<comments>http://www.randomclipart.com/blog/news/randomclipart-launches-1.html#comments</comments>
		<pubDate>Sun, 14 Oct 2007 13:32:20 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
		
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I&#8217;m Stephen. RandomClipart.com is the latest and greatest outlet for my illustration, coding and web design cravings. My intention is to create a website that will provide valuable benefits for both myself and visitors. I&#8217;m already enjoying creating the site and adding content, I hope you also find something of value here.
The primary aspect [...]]]></description>
			<content:encoded><![CDATA[<p><a style="margin: 0px auto; display: block" title="Cartoon Champagne Clip Art" href="http://www.randomclipart.com/clipart/cartoon-champagne-bottle-1003.html"><img title="Cartoon Champagne Bottle" src="http://www.randomclipart.com/clipart/thumbs/cartoon-champagne-bottle-1003.png" alt="Cartoon Champagne Bottle" width="180" height="180" align="left" /></a>Hi, I&#8217;m Stephen. <strong>RandomClipart.com</strong> is the latest and greatest outlet for my illustration, coding and web design cravings. My intention is to create a website that will provide valuable benefits for both myself and visitors. I&#8217;m already enjoying creating the site and adding content, I hope you also find something of value here.</p>
<p>The primary aspect of <strong>RandomClipart.com </strong>is to provide <a href="http://www.randomclipart.com/">high quality, royalty free, vector clipart and illustration</a> for sale at competitive prices. At the date of this post there are only twelve clipart pictures in the gallery so obviously I have my work cut out. However, nothing is a greater motivator than an empty website so I hope to be adding new clipart and illustrations on a regular basis. My long term goal is a clipart gallery featuring hundreds (and eventually thousands - eek!) of useful, original clipart images. Check back in year or so to see how that works out!<span id="more-1"></span></p>
<p>The secondary aspect of <span style="font-weight: bold">RandomClipart.com</span> is this blog. I&#8217;ve never contributed to a blog before and I&#8217;m not exactly sure what I&#8217;m going to be writing about. There&#8217;ll probably be the odd bit of news, new clipart, sales, site features and such, but I&#8217;d also like to add more useful posts about illustration, web design and other pet topics. If any of that materialises then this is where you&#8217;ll find it.</p>
<p>With <span style="font-weight: bold">RandomClipart.com</span> finally live it&#8217;s time for me to stop coding and tweaking css and start drawing and blogging. Looking at the sparse clipart gallery, I think some drawing is in order.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.randomclipart.com/blog/news/randomclipart-launches-1.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
