<?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>Web Tutorials, Resources, Web Trends, Code Snippets, Php scripts, Opensource, Ecommerce, Cms, Html, Xhtml scripts, Themes, Templates, Css, Psd tuts, Photoshop,tuts,web,website,tutorial,web tutorial &#187; Scripts</title>
	<atom:link href="http://www.freshtuts.net/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freshtuts.net</link>
	<description>Web design resources snippets of codes like php css html xml xhtml and tutorials on howto design sites and freebies of icons templates psd files psd templates themes</description>
	<lastBuildDate>Fri, 16 Dec 2011 19:44:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>For radio station DJ&#8217;s or Shows</title>
		<link>http://www.freshtuts.net/for-radio-station-djs-or-shows/</link>
		<comments>http://www.freshtuts.net/for-radio-station-djs-or-shows/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 14:18:11 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Php Scripts]]></category>
		<category><![CDATA[dj]]></category>
		<category><![CDATA[on air]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[show]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=4604</guid>
		<description><![CDATA[
The following script will allow radio station&#8217;s website to display ...]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-4605" src="http://www.freshtuts.net/wp-content/uploads/2010/03/OnAir.jpg" alt="OnAir" width="400" height="300" /></p>
<p>The following script will allow radio station&#8217;s website to display the show or dj&#8217;s that is currently on air.<br />
To use this code make sure your page has .php extention not .html</p>
<p><strong>Paste the code in the region you would like to display the ON AIR dj or the show.</strong></p>
<pre class="brush: php">&lt;?php
$h = date(&#039;G&#039;); //set variable $h to the hour of the day
$d = date(&#039;w&#039;); //set variable $d to the day of the week.
$year = date(&#039;Y&#039;); //set variable $year to the current year
//G is the date key for hours in 24 format (not 12), with no leading 0s, like 02.
// Adjust 2 hour offset for MST below.
$h = $h-2;

// MONDAY SCHEDULE
if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 4) $img = &#039;img/hosts/petem.jpg&#039;;
else if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; <img src='http://www.freshtuts.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> $img = &#039;img/hosts/angelaa.jpg&#039;;
else if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 8 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 12) $img = &#039;img/hosts/shonw.jpg&#039;;
else if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 12 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 13) $img = &#039;img/hosts/pottsie.jpg&#039;;
else if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 13 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 15) $img = &#039;img/hosts/mikef.jpg&#039;;
else if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 15 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 19) $img = &#039;img/hosts/lizzy.jpg&#039;;
else if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 19) $img = &#039;img/hosts/danic.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 0) $img = &#039;img/hosts/danic.jpg&#039;;

// TUESDAY SCHEDULE
if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 4) $img = &#039;img/hosts/petem.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; <img src='http://www.freshtuts.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> $img = &#039;img/hosts/angelaa.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 8 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 12) $img = &#039;img/hosts/shonw.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 12 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 13) $img = &#039;img/hosts/pottsie.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 13 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 15) $img = &#039;img/hosts/mikef.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 15 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 17) $img = &#039;img/hosts/lizzy.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 17 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 20) $img = &#039;img/hosts/westmar.jpg&#039;;
else if ($d == 2 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 20) $img = &#039;img/hosts/danic.jpg&#039;;
else if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 0) $img = &#039;img/hosts/danic.jpg&#039;;

// WEDNESDAY SCHEDULE
if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 4) $img = &#039;img/hosts/petem.jpg&#039;;
else if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; <img src='http://www.freshtuts.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> $img = &#039;img/hosts/angelaa.jpg&#039;;
else if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 8 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 12) $img = &#039;img/hosts/shonw.jpg&#039;;
else if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 12 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 13) $img = &#039;img/hosts/pottsie.jpg&#039;;
else if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 13 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 15) $img = &#039;img/hosts/mikef.jpg&#039;;
else if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 15 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 19) $img = &#039;img/hosts/lizzy.jpg&#039;;
else if ($d == 3 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 19) $img = &#039;img/hosts/danic.jpg&#039;;
else if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 0) $img = &#039;img/hosts/danic.jpg&#039;;

// THURSDAY SCHEDULE
if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 4) $img = &#039;img/hosts/petem.jpg&#039;;
else if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; <img src='http://www.freshtuts.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> $img = &#039;img/hosts/angelaa.jpg&#039;;
else if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 8 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 12) $img = &#039;img/hosts/shonw.jpg&#039;;
else if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 12 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 13) $img = &#039;img/hosts/pottsie.jpg&#039;;
else if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 13 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 15) $img = &#039;img/hosts/mikef.jpg&#039;;
else if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 15 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 19) $img = &#039;img/hosts/lizzy.jpg&#039;;
else if ($d == 4 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 19) $img = &#039;img/hosts/danic.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 0) $img = &#039;img/hosts/danic.jpg&#039;;

// FRIDAY SCHEDULE
if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 4) $img = &#039;img/hosts/petem.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; <img src='http://www.freshtuts.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> $img = &#039;img/hosts/angelaa.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 8 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 10) $img = &#039;img/hosts/shonw.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 10 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 12) $img = &#039;img/hosts/patm.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 12 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 13) $img = &#039;img/hosts/pottsie.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 13 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 15) $img = &#039;img/hosts/edp.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 15 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 18) $img = &#039;img/hosts/lizzy.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 18 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 20) $img = &#039;img/hosts/jeremyb.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 20 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 22) $img = &#039;img/hosts/exfyl.jpg&#039;;
else if ($d == 5 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 22) $img = &#039;img/hosts/stickyb.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 0) $img = &#039;img/hosts/stickyb.jpg&#039;;

// SATURDAY SCHEDULE
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 4) $img = &#039;img/hosts/techtronic.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 5) $img = &#039;img/hosts/pmw.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 5 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; <img src='http://www.freshtuts.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> $img = &#039;img/hosts/geoffh.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 8 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 9) $img = &#039;img/hosts/tomf.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 9 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 10) $img = &#039;img/hosts/jimmyj.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 10 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 11) $img = &#039;img/hosts/jasonr.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 11 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 12) $img = &#039;img/hosts/hollyk.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 12 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 13) $img = &#039;img/hosts/tomt.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 13 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 14) $img = &#039;img/hosts/seanf.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 14 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 15) $img = &#039;img/hosts/nutmeg.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 15 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 17) $img = &#039;img/hosts/aaron_jenny.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 17 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 19) $img = &#039;img/hosts/rayg_adrians.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 19 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 22) $img = &#039;img/hosts/mattb.jpg&#039;;
else if ($d == 6 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 22) $img = &#039;img/hosts/hairballj.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 0) $img = &#039;img/hosts/hairballj.jpg&#039;;

// SATURDAY SCHEDULE
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 0 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 2) $img = &#039;img/hosts/darrelm.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 2 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 4) $img = &#039;img/hosts/techtronic.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 4 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 5) $img = &#039;img/hosts/bigjon.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 5 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 6) $img = &#039;img/hosts/joebear.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 6 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; <img src='http://www.freshtuts.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> $img = &#039;img/hosts/russh.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 8 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 9) $img = &#039;img/hosts/ronk.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 9 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 10) $img = &#039;img/hosts/rockpoint.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 10 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 11) $img = &#039;img/hosts/churchatqc.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 11 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 12) $img = &#039;img/hosts/desertcf.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 12 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 16) $img = &#039;img/hosts/kristenm.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 16 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 17) $img = &#039;img/hosts/cdogg.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 17 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 18) $img = &#039;img/hosts/snarf_daff.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 18 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 19) $img = &#039;img/hosts/sonicsociety.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 19 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 21) $img = &#039;img/hosts/jscott.jpg&#039;;
else if ($d == 0 &amp;amp;amp;&amp;amp;amp; $h &amp;gt;= 21) $img = &#039;img/hosts/ghostlytalk.jpg&#039;;
else if ($d == 1 &amp;amp;amp;&amp;amp;amp; $h &amp;lt; 0) $img = &#039;img/hosts/ghostlytalk.jpg&#039;;
?&gt;</pre>
<div style='display:none' id="post-refEl-4604"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/for-radio-station-djs-or-shows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DotNetNuke Makes It Easier For You</title>
		<link>http://www.freshtuts.net/dotnetnuke-makes-it-easier-for-you/</link>
		<comments>http://www.freshtuts.net/dotnetnuke-makes-it-easier-for-you/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 12:14:51 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[dot]]></category>
		<category><![CDATA[dotnetnuke]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[nuke]]></category>
		<category><![CDATA[open-source]]></category>
		<category><![CDATA[web applications]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=4418</guid>
		<description><![CDATA[DotNetNuke Community Edition is a leading free open-source content management ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dotnetnuke.com" target="_blank">DotNetNuke</a> Community Edition is a leading free open-source content management system for ASP.NET websites.  With DotNetNuke, you can quickly and effectively deploy dynamic web applications with almost no technical knowledge, however if you are an ASP.NET developer, you can customize it in the way you want to fulfill your specific needs.  Whether you need to deploy a simple website or a feature-rich dynamic application, DotNetNuke cater your needs in the way you want.</p>
<p>Unlike legacy web applications, you don’t need services of a web developer in order to make changes in your content and locations of different modules.  You can easily achieve this task on-the-fly by logging into the administration control panel.</p>
<p><a href="http://www.dotnetnuke.com" target="_blank"><img src="http://www.freshtuts.net/wp-content/uploads/2010/03/f1b5cd7134dnn1.jpg.jpg" alt="" /></a></p>
<p>Since DotNetNuke is open-source, you can enhance and extend the functionality of it if you are familiar with ASP.NET programming.  In addition to the existing modules in DotNetNuke, you can develop custom modules over it or use from a number of pre-developed modules by different third party vendors to extend the functionality as per your business needs.</p>
<p><a href="http://www.dotnetnuke.com" target="_blank"><img src="http://www.freshtuts.net/wp-content/uploads/2010/03/56ed7cc501dnn2.jpg.jpg" alt="" /></a></p>
<p>DotNetNuke is the world’s most widely adopted framework for building web applications on Microsoft Windows platform. DotNetNuke powers over 500,000 portals, web applications and public web sites. It has a large open-source community to support the development of the system.  Furthermore, you can find number of help and support resources and books that help you find solutions to your problems while you work.</p>
<p><img src="http://feeds.feedburner.com/~r/SmashingApps/~4/d9mtPZ-fMG0" alt="" width="1" height="1" /></p>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/03/f1b5cd7134dnn1.jpg.jpg" alt="" /></p>
<p>Visit link:<br />
<a title="DotNetNuke Makes It Easier For You To Build Feature-Rich, Interactive Web Sites And Applications" href="http://feedproxy.google.com/~r/SmashingApps/~3/d9mtPZ-fMG0/dotnetnuke-makes-it-easier-for-you-to-build-feature-rich-interactive-web-sites-and-applications.html" target="_blank">DotNetNuke Makes It Easier For You To Build Feature-Rich, Interactive Web Sites And Applications</a></p>
<div style='display:none' id="post-refEl-4418"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/dotnetnuke-makes-it-easier-for-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need Interactive Charts. Try Highcharts</title>
		<link>http://www.freshtuts.net/need-interactive-charts-for-your-personal-website-try-highcharts/</link>
		<comments>http://www.freshtuts.net/need-interactive-charts-for-your-personal-website-try-highcharts/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 10:46:57 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Ajax Scripts]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[libraries]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=4557</guid>
		<description><![CDATA[If you have a non-commercial website and you need to ...]]></description>
			<content:encoded><![CDATA[<p>If you have a non-commercial website and you need to add charting capabilities in your website, Highcharts may suit your needs.  Highcharts is a free charting control developed purely with Javascript so that you can show interactive charts on your website.  Since its purely developed with Javascript, you don’t need any special server side technologies like ASP.NET or PHP and no client-side plug-ins are required like Flash or Silverlight.</p>
<p>Highcharts is dynamic in nature.  With the support of jQuery and Ajax API, you can dynamically set axes and points of charts at runtime, hence making Highcharts an excellent choice for demonstrating real-time data like Stocks and Forex.</p>
<p><a href="http://www.highcharts.com" target="_blank"><img src="http://www.freshtuts.net/wp-content/uploads/2010/03/077b3b7651arts11.jpg.jpg" alt="" /></a></p>
<p>It works with all major web browsers including iPhone and supports a number of chart types, such as:</p>
<ul>
<li>Line</li>
<li>SplineArea</li>
<li>Areaspline</li>
<li>Column</li>
<li>Bar</li>
<li>Pie</li>
<li>Scatter</li>
</ul>
<p>Implementing Highcharts just require some basic understanding of Javascript and you don’t need to be an expert programmer having special programming skills in specific languages.  The syntax is very simple and the integration is almost seamless.</p>
<p><a href="http://www.highcharts.com" target="_blank"><img src="http://www.freshtuts.net/wp-content/uploads/2010/03/94b90ce1b1arts21.jpg.jpg" alt="" /></a></p>
<p>In addition to all this, Highcharts gives your website an enhanced user experience with interactive moving charts with cool designs and eye-catching colors.</p>
<p><img src="http://feeds.feedburner.com/~r/SmashingApps/~4/8SEecjFk36k" alt="" width="1" height="1" /></p>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/03/077b3b7651arts11.jpg.jpg" alt="" /></p>
<p>Link:<br />
<a title="Need Interactive Charts For Your Personal Website?  Try Highcharts" href="http://feedproxy.google.com/~r/SmashingApps/~3/8SEecjFk36k/need-interactive-charts-for-your-personal-website-try-highcharts.html" target="_blank">Need Interactive Charts For Your Personal Website?  Try Highcharts</a></p>
<div style='display:none' id="post-refEl-4557"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/need-interactive-charts-for-your-personal-website-try-highcharts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started with most popular jQuery libraries</title>
		<link>http://www.freshtuts.net/getting-started-with-jquery/</link>
		<comments>http://www.freshtuts.net/getting-started-with-jquery/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 13:12:51 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[2009]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=2574</guid>
		<description><![CDATA[The web development scene is moving forward at a lightning-fast ...]]></description>
			<content:encoded><![CDATA[<p>The web development scene is moving forward at a lightning-fast  pace, and it’s imperative that developers continue to keep their  skills fresh. If you’ve been involved in front-end design or  development in any form over the past five years or so, then it’s very  likely that you’ve experimented at some point with one of the popular  JavaScript libraries, many of which have become quite prominent and are  now used on a number of large commercial websites.</p>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/40dda558aaimage.jpg.jpg" alt="Getting Started with jQuery" width="550" height="250" /></p>
<p><span> </span></p>
<p>In this article, I’ll be introducing and laying the groundwork for  advanced JavaScript development with one of the most popular JavaScript  libraries available: <a href="http://jquery.com">jQuery</a>.</p>
<p>Although there are many beginning tutorials online that can provide a  great starting point for jQuery development, in this article I’m hoping  to go beyond just quick-start syntax and instead provide a solid  overview of jQuery and discuss the benefits of using such a library. Of  course, much of this information–outside of the syntax and other  jQuery-specific details–will be applicable to any JavaScript library.</p>
<h3>Why a JavaScript library?</h3>
<p>To quote the official jQuery slogan: &#8220;Write less, do more.&#8221; The role  of a web developer is to create code that determines what will result  from a user’s interaction with a web page. Web developers should not  have to spend hours debugging browser quirks. Instead, they should be  free to deal solely with the actions and the results. This is where a JavaScript library comes into play.</p>
<h4>Overcoming browser differences</h4>
<p>Different browsers handle DOM manipulation, transparency effects,  and animation in different ways, requiring, in some cases, reams of  code just to create a simple effect. Using a JavaScript library allows  you to completely bypass all of those challenges, giving you access to  an API (Application Programming Interface) that deals directly with the  tasks you actually want to accomplish. All the challenges and issues  common to JavaScript are dealt with behind the scenes, allowing you  to integrate functionality without wondering whether or not it will  work in a particular browser.</p>
<h4>Unobtrusive JavaScript</h4>
<p>Another impelling reason to use a JavaScript library is that all  libraries allow you to include JavaScript in your pages unobtrusively,  thus keeping your <em>behavior</em> layer (the JavaScript) separate from the <em>content</em> and <em>presentation</em> layers (the XHTML and CSS).</p>
<h4>Accomplishing complex tasks with ease</h4>
<p>Finally, a very powerful feature of any JavaScript library is its  ability to manipulate any element or set of elements on a web page with  just one line of code. Take, for example, the following HTML:</p>
<pre>
<div class="container">
<ul class="list">
<li>Text Here</li>
<li>Text Here</li>
<li>Text Here</li>
<li>Text Here</li>
<li>Text Here</li>
</ul>
</div>
</pre>
<p>Let’s say you wanted to use JavaScript to change the background  color of the first list item element (<code> </code></p>
<li>) in the unordered list above.  Using pure JavaScript, your code would look something like this:
<pre>var myListCollection = document.getElementsByTagName("ul");
  for (var i = 0; i &lt; myListCollection.length; i++) {
    if (myListCollection[i].className === "list") {
      myListCollection[i].childNodes[0].style.backgroundColor = "blue";
    }
  }</pre>
<p>Using jQuery, you can accomplish the same thing with just one, easy-to-maintain line of code:</p>
<pre>$("ul.list li:first-child").css("background-color, "blue");</pre>
<h4>Further reading</h4>
<ul>
<li><a href="http://javascript.about.com/od/hintsandtips/a/liborself.htm">JavaScript Library or Code Yourself</a></li>
<li><a href="http://simonwillison.net/static/2008/xtech/">Unobtrusive JavaScript with jQuery – Presentation</a></li>
</ul>
<h3>Understand CSS concepts</h3>
<p>One area that is imperative to powerful jQuery development, is  strong knowledge of CSS. The reason for this is because jQuery often  utilizes CSS-based syntax to manipulate DOM elements. Here are some  concepts that you should be quite familiar with before diving into  extensive jQuery development:</p>
<ul>
<li>Type selectors</li>
<li>Class selectors</li>
<li>ID selectors</li>
<li>Descendant Selectors</li>
<li>Child Selectors</li>
<li>Attribute Selectors</li>
<li>CSS Specificity</li>
<li>The Cascade &amp; Inheritance</li>
</ul>
<p>Most of the above CSS concepts should already be very familiar to  any modern-day front-end developer, since any CSS layout would utilize  these. jQuery not only incorporates the basic selectors (type, class,  and ID), but it also uses descendant and child selectors, which aren’t  supported by all currently-used browsers. But with jQuery, due to its  built-in browser normalization, all selectors are supported equally.</p>
<p>Understanding that jQuery incorporates CSS syntax when accessing  elements will greatly enhance your ability to quickly and easily create  powerful JavaScript applications with jQuery.</p>
<ul>
<li><a href="http://www.w3.org/TR/CSS2/selector.html">CSS Selectors at W3.org</a></li>
<li><a href="http://www.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors/">Taming Advanced CSS Selectors</a></li>
</ul>
<h3>Understand JavaScript concepts</h3>
<p>In order to make full use of jQuery, it is a good idea to learn  certain JavaScript concepts. Sure, you can do a ton of stuff in jQuery  without knowing much about some of the concepts listed below, but  you’ll have a bigger advantage in your jQuery development if you take  the time to understand a few fundamentals, including:</p>
<ul>
<li>Object creation</li>
<li>Properties of objects</li>
<li>Object literals</li>
<li>Functions as methods</li>
<li>Anonymous functions</li>
<li>Closures</li>
</ul>
<p>Again, it is not necessary to fully understand any of the above  concepts in order to start working with jQuery, but your abilities with  jQuery’s API will increase greatly if you understand one or more of the  above concepts.</p>
<ul>
<li><a href="http://www.devarticles.com/c/a/JavaScript/ObjectOriented-JavaScript-An-Introduction-to-Core-Concepts/">Object-Oriented JavaScript: An Introduction to Core Concepts</a></li>
<li><a href="http://www.webreference.com/programming/javascript/object-oriented_javascript/">Object-Oriented Javascript</a> at Webreference.com</li>
</ul>
<h3>The jQuery source code</h3>
<p>Before getting started with any jQuery development, you’ll first have to <a href="http://docs.jquery.com/Downloading_jQuery">download the latest version</a> of the jQuery library and include it in your pages:</p>
<pre><script src="js/jquery-1.3.2.min.js" type="text/javascript"><!--mce:0--></script></pre>
<p>The above line of HTML should appear before any actual jQuery code, otherwise you’ll get errors.</p>
<p>Alternatively, instead of hosting the source code yourself, you could link directly to the most recent version on the <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery">Google Ajax Libraries API</a> which can save you some server resources. (read <a href="http://sixrevisions.com/web-applications/website-features-that-you-can-easily-offload/">more ways to offload website features</a>).</p>
<h3>jQuery syntax</h3>
<p>Now that you have an overview of the benefits of jQuery, along with  some understanding of concepts involved, let’s take a look at some  syntax to get us started with this powerful library.</p>
<h4>The jQuery wrapper</h4>
<p>The jQuery wrapper is the function that is at the core of all jQuery  commands. I used it earlier in one of the examples above. Here it is  again:</p>
<pre>$("li a");</pre>
<p>The <code>$</code> symbol is an alias for the jQuery function, so the above line of code could alternatively be written:</p>
<pre>jQuery("li a");</pre>
<p>But, for obvious reasons (e.g. to keep your code terse), you’ll rarely see that syntax.</p>
<p>The jQuery function shown in the above two examples  returns an object containing an array of the DOM elements specified  inside the parentheses (in this case, all anchor tags that are nested  inside of <code> </code></li>
<li> tags). Of course, in both examples  above, we haven’t specified an action; all we’re doing is returning  those DOM elements, which does nothing. In the next section, we’ll add  methods that will act on the group of elements we’re targeting.<br />
<h4>jQuery commands</h4>
<p>jQuery’s API includes easy access to effects and other actions via  built-in methods that would normally take dozens of lines of code to  accomplish in a cross-browser fashion with pure JavaScript. For  example, let’s add a &#8220;fade out&#8221; method to the code from the previous  examples:</p>
<pre>$("li a")<strong>.fadeOut()</strong>;</pre>
<p>The above line of code &#8220;fades out&#8221; all anchor tags on the page that are nested inside of <code> </code></li>
<li> tags. If we want to fade the anchors back in again, we just use the <code>fadeIn()</code> method:
<pre>$("li a")<strong>.fadeIn()</strong>;</pre>
<h4>Chaining commands</h4>
<p>jQuery also allows developers to chain commands, stringing one after  another. So, we could combine the previous two examples, as follows:</p>
<pre>$("li a").fadeOut().fadeIn();</pre>
<p>The above code will fade out all anchor tags nested within list  items, then immediately fade them back in. The number of chained items  is infinite (or within reasonably set limits), allowing for numerous  commands to work on the same group of elements, each happening in  succession.</p>
<p>That’s just a small sampling of what’s possible with jQuery, and how  easy it is to accomplish tasks that would normally take many lines of  code, and a lot of browser testing. Although you’ll still do browser  testing when running jQuery code, the results will virtually always be  the same: cross-browser, unobtrusive JavaScript that’s easy to write  and easy to maintain.</p>
<h4>Running code when the DOM is ready</h4>
<p>Earlier we touched on the concept of unobtrusive JavaScript, and how  jQuery is written to allow your scripts to remain separate from content  and presentation. So far, the code examples we’ve discussed would run  fine as long as they were included at the bottom of an HTML page. If,  on the other hand, they were included in the head of the document, they  would fail to work because, at that point, the document tree has not  yet rendered.</p>
<p>jQuery allows us to run our code only when the DOM is ready. This is done by means of the <code>$(document).ready</code> handler. The beauty of this handler is that it doesn’t make the code  wait until the entire page finishes loading, as would be the case with  a typical <code>window.onload</code> event. With the (document).ready  handler, your code will run as soon as the DOM tree is finished  rendering, before all images and other media have finished loading,  thus minimizing load time.</p>
<p>Let’s try running our previous code example when the DOM is ready:</p>
<pre>$(document).ready(function(){
  $("li a").fadeOut().fadeIn();
});</pre>
<p>The above code tells jQuery to run an anonymous function when the  document tree is done rendering. The anonymous function contains the  code we saw previously, which faded our anchors out, then immediately  faded them back in again. This code could be included in the  of the document, near the bottom of the page, or anywhere else, and it would run exactly the same way.</p>
<p>The &#8220;ready&#8221; event is just one of the many events available through jQuery’s API. Others include <code>click</code>, <code>dblclick</code>, <code>load</code>, <code>blur</code>, <code>keydown</code>, <code>submit</code>, and more.</p>
<h4>Further reading</h4>
<ul>
<li><a href="http://docs.jquery.com/Main_Page">jQuery Documentation</a></li>
<li><a href="http://docs.jquery.com/Events">Event-Related Functions in the jQuery API</a></li>
<li><a href="http://docs.jquery.com/Events/ready">The jQuery Ready Event</a></li>
</ul>
<h3>Conclusion</h3>
<p>jQuery is capable of so much more, and I’ve only just begun  demonstrating its power and simplicity. But I think this suffices to  provide a good overview, with some syntax basics, thus preparing  beginning jQuery developers for easy-to-write and practical JavaScript  code.</p>
<h3>Further reading</h3>
<ul>
<li><a href="http://docs.jquery.com/Tutorials">jQuery General Tutorials</a></li>
<li><a href="http://www.noupe.com/tutorial/51-best-of-jquery-tutorials-and-examples.html">51+ jQuery Tutorials</a></li>
<li><a href="http://webitect.net/coding/30-jquery-tutorials-for-complete-beginners/">30 jQuery Tutorials for Complete Beginners</a></li>
</ul>
<h3>Related Content</h3>
<ul>
<li><a href="http://sixrevisions.com/tutorials/javascript_tutorial/create-a-slick-and-accessible-slideshow-using-jquery/">Create a Slick and Accessible Slideshow Using jQuery</a></li>
<li><a href="http://sixrevisions.com/resources/14-jquery-plugins-for-working-with-images/">14 jQuery Plugins for Working with Images</a></li>
<li><a href="http://sixrevisions.com/javascript/40-exceptional-jquery-interface-techniques-and-tutorials/">40 Exceptional jQuery Interface Techniques and Tutorials</a></li>
<li><em>Related categories</em>: <a href="http://sixrevisions.com/category/javascript/">JavaScript</a> and Web <a href="http://sixrevisions.com/category/web-development/">Development</a></li>
</ul>
<h3>About the Author</h3>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/5bbec270f6small.jpg.jpg" alt="" width="80" height="80" /><span><strong>Louis Lazaris</strong> is a writer and freelance web developer based in  Toronto, Canada. He has 9 years of experience in the web development  industry and posts <a href="http://www.impressivewebs.com/articles/">web design articles</a> and <a href="http://www.impressivewebs.com/tutorials/">tutorials</a> on his blog, <a href="http://www.impressivewebs.com">Impressive Webs</a>. Follow Louis on <a href="http://twitter.com/ImpressiveWebs">Twitter</a> or contact him through <a href="http://www.impressivewebs.com/contact/">this form</a>.</span></p>
<div><a href="http://feeds.feedburner.com/~ff/SixRevisions?a=gKcaKYvPWew:wj46Z0bw_qA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/SixRevisions?i=gKcaKYvPWew:wj46Z0bw_qA:V_sGLiPBpWU" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=gKcaKYvPWew:wj46Z0bw_qA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=yIl2AUoC8zA" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=gKcaKYvPWew:wj46Z0bw_qA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=qj6IDK7rITs" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=gKcaKYvPWew:wj46Z0bw_qA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SixRevisions?i=gKcaKYvPWew:wj46Z0bw_qA:gIN9vFwOqvQ" border="0" alt="" /></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=gKcaKYvPWew:wj46Z0bw_qA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=7Q72WNTAKBA" border="0" alt="" /></a></div>
<p><img src="http://feeds.feedburner.com/~r/SixRevisions/~4/gKcaKYvPWew" alt="" width="1" height="1" /></p>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/40dda558aaimage.jpg.jpg" alt="" /></p>
<p>Read more here:<br />
<a title="Getting Started with jQuery" href="http://feedproxy.google.com/~r/SixRevisions/~3/gKcaKYvPWew/" target="_blank">Getting Started with jQuery</a></li>
<div style='display:none' id="post-refEl-2574"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/getting-started-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kentico CMS License &amp; 1-Year Maintenance</title>
		<link>http://www.freshtuts.net/giveaway-kentico-cms-license-1-year-maintenance/</link>
		<comments>http://www.freshtuts.net/giveaway-kentico-cms-license-1-year-maintenance/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 13:12:49 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Php Scripts]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Contests]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=2571</guid>
		<description><![CDATA[ Today, we are announcing an awesome giveaway: a full license to Kentico CMS which includes one-year maintenance/support. Read on to see how...]]></description>
			<content:encoded><![CDATA[<p>
<p>Today, we are announcing an awesome giveaway: a <strong>full license</strong> to <a href="http://www.kentico.com/home.aspx">Kentico CMS</a> which includes one-year maintenance/support.  Read on to see how you can participate and get a chance to win this awesome prize <strong>valued at $1,999</strong>!</p>
<p><a href="http://sixrevisions.com/contests/giveaway-1-year-subscription-to-kentico-cms/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/383adaf274veaway.jpg.jpg" width="550" height="200" alt="Giveaway: 1-Year Subscription to Kentico CMS" /></a></p>
<p><span></span></p>
<h3>What is Kentico CMS?</h3>
<p><a href="http://www.kentico.com/home.aspx">Kentico CMS</a> is a web content management system (CMS) solution providing a complete set of  features for building websites, community sites, intranets and online stores on  the Microsoft ASP.NET platform. It&#8217;s currently used by more than 4,000 websites  in 83 countries.</p>
<p>Some of the notable companies that use Kentico CMS include  Microsoft, McDonald&#8217;s, Vodafone, O2, Brussels Airlines, Audi, Mazda, Subaru,  Samsung, Gibson, Bayer, ESPN, Guinness, DKNY and more (see more of their big  clients <a href="http://www.kentico.com/Showcase/Our_clients.aspx">here</a>).</p>
<p>Read more about features of Kentico CMS on their site&#8217;s <a href="http://www.kentico.com/free-cms-asp-net.aspx">Features page</a>.</p>
<h3>Try Kentico CMS</h3>
<p>If you want to evaluate Kentico CMS, they offer you several  options:</p>
<h4><a href="http://www.kentico.com/freecms.aspx">Download the  Free version</a> of Kentico CMS</h4>
<p>The free version of Kentico CMS is free to download, and you can use it for any purpose, including commercial purposes.</p>
<h4><a href="http://www.kentico.com/Download/Trial-Version.aspx">Download  of Trial version</a> of Kentico CMS</h4>
<p>The trial version is fully functional for 30 days and will help you evaluate the Kentico CMS features.</p>
<h4>Get a <a href="http://www.kentico.com/Demo/VirtualLab.aspx">Virtual  Lab</a> set-up for you</h4>
<p>This will let you evaluate Kentico CMS without having  to install anything (they&#8217;ll set it up for you on the Kentico CMS servers).</p>
<h3>How to participate in the Kentico CMS giveaway</h3>
<p>In order to qualify for a chance to win the 1-year subscription  to Kentico CMS, just leave a comment below that answers the following question:</p>
<blockquote><p>What&#8217;s a <strong>Kentico CMS feature</strong> that  interests you the most?</p>
</blockquote>
<p>You can see the feature list of Kentico CMS on their site:</p>
<ul>
<li><a href="http://www.kentico.com/free-cms-asp-net.aspx">www.kentico.com/free-cms-asp-net.aspx</a></li>
</ul>
<h3>Kentico CMS giveaway details</h3>
<p>This giveaway ends on <strong>Tuesday,  January 12, 2010</strong>. After that date, commenting on this post will be disabled  and you&#8217;ll no longer be able to participate.</p>
<p>When leaving your answer, make sure to leave a valid email  address because this is the only way we&#8217;ll be able to notify you if you&#8217;ve won.  The winner will be selected at random using the same method as previous Six  Revisions giveaways (you can see the MySQL random query method that we use in <a href="http://sixrevisions.com/contests/the-winners-of-the-10000-business-cards-giveaway/">this  giveaway</a>).</p>
<p>You should subscribe to the <a href="http://feeds2.feedburner.com/SixRevisions">Six Revisions RSS feed</a> so  that when the announcement post has been published, you&#8217;ll get instantly  notified.</p>
<h3>Related Content</h3>
<ul>
<li><a href="http://sixrevisions.com/web-development/how-to-evaluate-what-cms-to-use/">How  to Evaluate What CMS to Use</a></li>
<li><a href="http://sixrevisions.com/web-applications/10-promising-content-management-systems/">10  Promising Content Management Systems</a></li>
<li><a href="http://sixrevisions.com/web-development/10-ways-to-cut-down-web-development-time/">10  Ways to Cut Down Web Development Time</a></li>
<li><em>Related categories</em>: <a href="http://sixrevisions.com/category/web-development/">Web Development</a> and <a href="http://sixrevisions.com/category/wordpress/">WordPress</a></li>
</ul>
<h3>About the Author</h3>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/6a3429dc3esmall.jpg.jpg" alt="" width="80" height="80" /><span><strong>Jacob Gube</strong> is the Founder and Chief Editor of <strong><a href="http://sixrevisions.com/">Six Revisions</a></strong>. He&#8217;s also a web developer/designer who specializes in front-end development (JavaScript, HTML, CSS) and PHP development. If you&#8217;d like to connect with him, head on over to the <a href="http://sixrevisions.com/contact/">contact page</a> and follow him on Twitter: <strong>@<a href="http://twitter.com/sixrevisions">sixrevisions</a></strong>.</span></p>
<div>
<a href="http://feeds.feedburner.com/~ff/SixRevisions?a=VjLKFUWOSKs:nLFd07n-ZaE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/SixRevisions?i=VjLKFUWOSKs:nLFd07n-ZaE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=VjLKFUWOSKs:nLFd07n-ZaE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=VjLKFUWOSKs:nLFd07n-ZaE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=VjLKFUWOSKs:nLFd07n-ZaE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SixRevisions?i=VjLKFUWOSKs:nLFd07n-ZaE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=VjLKFUWOSKs:nLFd07n-ZaE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=7Q72WNTAKBA" border="0"></img></a>
</div>
<p><img src="http://feeds.feedburner.com/~r/SixRevisions/~4/VjLKFUWOSKs" height="1" width="1" /></p>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/383adaf274veaway.jpg.jpg" /></p>
<p>Here is the original post:<br />
<a target="_blank" href="http://feedproxy.google.com/~r/SixRevisions/~3/VjLKFUWOSKs/" title="Giveaway: Kentico CMS License &amp; 1-Year Maintenance">Giveaway: Kentico CMS License &amp; 1-Year Maintenance</a></p>
<div style='display:none' id="post-refEl-2571"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/giveaway-kentico-cms-license-1-year-maintenance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SnackTools Makes Creating Rich Media Content Easy</title>
		<link>http://www.freshtuts.net/snacktools-makes-creating-rich-media-content-easy/</link>
		<comments>http://www.freshtuts.net/snacktools-makes-creating-rich-media-content-easy/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 13:12:48 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[from scratch]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[snacktools]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=2568</guid>
		<description><![CDATA[ Creating rich professional-level Flash ...]]></description>
			<content:encoded><![CDATA[<p>
<p>Creating rich professional-level Flash media components isn&#8217;t simple for the ordinary designer or developer who doesn&#8217;t have a strong command of Flash/Flex. And even if you were a Flash/Flex guru, you&#8217;re probably looking for ways to save time so that you can focus on other things.</p>
<p><a href="http://www.snacktools.com/" target="_blank">SnackTools</a>, a suite of webapps for creating Flash components, is here to help. SnackTools aims to bring non-Flash developers a way to create customized, sophisticated and impressive Flash media components without having to know how to code.</p>
<p><a href="http://sixrevisions.com/contests/snacktools-makes-creating-rich-media-content-easy/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/39c327367aeadimg.jpg.jpg" width="550" height="200" alt="SnackTools Makes Creating Rich Media Content Easy" /></a></p>
<p><span></span></p>
<p>Since SnackTools is web-based, there&#8217;s no need to install anything, and you can access your work any time and anywhere (with an internet connection).</p>
<p>Currently, the suite has <a href="http://www.bannersnack.com/" target="_blank">BannerSnack</a>, which lets you create rich interactive Flash banners, and <a href="http://www.photosnack.com/" target="_blank">PhotoSnack</a>, which lets you create stunning photo galleries (perfect for portfolios). </p>
<h3>BannerSnack</h3>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/dc7019d452enshot.jpg.jpg" width="550" height="279" alt="BannerSnack" /></p>
<p><a href="http://www.bannersnack.com/">BannerSnack</a> lets you create Flash banners using a very intuitive interface. It has standard templates that you can modify so that you don&#8217;t have to start from scratch. If you want a more customized solution, you can import your own graphics assets and use the tool to design your Flash banner. You can select a standard size or customize the size of your banner. Check out <a href="http://www.bannersnack.com/examples/">some examples</a> of banners created with BannerSnack.</p>
<h3>PhotoSnack</h3>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/ec49c9e1bfenshot.jpg.jpg" width="550" height="352" alt="PhotoSnack" /></p>
<p>PhotoSnack is a web-based application that lets you generate stunning photo slideshows/galleries. You can choose from a wide variety of templates. It will literally take you a few minutes to get your slideshow set up: you pick a template, you upload your photos, then adjust the settings, and voila – your own professional-level slideshow. You can use it to display your portfolio, photos, and more. Here are some examples of PhotoSnack in action: <a href="http://www.photosnack.com/slideshow-examples/">Slideshow examples</a>.</p>
<h3>A special Six Revisions giveaway</h3>
<p>SnackTools has teamed up with us here at Six Revisions to give five lucky readers 1000 points for SnackTools. A download costs 4 points, so that&#8217;s a lot of awesome stuff!</p>
<h4>How to participate in the SnackTools giveaway </h4>
<p>To participate in the SnackTools giveaway for 1000 points, simply leave a comment below answering the following question:</p>
<blockquote><p>If you won 1000 SnackTools points, how would you use it?</p>
</blockquote>
<p>We&#8217;ll select five winners at random using the same methods as previous Six Revisions giveaways. The giveaway ends on <strong>Thursday, January 14, 2010</strong> after which you&#8217;ll no longer be able to participate.</p>
<p>We&#8217;ll write a follow-up post to announce the winners, so you should subscribe to the <a href="http://feeds2.feedburner.com/SixRevisions">RSS feed</a> to get instantly notified when the announcement of winners has been posted. You should leave a valid email address when leaving your comment as this is the only way we&#8217;ll be able to contact you regarding your prize if you win.</p>
<h3>One day only: exclusive Six Revisions freebie</h3>
<p>For the entire day today, you can get 100 points free just by using the coupon code <strong>SIXREVISIONS100</strong>.</p>
<p>You have 30 days to spend all 100 points, so you better hurry!</p>
<h3>An Easter egg for geeks</h3>
<p>If you&#8217;re familiar with the Konami Code, here&#8217;s a tip: you <a href="http://twitter.com/SnackTools/status/6993660356">should try it out</a> when you&#8217;ve logged into the system and see what happens!</p>
<h3>Related Content</h3>
<ul>
<li><a href="http://sixrevisions.com/flashactionscript/flash_tutorial_websites/">12 Websites To Help You Learn Flash/ActionScript</a></li>
<li><a href="http://sixrevisions.com/usabilityaccessibility/adobe-flash-accessibility-best-practices-for-design/">Adobe Flash Accessibility: Best Practices for Design</a></li>
<li><a href="http://sixrevisions.com/flashactionscript/10-useful-flash-components-for-graphing-data/">10 Useful Flash Components for Graphing Data</a></li>
<li><em>Related categories</em>: <a href="http://sixrevisions.com/category/user-interface/">User Interface</a> and <a href="http://sixrevisions.com/category/web-development/">Web Development</a></li>
</ul>
<h3>About the Author</h3>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/6a3429dc3esmall.jpg.jpg" alt="" width="80" height="80" /><span><strong>Jacob Gube</strong> is the Founder and Chief Editor of <strong><a href="http://sixrevisions.com/">Six Revisions</a></strong>. He&#8217;s also a web developer/designer who specializes in front-end development (JavaScript, HTML, CSS) and PHP development. If you&#8217;d like to connect with him, head on over to the <a href="http://sixrevisions.com/contact/">contact page</a> and follow him on Twitter: <strong>@<a href="http://twitter.com/sixrevisions">sixrevisions</a></strong>.</span></p>
<div>
<a href="http://feeds.feedburner.com/~ff/SixRevisions?a=BBiQnit-qLQ:lsyEwoYB9jQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/SixRevisions?i=BBiQnit-qLQ:lsyEwoYB9jQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=BBiQnit-qLQ:lsyEwoYB9jQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=BBiQnit-qLQ:lsyEwoYB9jQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=BBiQnit-qLQ:lsyEwoYB9jQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SixRevisions?i=BBiQnit-qLQ:lsyEwoYB9jQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SixRevisions?a=BBiQnit-qLQ:lsyEwoYB9jQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SixRevisions?d=7Q72WNTAKBA" border="0"></img></a>
</div>
<p><img src="http://feeds.feedburner.com/~r/SixRevisions/~4/BBiQnit-qLQ" height="1" width="1" /></p>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/39c327367aeadimg.jpg.jpg" /></p>
<p>Go here to read the rest:<br />
<a target="_blank" href="http://feedproxy.google.com/~r/SixRevisions/~3/BBiQnit-qLQ/" title="SnackTools Makes Creating Rich Media Content Easy">SnackTools Makes Creating Rich Media Content Easy</a></p>
<div style='display:none' id="post-refEl-2568"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/snacktools-makes-creating-rich-media-content-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>30 Fresh AJAX Tutorials And Techniques</title>
		<link>http://www.freshtuts.net/30-fresh-ajax-tutorials-and-techniques/</link>
		<comments>http://www.freshtuts.net/30-fresh-ajax-tutorials-and-techniques/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 11:50:13 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=1879</guid>
		<description><![CDATA[ By Paul Andrew Using AJAX on websites and applications is pretty much taken for granted nowadays. Users expect it. They want to be able to edit a page in-place, they want search queries to be auto-suggested, and they want to be able to submit a form without refreshing the page. Why? Because those things make browsing quicker, ...]]></description>
			<content:encoded><![CDATA[<p>
<p><a href="http://feedads.g.doubleclick.net/~a/Xq8Zfq1B5UC8CwzVp2DxdxwiBK8/0/da"><img src="http://feedads.g.doubleclick.net/~a/Xq8Zfq1B5UC8CwzVp2DxdxwiBK8/0/di" border="0" ismap="true"></img></a><br/><br />
<a href="http://feedads.g.doubleclick.net/~a/Xq8Zfq1B5UC8CwzVp2DxdxwiBK8/1/da"><img src="http://feedads.g.doubleclick.net/~a/Xq8Zfq1B5UC8CwzVp2DxdxwiBK8/1/di" border="0" ismap="true"></img></a></p>
<p><em>By Paul Andrew</em></p>
<p>Using <strong>AJAX</strong> on websites and applications is pretty much taken for granted nowadays. Users expect it. They want to be able to edit a page in-place, they want search queries to be auto-suggested, and they want to be able to submit a form without refreshing the page. Why? Because those things make browsing quicker, easier and, more importantly, enjoyable.</p>
<p>As great as AJAX is, though, it is not for every website or application. Part of the developer&#8217;s job is to know exactly where AJAX (or any technology for that matter) is needed. Too little can lead to user frustration. Too much causes misunderstanding. A balance and some restraints are always needed.</p>
<p>In this round-up, we have collected <strong>30 fresh AJAX tutorials and techniques</strong>, covering almost every aspect of AJAX development: forms, applications, polls, editing, parsing, visual effects and much more.</p>
<p><span></span></p>
<h3>AJAX Tutorials And Techniques</h3>
<p><a href="http://tutorialzine.com/2009/09/shopping-cart-php-jquery/">An AJAX-Based Shopping Cart with PHP, CSS and jQuery</a><br /> In this tutorial, you will create an AJAX-driven shopping cart and store all of the products in a MySQL database, using PHP to process the data. jQuery will deliver the AJAX on the page, and with help of the <a href="http://craigsworks.com/projects/simpletip/">simpletip plug-in</a>, you will be able to deliver a high-end interactive check-out process.<br /><a href="http://demo.tutorialzine.com/2009/09/shopping-cart-php-jquery/demo.php">View the demo</a>.</p>
<p><a href="http://tutorialzine.com/2009/09/shopping-cart-php-jquery/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/fe56b0eed9urces1.jpg.jpg" width="480" height="231" alt="Ajaxresources1 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://blog.themeforest.net/tutorials/creating-an-ajax-web-app-using-the-bitly-api/">Creating an AJAX Web App Using the Bit.ly API</a><br /> Using Twitter’s URL shortener, <a href="http://www.noupe.com/ajax/bit.ly">bit.ly</a>, and the jQuery library, you will be taken through the process of building an AJAX Web app. This is a great beginner tutorial, giving a detailed introduction to APIs and the basics of PHP and jQuery.<br /> <a href="http://dev-tips.com/demo/bitly/demo.php">View the demo</a>.</p>
<p><a href="http://blog.themeforest.net/tutorials/creating-an-ajax-web-app-using-the-bitly-api/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/d54ce9e375urces2.jpg.jpg" width="480" height="231" alt="Ajaxresources2 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://tutorialzine.com/2009/11/twitter-list-ajax-fanpage/">A Twitter List AJAX-Powered Fan Page</a><br /> Twitter recently launched its new &#8220;lists&#8221; feature, which allows you to compile a list of your followers and organize them into categories. Using the newly expanded API (with list-management functionality added), you will learn how to create a widget that flips lists the other way round: this fan widget that goes in the sidebar allows visitors to fill in their Twitter name and join a special fan list from your Twitter account.<br /> <a href="http://demo.tutorialzine.com/2009/11/twitter-list-ajax-fanpage/demo.html">View the demo</a>.</p>
<p><a href="http://tutorialzine.com/2009/11/twitter-list-ajax-fanpage/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/effd29d6cburces3.jpg.jpg" width="480" height="361" alt="Ajaxresources3 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://net.tutsplus.com/videos/screencasts/learn-how-to-ajaxify-comment-forms/">Learn How to AJAXify Comment Forms</a><br /> Learn how to take a simple boring contact form and add some simple animation with an AJAX post request to submit the form to your MySQL database asynchronously.</p>
<p><a href="http://net.tutsplus.com/videos/screencasts/learn-how-to-ajaxify-comment-forms/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/6c519f65e6urces4.jpg.jpg" width="480" height="231" alt="Ajaxresources4 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://tutorialzine.com/2009/09/simple-ajax-website-jquery/">A Simple AJAX Website with jQuery</a><br /> Using jQuery, PHP and CSS, you will go through the process of creating a basic AJAX website. The finished product will load pages through AJAX from the PHP back-end and even completely support the browser history (something that is normally difficult to achieve with any AJAX or Flash website).<br /> <a href="http://demo.tutorialzine.com/2009/09/simple-ajax-website-jquery/demo.html">View the demo</a>.</p>
<p><a href="http://tutorialzine.com/2009/09/simple-ajax-website-jquery/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/ef847f7c92urces5.jpg.jpg" width="480" height="231" alt="Ajaxresources5 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/create-a-twitter-like-load-more-widget/">Create a Twitter-Like “Load More” Widget</a><br /> In this tut, you will learn the technique&mdash;used by both Twitter and the Apple App Store&mdash;for loading more information. Simply by clicking the link or button, more content will appear, as if by magic.  You will use AJAX, CSS, Javascript, JSON, PHP and HTML to build this widget. This tutorial features both the jQuery and the MooTools versions of the script.<br /> <a href="http://davidwalsh.name/dw-content/load-more.php">View the demo</a>.</p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/create-a-twitter-like-load-more-widget/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/dafe82e8c9urces6.jpg.jpg" width="480" height="366" alt="Ajaxresources6 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.noupe.com/ajax/create-a-simple-twitter-app.html">A Simple Twitter App with Ruby on Rails</a><br /> In this three-part tutorial series, you will set up a simple messaging model that holds posted messages. You will also learn how to post a message asynchronously.<br /> <a href="http://www.therailworld.com/posts/18-Create-a-Twitter-App-with-Rails-Demo-Data">View the demo</a>.</p>
<p><a href="http://www.noupe.com/ajax/create-a-simple-twitter-app.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/2a6d79ed7eurces7.jpg.jpg" width="480" height="231" alt="Ajaxresources7 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/">AJAX Multiple-File-Upload Form Using jQuery</a><br /> With this article, you will learn to develop an AJAXified multiple-file-upload form that uses much less server-side code and has a nice user interface. Thanks to the power of jQuery, the time spent on actual development is substantially reduced.<br /> <a href="http://demo.webdeveloperplus.com/ajax-file-upload/">View the demo</a>.</p>
<p><a href="http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/fd17ffe038urces8.jpg.jpg" width="480" height="231" alt="Ajaxresources8 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://lastwebdesigner.com/jquery/how-to-send-a-mail-with-php-ajax-and-jquery-in-facebook-style.html">How to Send Facebook-Style Mail with PHP, AJAX and jQuery</a><br /> The Facebook website is choc full of unique features, especially the system for sending mail and messages. Using PHP, AJAX and jQuery, you can recreate this technique using this step-by-step tutorial.<br /> <a href="http://lastwebdesigner.com/tests/mail-jquery-php-ajax/">View the demo</a>.</p>
<p><a href="http://lastwebdesigner.com/jquery/how-to-send-a-mail-with-php-ajax-and-jquery-in-facebook-style.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/971a93b79aurces9.jpg.jpg" width="480" height="231" alt="Ajaxresources9 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.noupe.com/php/how-to-create-your-own-stats.html">How to Create Your Own Stats Program (JavaScript, AJAX, PHP)</a><br /> Chances are, you use an analytics programs such as Google Analytics, Get Clicky or Urchin to track every move and twitch on your website. They all track page views, visits, unique visitors, browsers, IP addresses and much more. But how exactly is this accomplished? Follow this tutorial and learn how to create your own basic Web statistics program using PHP, JavaScript, AJAX and SQLite.<br /> <a href="http://karthik-testing.nfshost.com/web-stats/">View the demo</a>.</p>
<p><a href="http://www.noupe.com/php/how-to-create-your-own-stats.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/3046178866rces10.jpg.jpg" width="480" height="231" alt="Ajaxresources10 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.problogdesign.com/wordpress/how-to-ajax-post-pagination-in-mootools/">AJAX Post Pagination in MooTools</a><br /> Patiently browsing through the archive of posts on your WordPress website can be frustrating. A fix for this problem would be to use MooTools and AJAX to do the loading.</p>
<p><a href="http://www.problogdesign.com/wordpress/how-to-ajax-post-pagination-in-mootools/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/8a09ae5e2arces11.jpg.jpg" width="480" height="231" alt="Ajaxresources11 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://papermashup.com/jquery-ajax-delete/">jQuery AJAX delete</a><br /> Being able to remove content with Ajax is useful for any Web designer. Using a few lines of jQuery, you can remove both a DIV and a record from the database with AJAX. In this demo, you’ll see a small red cross to the right of each comment. Clicking the cross will remove the comment&#8217;s DIV, and the slide-up animation allows you to remove the DIV.<br /> <a href="http://papermashup.com/demos/jquery-delete/">View the demo</a>.</p>
<p><a href="http://papermashup.com/jquery-ajax-delete/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/9ac1d4a87brces12.jpg.jpg" width="480" height="231" alt="Ajaxresources12 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://9lessons.blogspot.com/2009/08/vote-with-jquery-ajax-and-php.html">Voting System with jQuery, AJAX and PHP</a><br /> Dzone offers users the chance to vote up or down on any particular link, giving an indication of how well an article has been received. In this tutorial, you learn how to recreate this unique voting system using jQuery, AJAX and PHP.<br /> <a href="http://9lessons.net63.net/voting.php">View the demo</a>.</p>
<p><a href="http://9lessons.blogspot.com/2009/08/vote-with-jquery-ajax-and-php.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/f1cf9207earces14.jpg.jpg" width="480" height="231" alt="Ajaxresources14 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://net.tutsplus.com/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/">Creating a Dynamic Poll with jQuery and PHP</a><br /> When you combine the neat functionality of PHP and the cleverness of jQuery, you can produce some pretty cool results. In this tutorial, you will create a poll using PHP and XHTML, then use some jQuery AJAX effects to eliminate the need for page refreshing and to give it a nice touch of animation.<br /> <a href="http://nettuts.com/demos/test_poll/">View the demo</a>.</p>
<p><a href="http://net.tutsplus.com/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/7d1fa6802brces15.jpg.jpg" width="480" height="231" alt="Ajaxresources15 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://webdeveloperplus.com/wordpress/how-to-ajaxify-wordpress-comment-posting/">AJAXify WordPress Comment Posting</a><br /> Many WordPress plug-ins will AJAXify comments, but how do they do it? In this step-by-step tutorial, you will learn how to enable AJAXed comments with client-side JavaScript comment-form validation for any WordPress blog.<br /> <a href="http://demo.webdeveloperplus.com/wordpress/">View the demo</a>.</p>
<p><a href="http://webdeveloperplus.com/wordpress/how-to-ajaxify-wordpress-comment-posting/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/7cdc2fd165rces16.jpg.jpg" width="480" height="231" alt="Ajaxresources16 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/">Create a Dynamic Scrolling Content Box Using AJAX</a><br /> If you use Google Reader, then you may have noticed how it shows feed items. After you click on a feed, it loads a few items first, and as you scroll down to view more items, it adds more items dynamically to the list. This tutorial shows you how to create a similar content box that loads content dynamically as the user scrolls to the bottom of the box.<br /> <a href="http://demo.webdeveloperplus.com/dynamic-scrollbox/">View the demo</a>.</p>
<p><a href="http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/fd88928556rces17.jpg.jpg" width="480" height="231" alt="Ajaxresources17 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/create-an-in-place-editing-system/">Create an In-Place Editing System</a><br /> Making users click through multiple pages just to edit a single field is annoying. This tutorial shows you how to create an in-place editing system, as found on popular websites such as Flickr and then take things further with AJAX.<br /> <a href="http://nettuts.s3.amazonaws.com/443_editing/demo/code.html">View the demo</a>.</p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/create-an-in-place-editing-system/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/29bcf5568arces18.jpg.jpg" width="480" height="231" alt="Ajaxresources18 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://net.tutsplus.com/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/">Submit A Form Without Page Refresh using jQuery</a><br /> This article outlines a great way to use jQuery and AJAX to enhance the user experience, not just by validating the form but by submitting the contact form without having to refresh the page.<br /> <a href="http://nettuts.com/demos/contactform/">View the demo</a>.</p>
<p><a href="http://net.tutsplus.com/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/68cc93b6b7rces19.jpg.jpg" width="480" height="231" alt="Ajaxresources19 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.vagrantradio.com/2009/10/how-to-parse-xml-using-jquery-and-ajax.html">How To Parse XML Using jQuery and Ajax</a><br /> In this tutorial you will learn how to parse or process an XML document and display the data on a page in HTML. This process can be used to filter raw RSS feeds, set up a cool site map on your blog or even lay the groundwork for your own auto-complete search.<br /> <a href="http://www.vagrantradio.com/demos/jquery_xml/index.html">View the demo</a>.</p>
<p><a href="http://www.vagrantradio.com/2009/10/how-to-parse-xml-using-jquery-and-ajax.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/04a85afb37rces20.jpg.jpg" width="480" height="231" alt="Ajaxresources20 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://davidwalsh.name/cache-ajax">Caching AJAX Results in Javascript</a><br /> AJAX requests are usually faster than regular page loads and allow for a wealth of dynamism within the page. Unfortunately, many people do not properly cache request information when they can. The author shows you his improved method for caching AJAX requests.</p>
<p><a href="http://davidwalsh.name/cache-ajax"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/719a7e02d3rces21.jpg.jpg" width="480" height="231" alt="Ajaxresources21 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.vagrantradio.com/2009/09/how-to-create-an-ajax-file-uploader.html">How to Create an AJAX File Uploader</a><br /> The application you will build in this tut uses jQuery&#8217;s versatility to allow multiple file uploads without a page refresh or redirection, complete with front- and back-end validation to prevent unwanted files from being uploaded to your server.<br /> <a href="http://www.vagrantradio.com/demos/file_uploader/index.html">View the demo</a>.</p>
<p><a href="http://www.vagrantradio.com/2009/09/how-to-create-an-ajax-file-uploader.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/8114dbbde9rces22.jpg.jpg" width="480" height="231" alt="Ajaxresources22 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/">How to Create a Simple Web-Based Chat Application</a><br /> The multiple-user Web-based chat application that you will build in this tutorial includes a log-in and log-out system, with AJAX-style features. The finished product would be perfect for a live support system for your website, as seen on the Vodafone and T-Mobile websites.</p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/5698d7f70erces23.jpg.jpg" width="480" height="231" alt="Ajaxresources23 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://9lessons.blogspot.com/2009/06/autosuggestion-with-jquery-ajax-and-php.html">Facebook-like Auto-Suggestion with jQuery, AJAX and PHP</a><br /> This article shows you how to recreate the unique auto-suggestion search feature of Facebook using jQuery, PHP and, of course, AJAX.<br /> <a href="http://9lessons.net63.net/auto.htm">View the demo</a>.</p>
<p><a href="http://9lessons.blogspot.com/2009/06/autosuggestion-with-jquery-ajax-and-php.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/e4fd167cabrces25.jpg.jpg" width="480" height="231" alt="Ajaxresources25 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://net.tutsplus.com/articles/web-roundups/20-more-excellent-ajax-effects-you-should-know/">20 More Excellent AJAX Effects You Should Know</a><br /> This article rounds up 20 relatively easy AJAX effects and techniques that can be used to spice up any page.</p>
<p><a href="http://net.tutsplus.com/articles/web-roundups/20-more-excellent-ajax-effects-you-should-know/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/6a2545a9f5rces26.jpg.jpg" width="480" height="231" alt="Ajaxresources26 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://davidwalsh.name/text-selection-ajax">Record Text Selections Using MooTools or jQuery AJAX</a><br /> This post demonstrates a useful technique for keeping track of what text users are highlighting and copying on a given Web page. It is helpful because it gives you an indication of what visitors really want from your website.</p>
<p><a href="http://davidwalsh.name/text-selection-ajax"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/576f25d5f7rces27.jpg.jpg" width="480" height="231" alt="Ajaxresources27 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.ibm.com/developerworks/library/wa-aj-dynamic/?S_TACT=105AGY30&#038;S_CMP=ajaxlp">Automatically Update a Web Page with Dynamic Elements</a><br /> You may know how to hide and display optional JavaServer Faces (JSF) components using JavaScript and CSS. To do this, you would first identify all JSF components and write them into JSF pages. But that is impossible when you are developing a Web page that contains dynamic elements that are unknown until runtime. With this article, learn how you can clear old UI components while automatically updating the dynamic elements of a Web page, as well as use Java code to add new elements and put them in their proper spot on a Web page. You&#8217;ll also learn how to bind different event handlers to different dynamic elements of a Web page, how to register a listener listening to changes of server-side data to invoke a page refresh, and how to use AJAX techniques to refresh only the dynamic parts of the Web page.</p>
<p><a href="http://www.ibm.com/developerworks/library/wa-aj-dynamic/?S_TACT=105AGY30&#038;S_CMP=ajaxlp"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/f6ab1ee4b9rces28.jpg.jpg" width="480" height="231" alt="Ajaxresources28 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.ibm.com/developerworks/library/wa-aj-presentation1/">Build a Web Presentation Application using AJAX</a><br /> How does Google Docs have such amazing functionality? It leverages Web 2.0 technologies, which provide robust functionality with relatively simple code. In this article, learn how to build a Web application to create slideshow presentations using AJAX.</p>
<p><a href="http://www.ibm.com/developerworks/library/wa-aj-presentation1/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/ffc1b83166rces29.jpg.jpg" width="480" height="231" alt="Ajaxresources29 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://dev.base86.com/solo/51/javascript_datepicker_calender_eightysix_released.html">Calendar Eightysix</a><br /> Calendar Eightysix is an unobtrusive, developer-friendly JavaScript calendar and date-picker that offers a better user experience for date-related functionality. It is highly customizable and offers unique and quick navigation by jumping back and forth between months, years and decades without drop-down boxes.<br /> <a href="http://dev.base86.com/scripts/datepicker_calendar_eightysix.html">View the demo</a>.</p>
<p><a href="http://dev.base86.com/solo/51/javascript_datepicker_calender_eightysix_released.html"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/dd7e47d73crces30.jpg.jpg" width="480" height="231" alt="Ajaxresources30 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://conceptlogic.com/jcart/">jCart: AJAX/PHP Shopping Cart</a><br /> jCart is a customizable jQuery plug-in that offers a simple e-commerce solution by handling visitor input without reloading the page.</p>
<p><a href="http://conceptlogic.com/jcart/"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/bae6dcff45rces31.jpg.jpg" width="480" height="231" alt="Ajaxresources31 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<p><a href="http://www.webdesignbeach.com/beachbar/ajax-fancy-captcha-jquery-plugin">AJAX Fancy Captcha</a><br /> The Fancy Captcha jQuery plug-in is an intuitive and fresh way to complete those &#8220;verify humanity&#8221; tasks, offering reasonable protection against unwanted guests, namely bots and spammers. It works by asking you to verify yourself simply by dragging and dropping an item into a circle.</p>
<p><a href="http://www.webdesignbeach.com/beachbar/ajax-fancy-captcha-jquery-plugin"><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/1ad4ddbabdrces32.jpg.jpg" width="480" height="284" alt="Ajaxresources32 in 30 Fresh AJAX Tutorials And Techniques" /></a></p>
<h4>About the Author</h4>
<p><em>Paul Andrew is a freelance Web designer. He is chief admin for <a href="http://speckyboy.com/">Speckyboy &#8211; Design Magazine</a>, a Web design, Web development and graphic design resource blog. Follow him on Twitter here: <a href="http://twitter.com/speckyboy">twitter.com/speckyboy</a>.</em></p>
<p><em>(al)</em></p>
<div>
<a href="http://feeds.feedburner.com/~ff/Noupe?a=AESKiyFkA-c:hsRU_7N1OWk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Noupe?i=AESKiyFkA-c:hsRU_7N1OWk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Noupe?a=AESKiyFkA-c:hsRU_7N1OWk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Noupe?i=AESKiyFkA-c:hsRU_7N1OWk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Noupe?a=AESKiyFkA-c:hsRU_7N1OWk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Noupe?i=AESKiyFkA-c:hsRU_7N1OWk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Noupe?a=AESKiyFkA-c:hsRU_7N1OWk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Noupe?d=7Q72WNTAKBA" border="0"></img></a>
</div>
</p>
<p><img src="http://www.freshtuts.net/wp-content/uploads/2010/01/fe56b0eed9urces1.jpg.jpg" /></p>
<p>Here is the original post:<br />
<a target="_blank" href="http://www.noupe.com/ajax/30-fresh-ajax-tutorials-and-techniques.html" title="30 Fresh AJAX Tutorials And Techniques">30 Fresh AJAX Tutorials And Techniques</a></p>
<div style='display:none' id="post-refEl-1879"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/30-fresh-ajax-tutorials-and-techniques/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CSS PNG Hack For Internet Explorer (IE)</title>
		<link>http://www.freshtuts.net/css-png-hack-for-internet-explorer-ie/</link>
		<comments>http://www.freshtuts.net/css-png-hack-for-internet-explorer-ie/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 14:17:46 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Css Codes]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=132</guid>
		<description><![CDATA[It’s been a problem for many developers. How do you ...]]></description>
			<content:encoded><![CDATA[<p>It’s been a problem for many developers. How do you create a transparent image for Internet Explorer 6 using a PNG. As you are all probably aware IE 6 does not support transparent PNGs but don’t panic there is a solution.</p>
<h3>The Solution</h3>
<p>This is by no means new; however, I thought it was worth while posting. By using Alpha filters designed specifically for IE we can force Internet Explorer to behave as expected.  As shown using the code laid out below:</p>
<h3>The Code</h3>
<p>The CSS source is as below.  The first class defines the Alpha filter applied to the containing DIV and also sets a height and width (This has to be the same as the PNGs height and width).</p>
<p>The second class simply hides the original PNG from all versions of Internet Explorer 6 and below.  This is applied as we do not want Internet Explorer to see the PNG twice with the non-transparent version still showing.</p>
<p><span style="color: #ff0000;">.ie-png {<br />
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&#8217;imagename.png&#8217;,sizingMethod=&#8217;scale&#8217;);<br />
height: 50px;<br />
width: 257px;<br />
}</span></p>
<p><span style="color: #ff0000;"><br />
</span></p>
<p><span style="color: #ff0000;">.ie-hide{<br />
border:0px solid #FFFFFF;<br />
_display:none;<br />
}</span></p>
<p>The HTML is also very simple.  Simply add the PNG and wrap it with a containing DIV using the classes as shown below.</p>
<p><span style="color: #ff0000;">&lt;div class=&#8221;ie-png&#8221;&gt;<br />
&lt;img src=&#8221;yourimagename.png&#8221; class=&#8221;ie-hide&#8221; alt=&#8221;freshtuts is a life saver&#8221; title=&#8221;freshtuts.com is full of tutorials for webmasters&#8221; /&gt;<br />
&lt;/div&gt;</span></p>
<p><span style="color: #ff0000;"><br />
</span></p>
<div style='display:none' id="post-refEl-132"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/css-png-hack-for-internet-explorer-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Random Image from a Directory</title>
		<link>http://www.freshtuts.net/random-image-from-directory-using-php/</link>
		<comments>http://www.freshtuts.net/random-image-from-directory-using-php/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 12:33:47 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Php Scripts]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[random image]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=109</guid>
		<description><![CDATA[This script outputs random image from a defined directory.
Make sure to ...]]></description>
			<content:encoded><![CDATA[<p>This script outputs random image from a defined directory.</p>
<p>Make sure to change the path to your images directory and also an image to display if directory listing fails. I have found this piece of code handy to use to create random headers, logos when designing web pages.</p>
<p> </p>
<h2><span style="color: #3366ff;">Code:</span></h2>
<p> </p>
<p class="de1"><span class="kw2"><span style="color: #339966;">&lt;?php</span></span></p>
<p class="de1"> </p>
<p class="de1">    <span class="re0">$path_to_images</span> <span class="sy0">=</span> <span class="st0">&#8220;<span style="color: #ff0000;">/images/</span>&#8220;</span>; <span style="color: #3366ff;"> <span class="co1"><span style="color: #ff6600;">// path to your images</span></span></span></p>
<p class="de1">    <span class="re0">$default_img</span> <span class="sy0">=</span> <span class="st0">&#8220;<span style="color: #ff0000;">image.gif</span>&#8220;</span>;  <span class="co1"><span style="color: #ff6600;">// image to display if directory listing fails</span></span></p>
<p class="de1"> </p>
<p class="de1">    <span class="kw2">function</span> getRandomImage<span class="br0">(</span><span class="re0">$thispath</span><span class="sy0">,</span> <span class="re0">$img</span><span class="br0">)</span> <span class="br0">{</span></p>
<p class="de1">        <span class="kw1">if</span> <span class="br0">(</span> <span class="re0">$list</span> <span class="sy0">=</span> getImagesList<span class="br0">(</span><span class="re0">$thispath</span><span class="br0">)</span> <span class="br0">)</span> <span class="br0">{</span></p>
<p class="de1">            <a href="http://www.php.net/mt_srand"><span class="kw3">mt_srand</span></a><span class="br0">(</span> <span class="br0">(</span>double<span class="br0">)</span><a href="http://www.php.net/microtime"><span class="kw3">microtime</span></a><span class="br0">(</span><span class="br0">)</span> <span class="sy0">*</span> <span class="nu0">1000000</span> <span class="br0">)</span>;</p>
<p class="de1">            <span class="re0">$num</span> <span class="sy0">=</span> <a href="http://www.php.net/array_rand"><span class="kw3">array_rand</span></a><span class="br0">(</span><span class="re0">$list</span><span class="br0">)</span>;</p>
<p class="de1">            <span class="re0">$img</span> <span class="sy0">=</span> <span class="re0">$list</span><span class="br0">[</span><span class="re0">$num</span><span class="br0">]</span>;</p>
<p class="de1">        <span class="br0">}</span></p>
<p class="de1">        <span class="kw1">return</span> <span class="re0">$thispath</span> <span class="sy0">.</span> <span class="re0">$img</span>;</p>
<p class="de1">    <span class="br0">}</span></p>
<p class="de1">    <span class="kw2">function</span> getImagesList<span class="br0">(</span><span class="re0">$thispath</span><span class="br0">)</span> <span class="br0">{</span></p>
<p class="de1">        <span class="re0">$ctr</span> <span class="sy0">=</span> <span class="nu19">0</span>;</p>
<p class="de1">        <span class="kw1">if</span> <span class="br0">(</span> <span class="re0">$img_dir</span> <span class="sy0">=</span> <span class="sy0">@</span><a href="http://www.php.net/opendir"><span class="kw3">opendir</span></a><span class="br0">(</span><span class="re0">$thispath</span><span class="br0">)</span> <span class="br0">)</span> <span class="br0">{</span></p>
<p class="de1">            <span class="kw1">while</span> <span class="br0">(</span> <span class="kw2">false</span> <span class="sy0">!==</span> <span class="br0">(</span><span class="re0">$img_file</span> <span class="sy0">=</span> <a href="http://www.php.net/readdir"><span class="kw3">readdir</span></a><span class="br0">(</span><span class="re0">$img_dir</span><span class="br0">)</span><span class="br0">)</span> <span class="br0">)</span> <span class="br0">{</span></p>
<p class="de1">               <span style="color: #ff6600;"> <span class="co1">// can add checks for other image file types here</span></span></p>
<p class="de1">                <span class="kw1">if</span> <span class="br0">(</span> <a href="http://www.php.net/preg_match"><span class="kw3">preg_match</span></a><span class="br0">(</span><span class="st0">&#8220;/(<span class="es0">\.</span>gif|<span class="es0">\.</span>jpg)$/&#8221;</span><span class="sy0">,</span> <span class="re0">$img_file</span><span class="br0">)</span> <span class="br0">)</span> <span class="br0">{</span></p>
<p class="de1">                    <span class="re0">$images</span><span class="br0">[</span><span class="re0">$ctr</span><span class="br0">]</span> <span class="sy0">=</span> <span class="re0">$img_file</span>;</p>
<p class="de1">                    <span class="re0">$ctr</span>++;</p>
<p class="de1">                <span class="br0">}</span></p>
<p class="de1">            <span class="br0">}</span></p>
<p class="de1">            <a href="http://www.php.net/closedir"><span class="kw3">closedir</span></a><span class="br0">(</span><span class="re0">$img_dir</span><span class="br0">)</span>;</p>
<p class="de1">            <span class="kw1">return</span> <span class="re0">$images</span>;</p>
<p class="de1">        <span class="br0">}</span></p>
<p class="de1">        <span class="kw1">return</span> <span class="kw2">false</span>;</p>
<p class="de1">    <span class="br0">}</span></p>
<p class="de1"> </p>
<p class="de1"> </p>
<p class="de1"><span style="color: #339966;"><span class="kw2">?&gt;</span> </span></p>
<p class="de1"> </p>
<p class="de1">&lt;img src=&#8221;<span class="kw2">&lt;?php</span> <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> getRandomImage<span class="br0">(</span><span class="re0">$path_to_images</span><span class="sy0">,</span> <span class="re0">$default_img</span><span class="br0">)</span> <span class="kw2">?&gt;</span>;&#8221;&gt;</p>
<p class="de1"> </p>
<p class="de1"> </p>
<p class="de1"> </p>
<div style='display:none' id="post-refEl-109"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/random-image-from-directory-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displays a hyperlinked Directory list</title>
		<link>http://www.freshtuts.net/displays-a-hyperlinked-directory-list/</link>
		<comments>http://www.freshtuts.net/displays-a-hyperlinked-directory-list/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 11:56:41 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Php Scripts]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=105</guid>
		<description><![CDATA[Displays a hyperlinked list of all the files contained in ...]]></description>
			<content:encoded><![CDATA[<p>Displays a hyperlinked list of all the files contained in a specified folder. A really simple way to have your own directory browser, just drop the file in the folder and it will show an index of all files in the directory on your webspace.</p>
<p> </p>
<h2><span style="color: #3366ff;">The code</span></h2>
<pre><code><span style="color: #000000;">
<span style="color: #0000bb;">&lt;?

</span><span style="color: #ff8000;">/**

 * Change the path to your folder.

 *

 * This must be the full path from the root of your

 * web space. If you're not sure what it is, ask your host.

 *

 * Name this file index.php and place in the directory.

 */

    // Define the full path to your folder from root

    </span><span style="color: #0000bb;">$path </span><span style="color: #007700;">= </span><span style="color: #dd0000;">"/home/user/public/foldername/"</span><span style="color: #007700;">;

    </span><span style="color: #ff8000;">// Open the folder

    </span><span style="color: #0000bb;">$dir_handle </span><span style="color: #007700;">= @</span><span style="color: #0000bb;">opendir</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$path</span><span style="color: #007700;">) or die(</span><span style="color: #dd0000;">"Unable to open $path"</span><span style="color: #007700;">);

    </span><span style="color: #ff8000;">// Loop through the files

    </span><span style="color: #007700;">while (</span><span style="color: #0000bb;">$file </span><span style="color: #007700;">= </span><span style="color: #0000bb;">readdir</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$dir_handle</span><span style="color: #007700;">)) {

    if(</span><span style="color: #0000bb;">$file </span><span style="color: #007700;">== </span><span style="color: #dd0000;">"." </span><span style="color: #007700;">|| </span><span style="color: #0000bb;">$file </span><span style="color: #007700;">== </span><span style="color: #dd0000;">".." </span><span style="color: #007700;">|| </span><span style="color: #0000bb;">$file </span><span style="color: #007700;">== </span><span style="color: #dd0000;">"index.php" </span><span style="color: #007700;">)

        continue;

        echo </span><span style="color: #dd0000;">"&lt;a href=\"$file\"&gt;$file&lt;/a&gt;&lt;br /&gt;"</span><span style="color: #007700;">;

    }

    </span><span style="color: #ff8000;">// Close

    </span><span style="color: #0000bb;">closedir</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$dir_handle</span><span style="color: #007700;">);

</span><span style="color: #0000bb;">?&gt;</span> </span>
</code></pre>
<div style='display:none' id="post-refEl-105"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/displays-a-hyperlinked-directory-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displays a random quote on a web page</title>
		<link>http://www.freshtuts.net/displays-a-random-quote-on-a-web-page/</link>
		<comments>http://www.freshtuts.net/displays-a-random-quote-on-a-web-page/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 11:44:47 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Php Scripts]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=101</guid>
		<description><![CDATA[Displays a random quote on a web page. Quotes are ...]]></description>
			<content:encoded><![CDATA[<p>Displays a random quote on a web page. Quotes are picked from a list that you define.</p>
<p><span style="color: #ff8000;"><span style="color: #000000;">Create a page and call it ( random_quote.php ) or anything you like than add the php include code below to your page where you would like to show random quotes. Make sure your page where you will include it is also php file.</span></span></p>
<p><span style="color: #ff8000;"></span><span style="color: #ff8000;"><br />
<span style="color: #000000;"> <strong>Add this line of code in your php page:</strong></span>    </span><span style="color: #ff0000;"> &lt;?php include &#8221;random_quote.php&#8221;; ?&gt;</span></p>
<p><span style="color: #ff8000;"></span></p>
<h2><span style="color: #3366ff;">The code</span></h2>
<pre><code><span style="color: #000000;">
<span style="color: #0000bb;">&lt;?php

</span><span style="color: #ff8000;">/**

 * Add this line of code in your page:

 * &lt;?php include "random_quote.php"; ?&gt;

 */

</span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">[] = </span><span style="color: #dd0000;">"This is a quote"</span><span style="color: #007700;">;

</span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">[] = </span><span style="color: #dd0000;">"This is another"</span><span style="color: #007700;">;

</span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">[] = </span><span style="color: #dd0000;">"quote 3"</span><span style="color: #007700;">;

</span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">[] = </span><span style="color: #dd0000;">"quote 4"</span><span style="color: #007700;">;

</span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">[] = </span><span style="color: #dd0000;">"quote 5"</span><span style="color: #007700;">;

</span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">[] = </span><span style="color: #dd0000;">"quote 6"</span><span style="color: #007700;">;

</span><span style="color: #0000bb;">srand </span><span style="color: #007700;">((double) </span><span style="color: #0000bb;">microtime</span><span style="color: #007700;">() * </span><span style="color: #0000bb;">1000000</span><span style="color: #007700;">);

</span><span style="color: #0000bb;">$randomquote </span><span style="color: #007700;">= </span><span style="color: #0000bb;">rand</span><span style="color: #007700;">(</span><span style="color: #0000bb;">0</span><span style="color: #007700;">,</span><span style="color: #0000bb;">count</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">)-</span><span style="color: #0000bb;">1</span><span style="color: #007700;">);

echo </span><span style="color: #dd0000;">"&lt;p&gt;" </span><span style="color: #007700;">. </span><span style="color: #0000bb;">$quotes</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$randomquote</span><span style="color: #007700;">] . </span><span style="color: #dd0000;">"&lt;/p&gt;"</span><span style="color: #007700;">;

</span><span style="color: #0000bb;">?&gt;</span> </span>
</code></pre>
<div style='display:none' id="post-refEl-101"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/displays-a-random-quote-on-a-web-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display different image each day of the week</title>
		<link>http://www.freshtuts.net/display-a-different-image-for-each-day-of-the-week/</link>
		<comments>http://www.freshtuts.net/display-a-different-image-for-each-day-of-the-week/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 11:28:17 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Php Scripts]]></category>
		<category><![CDATA[image of the day]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=96</guid>
		<description><![CDATA[This PHP script will get the day of the week ...]]></description>
			<content:encoded><![CDATA[<p>This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match. <span style="color: #ff8000;"> <span style="color: #000000;">Change the name of the image folder, Images must be named Monday.gif, Tuesday.gif etc, Change to the location of the folder containing the images</span>.<br />
</span></p>
<p> </p>
<h2><span style="color: #3366ff;">The code</span></h2>
<pre><code><span style="color: #000000;">
<span style="color: #0000bb;">&lt;?php

</span><span style="color: #ff8000;">/**

 * Change the name of the image folder

 *

 * Images must be named Monday.gif, Tuesday.gif etc

 */

// Change to the location of the folder containing the images

</span><span style="color: #0000bb;">$image_folder </span><span style="color: #007700;">= </span><span style="color: #dd0000;">"images/days"</span><span style="color: #007700;">;

</span><span style="color: #ff8000;">// You do not need to edit below this line

</span><span style="color: #0000bb;">$today </span><span style="color: #007700;">= </span><span style="color: #0000bb;">date</span><span style="color: #007700;">(</span><span style="color: #dd0000;">'l'</span><span style="color: #007700;">);

if (</span><span style="color: #0000bb;">file_exists</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$image_folder</span><span style="color: #007700;">.</span><span style="color: #dd0000;">"/"</span><span style="color: #007700;">.</span><span style="color: #0000bb;">$today</span><span style="color: #007700;">.</span><span style="color: #dd0000;">".gif"</span><span style="color: #007700;">)) {

  echo </span><span style="color: #dd0000;">"&lt;img src="$image_folder/"</span><span style="color: #007700;">.</span><span style="color: #0000bb;">$today</span><span style="color: #007700;">.</span><span style="color: #dd0000;">".gif"&gt;"</span><span style="color: #007700;">;

}

else {

  echo </span><span style="color: #dd0000;">"No image was found for $today"</span><span style="color: #007700;">;

}

</span><span style="color: #0000bb;">?&gt;</span> </span>
</code></pre>
<div style='display:none' id="post-refEl-96"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/display-a-different-image-for-each-day-of-the-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Flickr! photo album on your website</title>
		<link>http://www.freshtuts.net/php-flickr-personal-photo-album-on-your-website/</link>
		<comments>http://www.freshtuts.net/php-flickr-personal-photo-album-on-your-website/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 18:22:24 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Php Scripts]]></category>
		<category><![CDATA[album]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=78</guid>
		<description><![CDATA[This code uses your Flickr! account and creates the URLs ...]]></description>
			<content:encoded><![CDATA[<p>This code uses your Flickr! account and creates the URLs to the pictures for display on your own personal website! The full documentation is available at <a href="http://www.strydominc.za.net/index.php?p=projectdetail&amp;d=phpflickrphoto">http://www.strydominc.za.net/index.php?p=projectdetail&amp;d=phpflickrphoto</a></p>
<p><span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span><br />
<span class="punct">/</span><span class="regex">*************************************************<br />
www.strydominc.za.net<br />
Created by Jurgen Strydom, 19-08-2006, jurgen.strydom@gmail.com<br />
Read the readme.txt<br />
Version 1.01, 19-08-2006<br />
***********************************************************</span><span class="punct">/</span><br />
<span class="char">?&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">link</span> <span class="ident">href</span><span class="punct">=&#8221;</span><span class="string">pagefloat.css</span><span class="punct">&#8220;</span> <span class="ident">rel</span><span class="punct">=&#8221;</span><span class="string">stylesheet</span><span class="punct">&#8220;</span> <span class="ident">type</span><span class="punct">=&#8221;</span><span class="string">text/css</span><span class="punct">&#8220;&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span><br />
<span class="punct">/</span><span class="punct">/</span><span class="constant">Stuff</span> <span class="ident">you</span> <span class="ident">should</span> <span class="ident">update</span> <span class="keyword">for</span> <span class="ident">your</span> <span class="ident">script</span><br />
<span class="global">$api_key</span> <span class="punct">=</span> <span class="punct">&#8220;</span><span class="string">6cacc91553b802874c6bbad658c9ce94</span><span class="punct">&#8220;;</span> <span class="punct">/</span><span class="punct">/</span> <span class="ident">get</span> <span class="ident">yours</span> <span class="ident">at</span> <span class="ident">http</span><span class="punct">:/</span><span class="punct">/</span><span class="ident">flickr</span><span class="punct">.</span><span class="ident">com</span><span class="punct">/</span><span class="ident">services</span><span class="punct">/</span><span class="ident">api</span><span class="punct">/</span><span class="ident">key</span><span class="punct">.</span><span class="ident">gne</span><br />
<span class="global">$my_id</span> <span class="punct">=</span> <span class="punct">&#8220;</span><span class="string">46772344@N00</span><span class="punct">&#8220;;</span> <span class="punct">/</span><span class="punct">/</span> <span class="ident">use</span> <span class="ident">idgetr</span><span class="punct">:</span> <span class="ident">http</span><span class="punct">:/</span><span class="punct">/</span><span class="ident">idgettr</span><span class="punct">.</span><span class="ident">com</span><span class="punct">/</span> <span class="ident">to</span> <span class="ident">find</span> <span class="ident">yours</span> <span class="keyword">if</span> <span class="ident">you</span> <span class="ident">already</span> <span class="ident">changed</span> <span class="ident">it</span> <span class="ident">to</span> <span class="ident">a</span> <span class="ident">name</span><br />
<span class="global">$rows</span> <span class="punct">=</span> <span class="number">10</span><span class="punct">;</span><br />
<span class="punct">/</span><span class="punct">/</span><span class="constant">Let</span> <span class="ident">the</span> <span class="ident">code</span> <span class="keyword">do</span> <span class="ident">the</span> <span class="ident">walking</span> <span class="ident">from</span> <span class="ident">here</span> <span class="ident">on</span><br />
<span class="global">$photos</span> <span class="punct">=</span> <span class="punct">(</span><span class="global">$rows</span> <span class="punct">*</span> <span class="number">2</span><span class="punct">);</span><br />
<span class="keyword">if</span> <span class="punct">(</span><span class="ident">empty</span><span class="punct">(</span><span class="global">$_REQUEST</span><span class="punct">['</span><span class="string">n</span><span class="punct">']))</span> <span class="punct">{</span><br />
<span class="global">$pagenum</span> <span class="punct">=</span> <span class="number">1</span><span class="punct">;</span><br />
<span class="punct">}</span> <span class="keyword">else</span> <span class="punct">{</span><br />
<span class="global">$pagenum</span> <span class="punct">=</span> <span class="global">$_REQUEST</span><span class="punct">['</span><span class="string">n</span><span class="punct">'];</span><br />
<span class="punct">}</span><br />
<span class="punct">/</span><span class="punct">/</span><span class="ident">http</span><span class="punct">:/</span><span class="punct">/</span><span class="ident">static</span><span class="punct">.</span><span class="ident">flickr</span><span class="punct">.</span><span class="ident">com</span><span class="punct">/{</span><span class="ident">server</span><span class="punct">-</span><span class="ident">id</span><span class="punct">}/</span><span class="regex">{id}_{secret}_[mstb].jpg </span><span class="punct">//</span><span class="ident">how</span> <span class="ident">the</span> <span class="ident">url</span> <span class="ident">is</span> <span class="ident">created</span> <span class="keyword">for</span> <span class="ident">the</span> <span class="ident">images</span><br />
<span class="global">$xml</span> <span class="punct">=</span> <span class="ident">simplexml_load_file</span><span class="punct">(&#8221;</span><span class="string"><a href="http://flickr.com/services/rest/?method=flickr.people.getPublicPhotos&amp;user_id=$my_id&amp;api_key=$api_key&amp;per_page">http://flickr.com/services/rest/?method=flickr.people.getPublicPhotos&amp;user_</a></span></p>
<p><span class="string"><a href="http://flickr.com/services/rest/?method=flickr.people.getPublicPhotos&amp;user_id=$my_id&amp;api_key=$api_key&amp;per_page">id=$my_id&amp;api_key=$api_key&amp;per_page=</a></span><span class="string">$photos&amp;page=$pagenum</span><span class="punct">&#8220;);</span><br />
<span class="global">$total</span> <span class="punct">=</span> <span class="global">$xml</span><span class="punct">-&gt;</span><span class="ident">photos</span><span class="punct">['</span><span class="string">total</span><span class="punct">'];</span><br />
<span class="global">$pages</span> <span class="punct">=</span> <span class="global">$total</span> <span class="punct">%</span> <span class="global">$photos</span><span class="punct">;</span><br />
<span class="global">$pages</span> <span class="punct">=</span> <span class="punct">(</span><span class="global">$total</span> <span class="punct">+</span> <span class="global">$photos</span> <span class="punct">-</span> <span class="global">$pages</span><span class="punct">)</span> <span class="punct">/</span> <span class="global">$photos</span><span class="punct">;</span></p>
<p><span class="char">?&gt;</span><span class="punct">&lt;</span><span class="ident">table</span> <span class="ident">width</span><span class="punct">=&#8221;</span><span class="string">700</span><span class="punct">&#8220;</span> <span class="ident">border</span><span class="punct">=&#8221;</span><span class="string">0</span><span class="punct">&#8220;</span> <span class="ident">cellpadding</span><span class="punct">=&#8221;</span><span class="string">0</span><span class="punct">&#8220;</span> <span class="ident">cellspacing</span><span class="punct">=&#8221;</span><span class="string">0</span><span class="punct">&#8220;&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">tr</span><span class="punct">&gt;&lt;</span><span class="ident">td</span> <span class="ident">height</span><span class="punct">=&#8221;</span><span class="string">10</span><span class="punct">&#8220;</span> <span class="ident">colspan</span><span class="punct">=&#8221;</span><span class="string">2</span><span class="punct">&#8220;</span> <span class="ident">valign</span><span class="punct">=&#8221;</span><span class="string">top</span><span class="punct">&#8220;</span> <span class="ident">align</span><span class="punct">=&#8221;</span><span class="string">left</span><span class="punct">&#8220;&gt;</span><span class="constant">Please</span> <span class="ident">select</span> <span class="ident">a</span> <span class="ident">page</span><span class="punct">:</span> <span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span><br />
<span class="keyword">for</span> <span class="punct">(</span><span class="global">$k</span> <span class="punct">=</span> <span class="number">1</span><span class="punct">;</span> <span class="global">$k</span><span class="punct">&lt;=</span><span class="global">$pages</span><span class="punct">;</span> <span class="global">$k</span><span class="punct">++)</span> <span class="punct">{</span> <span class="char">?&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">table</span> <span class="ident">width</span><span class="punct">=&#8221;</span><span class="string">25</span><span class="punct">&#8220;</span> <span class="ident">border</span><span class="punct">=&#8221;</span><span class="string">0</span><span class="punct">&#8220;</span> <span class="ident">cellpadding</span><span class="punct">=&#8221;</span><span class="string">0</span><span class="punct">&#8220;</span> <span class="ident">cellspacing</span><span class="punct">=&#8221;</span><span class="string">0</span><span class="punct">&#8220;</span> <span class="ident">align</span><span class="punct">=&#8221;</span><span class="string">center</span><span class="punct">&#8220;</span> <span class="keyword">class</span><span class="punct">=&#8221;</span><span class="string">pagefloat</span><span class="punct">&#8220;&gt;</span> <span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span><br />
<span class="char">?&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">tr</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">td</span> <span class="ident">width</span><span class="punct">=&#8221;</span><span class="string">25</span><span class="punct">&#8220;</span> <span class="ident">height</span><span class="punct">=&#8221;</span><span class="string">10</span><span class="punct">&#8220;</span> <span class="ident">valign</span><span class="punct">=&#8221;</span><span class="string">top</span><span class="punct">&#8220;</span> <span class="ident">align</span><span class="punct">=&#8221;</span><span class="string">center</span><span class="punct">&#8220;&gt;&lt;</span><span class="ident">a</span> <span class="ident">href</span><span class="punct">=&#8221;</span><span class="string">photos.php?n=&lt;?php echo $k?&gt;</span><span class="punct">&#8220;&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span> <span class="keyword">if</span> <span class="punct">(</span><span class="global">$k</span> <span class="punct">==</span> <span class="global">$pagenum</span><span class="punct">)</span> <span class="punct">{</span><br />
<span class="ident">echo</span> <span class="punct">&#8220;</span><span class="string">&lt;u&gt;&lt;b&gt;</span><span class="punct">&#8220;,</span> <span class="global">$k</span><span class="punct">,</span> <span class="punct">&#8220;</span><span class="string">&lt;/b&gt;&lt;/u&gt;</span><span class="punct">&#8220;;</span><br />
<span class="punct">}</span> <span class="keyword">else</span> <span class="punct">{</span><br />
<span class="ident">echo</span> <span class="punct">&#8220;</span><span class="string">&lt;b&gt;</span><span class="punct">&#8220;,</span> <span class="global">$k</span><span class="punct">,</span> <span class="punct">&#8220;</span><span class="string">&lt;/b&gt;</span><span class="punct">&#8220;;</span><br />
<span class="punct">}</span> <span class="char">?&gt;</span><span class="punct">&lt;/</span><span class="regex">a&gt;&lt;</span><span class="punct">/</span><span class="ident">td</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;/</span><span class="regex">tr&gt;<br />
&lt;</span><span class="punct">/</span><span class="ident">table</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span> <span class="punct">}</span><br />
<span class="char">?&gt;</span><br />
<span class="punct">&lt;/</span><span class="regex">td&gt;&lt;</span><span class="punct">/</span><span class="ident">tr</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">tr</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">td</span> <span class="ident">height</span><span class="punct">=&#8221;</span><span class="string">10</span><span class="punct">&#8220;</span> <span class="ident">colspan</span><span class="punct">=&#8221;</span><span class="string">2</span><span class="punct">&#8220;</span> <span class="ident">valign</span><span class="punct">=&#8221;</span><span class="string">top</span><span class="punct">&#8220;</span> <span class="ident">align</span><span class="punct">=&#8221;</span><span class="string">left</span><span class="punct">&#8220;&gt;&amp;</span><span class="ident">nbsp</span><span class="punct">;&lt;/</span><span class="regex">td&gt;<br />
&lt;</span><span class="punct">/</span><span class="ident">tr</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span></p>
<p><span class="keyword">if</span> <span class="punct">((</span><span class="global">$pagenum</span> <span class="punct">*</span> <span class="global">$photos</span><span class="punct">)</span> <span class="punct">&gt;</span> <span class="global">$total</span><span class="punct">)</span> <span class="punct">{</span><br />
<span class="global">$to</span> <span class="punct">=</span> <span class="global">$total</span> <span class="punct">%</span> <span class="global">$photos</span><span class="punct">;</span><br />
<span class="punct">}</span> <span class="keyword">else</span> <span class="punct">{</span> <span class="global">$to</span> <span class="punct">=</span> <span class="global">$photos</span><span class="punct">;</span> <span class="punct">}</span><br />
<span class="keyword">for</span> <span class="punct">(</span><span class="global">$k</span> <span class="punct">=</span> <span class="number">0</span><span class="punct">;</span> <span class="global">$k</span><span class="punct">&lt;</span><span class="global">$to</span><span class="punct">;</span> <span class="global">$k</span><span class="punct">++)</span> <span class="punct">{</span><br />
<span class="keyword">if</span> <span class="punct">((</span><span class="global">$k</span> <span class="punct">%</span> <span class="number">2</span><span class="punct">)</span> <span class="punct">==</span> <span class="number">0</span><span class="punct">)</span> <span class="punct">{</span><br />
<span class="char">?&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">tr</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">td</span> <span class="ident">width</span><span class="punct">=&#8221;</span><span class="string">350</span><span class="punct">&#8220;</span> <span class="ident">height</span><span class="punct">=&#8221;</span><span class="string">100</span><span class="punct">&#8220;</span> <span class="ident">valign</span><span class="punct">=&#8221;</span><span class="string">top</span><span class="punct">&#8220;</span> <span class="ident">align</span><span class="punct">=&#8221;</span><span class="string">center</span><span class="punct">&#8220;&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span> <span class="punct">}</span> <span class="keyword">else</span> <span class="punct">{</span><span class="char">?&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">td</span> <span class="ident">width</span><span class="punct">=&#8221;</span><span class="string">350</span><span class="punct">&#8220;</span> <span class="ident">valign</span><span class="punct">=&#8221;</span><span class="string">top</span><span class="punct">&#8220;</span> <span class="ident">align</span><span class="punct">=&#8221;</span><span class="string">center</span><span class="punct">&#8220;&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span> <span class="punct">}</span><br />
<span class="ident">echo</span> <span class="punct">&#8220;</span><span class="string">&lt;b&gt;</span><span class="punct">&#8220;</span> <span class="punct">,</span> <span class="global">$xml</span><span class="punct">-&gt;</span><span class="ident">photos</span><span class="punct">-&gt;</span><span class="ident">photo</span><span class="punct">[</span><span class="global">$k</span><span class="punct">]['</span><span class="string">title</span><span class="punct">'],</span> <span class="punct">&#8220;</span><span class="string">&lt;/b&gt;</span><span class="punct">&#8220;;</span><br />
<span class="char">?&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">br</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="ident">a</span> <span class="ident">href</span><span class="punct">=&#8221;</span><span class="string">http://www.flickr.com/photos/jurgenstrydom/&lt;?php echo $xml-&gt;photos-&gt;photo[$k]['id'];?&gt;</span><span class="punct">&#8220;&gt;&lt;</span><span class="ident">img</span> <span class="ident">src</span><span class="punct">=&#8221;</span><span class="string">&lt;?php<br />
echo </span><span class="punct">&#8220;</span><span class="ident">http</span><span class="punct">:/</span><span class="punct">/</span><span class="ident">static</span><span class="punct">.</span><span class="ident">flickr</span><span class="punct">.</span><span class="ident">com</span><span class="punct">/&#8221;</span><span class="string">;<br />
echo $xml-&gt;photos-&gt;photo[$k]['server'];<br />
echo </span><span class="punct">&#8220;/&#8221;</span><span class="string">;<br />
echo $xml-&gt;photos-&gt;photo[$k]['id'];<br />
echo </span><span class="punct">&#8220;</span><span class="ident">_</span><span class="punct">&#8220;</span><span class="string">;<br />
echo $xml-&gt;photos-&gt;photo[$k]['secret'];<br />
echo </span><span class="punct">&#8220;</span><span class="ident">_m</span><span class="punct">.</span><span class="ident">jpg</span><span class="punct">&#8220;</span><span class="string">;<br />
?&gt;</span><span class="punct">&#8220;</span><br />
<span class="ident">alt</span><span class="punct">=&#8221;</span><span class="string">&lt;?php echo $xml-&gt;photos-&gt;photo[$k]['title'] ?&gt;</span><span class="punct">&#8220;</span> <span class="ident">border</span><span class="punct">=&#8221;</span><span class="string">0</span><span class="punct">&#8220;&gt;&lt;/</span><span class="regex">a&gt;<br />
&lt;</span><span class="punct">/</span><span class="ident">td</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span><br />
<span class="keyword">if</span> <span class="punct">((</span><span class="global">$k</span> <span class="punct">%</span> <span class="number">2</span><span class="punct">)</span> <span class="punct">==</span> <span class="number">1</span><span class="punct">)</span> <span class="punct">{</span><br />
<span class="char">?&gt;</span> <span class="punct">&lt;/</span><span class="regex">tr&gt;  &lt;tr&gt;<br />
&lt;td height=&#8221;10&#8243; colspan=&#8221;2&#8243; valign=&#8221;top&#8221; align=&#8221;left&#8221;&gt;&amp;nbsp;&lt;</span><span class="punct">/</span><span class="ident">td</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;/</span><span class="regex">tr&gt;<br />
&lt;?php<br />
}<br />
}<br />
?&gt;<br />
&lt;</span><span class="punct">/</span><span class="ident">table</span><span class="punct">&gt;</span><br />
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span><br />
<span class="punct">/</span><span class="regex">*****************************************************<br />
Changelog:</span><span class="punct">/</span><br />
<span class="char">?&gt;</span></p>
<p>Version 1.01<br />
Fixed a bug that caused code below this script to output incorrect display.</p>
<p>Version 1<br />
First release.<br />
*********************************************</p>
<div style='display:none' id="post-refEl-78"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/php-flickr-personal-photo-album-on-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Very Simple Password Protection of a Page</title>
		<link>http://www.freshtuts.net/very-simple-password-protection-of-a-page/</link>
		<comments>http://www.freshtuts.net/very-simple-password-protection-of-a-page/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 17:58:38 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Php Scripts]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=75</guid>
		<description><![CDATA[// Bare Bones demo of password protection

&#60;?php
$password = "abc123";
if ($_POST[doddle] ...]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">// Bare Bones demo of password protection</span></strong></p>
<p><strong></strong></p>
<pre><span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span>
<span class="global">$password</span> <span class="punct">=</span> <span class="punct">"</span><span class="string"><span style="color: #ff0000;">abc123</span></span><span class="punct">";</span>
<span class="keyword">if</span> <span class="punct">(</span><span class="global">$_POST</span><span class="punct">[</span><span class="ident">doddle</span><span class="punct">]</span> <span class="punct">==</span> <span class="global">$password</span><span class="punct">)</span> <span class="punct">{</span>
        <span class="global">$tell</span> <span class="punct">=</span> <span class="number">1</span><span class="punct">;</span>
<span class="punct">}</span> <span class="keyword">else</span> <span class="punct">{</span>
        <span class="global">$tell</span> <span class="punct">=</span> <span class="number">2</span><span class="punct">;</span>
<span class="punct">}</span>
<span class="keyword">if</span> <span class="punct">(!</span> <span class="ident">is_string</span><span class="punct">(</span><span class="global">$_POST</span><span class="punct">[</span><span class="ident">doddle</span><span class="punct">]))</span> <span class="global">$tell</span> <span class="punct">=</span> <span class="number">0</span><span class="punct">;</span>
<span class="char">?&gt;</span>
<span class="punct">&lt;</span><span class="ident">html</span><span class="punct">&gt;</span>
<span class="punct">&lt;</span><span class="ident">head</span><span class="punct">&gt;&lt;</span><span class="ident">title</span><span class="punct">&gt;</span><span style="color: #3366ff;"><span class="constant">A</span> <span class="constant">Page</span> <span class="ident">that</span> <span class="ident">is</span> <span class="ident">password</span> <span class="ident">protected</span></span><span class="punct">&lt;/</span><span class="regex">title&gt;&lt;</span><span class="punct">/</span><span class="ident">head</span><span class="punct">&gt;</span>
<span class="punct">&lt;</span><span class="ident">body</span><span class="punct">&gt;</span>
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span> <span class="keyword">if</span> <span class="punct">(</span><span class="global">$tell</span> <span class="punct">==</span> <span class="number">1</span><span class="punct">)</span> <span class="punct">{</span> <span class="char">?&gt;</span>

<span class="punct">&lt;</span><span class="ident">h1</span><span class="punct">&gt;</span><span style="color: #3366ff;"><span class="constant">The</span> <span class="ident">page</span> <span class="ident">with</span> <span class="ident">all</span> <span class="ident">the</span> <span class="ident">secrets</span> <span class="ident">revealed</span></span> <span class="punct">&lt;/</span><span class="regex">h1&gt;

<span style="color: #3366ff;">This is the information that has been revealed to you because you
got the password right!</span>&lt;br </span><span class="punct">/&gt;&lt;</span><span class="ident">br</span> <span class="punct">/&gt;</span><span style="color: #3366ff;"><span class="constant">Although</span> <span class="ident">this</span> <span class="ident">is</span> <span class="ident">a</span> <span class="ident">very</span> <span class="ident">simple</span>
<span class="ident">demo</span> <span class="ident">it</span> <span class="ident">shows</span> <span class="ident">what</span> <span class="ident">you</span> <span class="ident">can</span> <span class="keyword">do</span> <span class="ident">with</span> <span class="ident">just</span> <span class="ident">a</span> <span class="ident">few</span> <span class="ident">lines</span> <span class="ident">of</span> <span class="constant">PHP</span><span class="punct">.</span></span>

<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span> <span class="punct">}</span> <span class="keyword">else</span> <span class="punct">{</span> <span class="char">?&gt;</span>

<span class="punct">&lt;</span><span class="ident">h1</span><span class="punct">&gt;</span><span style="color: #3366ff;"><span class="constant">A</span> <span class="constant">Header</span> <span class="ident">page</span></span><span class="punct">&lt;/</span><span class="regex">h1&gt;

<span style="color: #3366ff;">There is a page hidden under a password at this URL. For this demo only
I will tell you that the password is "abc123" so you can try it out!</span>&lt;br </span><span class="punct">/&gt;</span>
<span class="punct">&lt;</span><span class="char">?p</span><span class="ident">hp</span> <span class="keyword">if</span> <span class="punct">(</span><span class="global">$tell</span> <span class="punct">==</span> <span class="number">2</span><span class="punct">)</span> <span class="ident">print</span> <span class="punct">("</span><span class="string">&lt;br /&gt;<span style="color: #3366ff;">YOU GOT THE PASSWORD WRONG</span>&lt;br /&gt;</span><span class="punct">");</span> <span class="char">?&gt;</span>
<span class="punct">&lt;</span><span class="ident">br</span> <span class="punct">/&gt;</span>
<span class="punct">&lt;</span><span class="ident">form</span> <span class="ident">method</span><span class="punct">=</span><span class="ident">post</span><span class="punct">&gt;</span>
<span style="color: #3366ff;"><span class="constant">Please</span> <span class="ident">enter</span> <span class="ident">password</span></span> <span class="punct">&lt;</span><span class="ident">input</span> <span class="ident">type</span><span class="punct">=</span><span class="ident">password</span> <span class="ident">name</span><span class="punct">=</span><span class="ident">doddle</span><span class="punct">&gt;</span>
<span class="punct">&lt;</span><span class="ident">input</span> <span class="ident">type</span><span class="punct">=</span><span class="ident">submit</span> <span class="ident">value</span><span class="punct">=</span><span class="ident">go</span><span class="punct">&gt;</span>
<span class="punct">&lt;/</span><span class="regex">form&gt;

&lt;?php } ?&gt;

&lt;hr </span><span class="punct">/&gt;</span>
<span class="punct">&lt;</span><span class="ident">a</span> <span class="ident">href</span><span class="punct">=</span><span class="ident">http</span><span class="punct">:/</span><span class="punct">/</span><span class="ident">www</span><span class="punct">.</span><span class="ident">oxmediadigital.com</span><span class="punct">&gt;</span><span class="constant"><span style="color: #3366ff;">Cheap Web sites for your business</span></span><span class="punct">&lt;/</span><span class="regex">a&gt;, <span style="color: #3366ff;">2009</span>
&lt;</span><span class="punct">/</span><span class="ident">body</span><span class="punct">&gt;</span>
<span class="punct">&lt;/</span><span class="regex">html&gt;<span class="normal">
</span></span></pre>
<div style='display:none' id="post-refEl-75"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/very-simple-password-protection-of-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

