<?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>Theme Heven &#187; HOW TO</title>
	<atom:link href="http://www.themeheven.com/category/wordpress-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.themeheven.com</link>
	<description>WordPress, Ajax, Jquery, Web 2.0, PHP, Tutorials, Tips, Tricks</description>
	<lastBuildDate>Wed, 13 Jan 2010 09:37:25 +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>10 Simple PHP Login Sytem Tutorial</title>
		<link>http://www.themeheven.com/2010/01/10-simple-php-login-sytem-tutorial/</link>
		<comments>http://www.themeheven.com/2010/01/10-simple-php-login-sytem-tutorial/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 09:29:47 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=279</guid>
		<description><![CDATA[Login System is the First Part of Security system in web programming. In this tutorial I am going to show you the collection of various methos and types of login system. I will give a right choice for your system and you can understand more about login.
More here
See Also Following Topics:

An Introduction to Object Oriented [...]]]></description>
			<content:encoded><![CDATA[<p>Login System is the First Part of Security system in web programming. In this tutorial I am going to show you the collection of various methos and types of login system. I will give a right choice for your system and you can understand more about login.</p>
<p><a href="http://www.jagadishwor.com.np/2009/12/10-simple-php-login-sytem-tutorial/">More here</a><br />
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2010/01/an-introduction-to-object-oriented-php/" title="An Introduction to Object Oriented PHP">An Introduction to Object Oriented PHP</a></li>
<li><a href="http://www.themeheven.com/2009/10/php-image-file-upload-tutorial/" title="PHP Image File Upload Tutorial">PHP Image File Upload Tutorial</a></li>
<li><a href="http://www.themeheven.com/2009/08/php-redirect-to-another-pageurl-script/" title="PHP Redirect to another Page/URL Script">PHP Redirect to another Page/URL Script</a></li>
<li><a href="http://www.themeheven.com/2009/08/delete-multiple-records-using-checkbox-with-select-all-buttons/" title="Delete Multiple Records Using Checkbox With Select All Buttons">Delete Multiple Records Using Checkbox With Select All Buttons</a></li>
<li><a href="http://www.themeheven.com/2009/06/advanced-php-query-function/" title="Advanced PHP Query function">Advanced PHP Query function</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2010/01/10-simple-php-login-sytem-tutorial/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>An Introduction to Object Oriented PHP</title>
		<link>http://www.themeheven.com/2010/01/an-introduction-to-object-oriented-php/</link>
		<comments>http://www.themeheven.com/2010/01/an-introduction-to-object-oriented-php/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 09:04:08 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[OO PHP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=276</guid>
		<description><![CDATA[
What the heck are Objects and Classes?
Classes, at their simplest point, are just receptacles of functions. They can be compared to a folder on your computer (assuming you aren’t running DOS). Inside the folder you may have three files, or in this case, functions. Let’s use a classic example, a Dog.
Take a look at the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.themeheven.com/wp-content/uploads/2010/01/oop-php-part1-banner.png" alt="" /></p>
<h3>What the heck are Objects and Classes?</h3>
<p>Classes, at their simplest point, are just receptacles of functions. They can be compared to a folder on your computer (assuming you aren’t running DOS). Inside the folder you may have three files, or in this case, functions. Let’s use a classic example, a Dog.</p>
<p>Take a look at the following image:</p>
<p><img src="http://www.themeheven.com/wp-content/uploads/2010/01/oop-php-part1-dog-example.png" alt="" /></p>
<p>As you can see, a Dog has many “functions”. It can run, walk, sit, play, and bark. This is the essence of what a class is.</p>
<p>An Object, on the other hand, is a way to represent your class. For example, you can have your class named “Dog”, but you can reference it by a variable called Cat if you really wanted to confuse yourself.</p>
<p>That’s all we’re going to cover in this section, so if you’re still confused, read on and I believe the examples will make some coherent sense.</p>
<h3>Writing our first class</h3>
<p>Since this is just our first class, we’re going to keep things nice and simple. Open up your text editor of choice and make a new file in your web root called myClass.php. Add in the following code:</p>
<p><code>&lt;?php</p>
<p>class myClass</p>
<p>{</p>
<p>function sayHello()</p>
<p>{</p>
<p>echo "Hello there!";</p>
<p>}</p>
<p>}</p>
<p>?&gt;</code></p>
<p>If you navigate to this file on your server, nothing will show up. All we did was set up a class (container) and add in a function, we never referenced it to be run.</p>
<h3>How to use your freshly written class</h3>
<p>Now that we have our myClass.php file all written, we’re going to reference it and use it. Make a new file in the same folder as your class is in, called index.php. Add in the following code:</p>
<p><code>&lt;?php</p>
<p>require_once('myClass.php');</p>
<p>$myClass = new myClass();</p>
<p>$myClass-&gt;sayHello();</p>
<p>?&gt;</code></p>
<p>If you run the file, you should see “Hello World!” echoed out. Let’s go over what we did to make this work. First, you can see that we required the myClass.php file, which contains our container full of functions. Next, we had to make a new Object, and we used the class name as the object name, just for ease of use. And finally, we referenced our sayHello function by writing the Object name with an arrow and the function name.</p>
<h3>Making it Friendlier</h3>
<p>Right now, if we wanted to use this to greet a logged in user, there wouldn’t be much of a sense of personalization, would there? Wouldn’t it be nice if we could say Hello to the specific user? Well, we can! Go back to your myClass.php file and edit it accordingly:</p>
<p><code>&lt;?php</p>
<p>class myClass</p>
<p>{</p>
<p>function sayHello($user)</p>
<p>{</p>
<p>echo "Hello " . $user . "!";</p>
<p>}</p>
<p>}</p>
<p>?&gt;</code></p>
<p>All we did was add a parameter to the function called name, that we can pass along to the function from our index file. Go back to your index.php file now and add your name like so:</p>
<p><code>&lt;?php</p>
<p>require_once('myClass.php');</p>
<p>$myClass = new myClass();</p>
<p>$myClass-&gt;sayHello('Dixon');</p>
<p>?&gt;</p>
<p></code></p>
<p>Now, reload your index.php file and you should see a nice textual greeting!</p>
<h3>Conclusion</h3>
<p>Now that we’ve covered the very basics of Object-Oriented PHP, you can practically do it all. And was it hard? Hopefully not! Be sure to check in later for the rest of this series, in which we’ll be making a fully functional MySQLi Database interaction class! Thanks for reading.</p>
<h3>Constructors and Destructors</h3>
<p>Think of PHP constructors and destructors like a building. You construct a building at first, then when you’re done using it, you destruct it. Except in PHP, there are no live explosives for the destruction. Let’s look at the following example of constructors:</p>
<p><code>&lt;?php</p>
<p>class MyClass</p>
<p>{</p>
<p>function __construct()</p>
<p>{</p>
<p>echo "MyClass Loaded!";</p>
<p>}</p>
<p>}</p>
<p>$MyClass = new MyClass();</p>
<p>?&gt; </code></p>
<p>In this example, we create a new class simply called MyClass, then a constructor function that says MyClass Loaded!. Basically, anything you want to happen when you call upon your class, should go in the constructor function.</p>
<p>In PHP, you don’t need to worry about always having a<strong><em> __destruct()</em></strong> method in your class, as all classes and variables are removed after your object is destroyed. (At the end of execution).</p>
<h3>Returning data from your functions</h3>
<p>In the real world, you don’t want to be using echo statements within your functions, you want to run your function and return the data for you to echo out where you want it. Let’s take a look at the following example that could be part of a blog application:</p>
<p><code>&lt;?php</p>
<p>class MyClass</p>
<p>{</p>
<p>var $mysqli;</p>
<p>function __construct()</p>
<p>{</p>
<p>$this-&gt;mysqli = new mysqli('localhost', 'root', '', 'blog');</p>
<p>}</p>
<p>function get_latest_posts()</p>
<p>{</p>
<p>//Do some database selection</p>
<p>$query = "SELECT * FROM `posts` ORDER BY `id` DESC";</p>
<p>$result = $this-&gt;mysqli-&gt;query($query);</p>
<p>return $result;</p>
<p>}</p>
<p>}</p>
<p>?&gt;</code></p>
<p>Here, we are using a constructor to make a new MySQLi connection, and then using that connection set in the constructor to run a possible query, then to return the result set to be used however you’d like to display the data. Simple, right?</p>
<h3>Keeping Organized</h3>
<p>In the first part of this series, I described classes as boxes, and functions as the things within the boxes. This picture is a great representation of keeping your classes well separated from each other, and their contents nicely arranged.</p>
<p>One key aspect of writing classes is to keep things easy to read and edit later. Let’s take a look at a <a href="http://core.trac.wordpress.org/browser/trunk/wp-includes/wp-db.php" target="_blank">file from the very popular blogging platform Wordpress</a>. As you can see, above every variable declaration, class declaration, and function declaration, there is vital information about the parameters, what the function does, and what it returns. Let’s write our own example now:</p>
<p><code>&lt;?php</p>
<p>/*</p>
<p>* @name MyClass</p>
<p>* @params none</p>
<p>* Our database class that makes a new database connection, and will insert userdata.</p>
<p>*/</p>
<p>class MyClass</p>
<p>{</p>
<p>/*</p>
<p>* MySQLi Connection Link</p>
<p>*/</p>
<p>private $mysqli;</p>
<p>/*</p>
<p>* __construct</p>
<p>* Sets new MySQLi Connection</p>
<p>*/</p>
<p>function __construct()</p>
<p>{</p>
<p>$this-&gt;mysqli = new mysqli('localhost', 'root', '', 'buildinternet');</p>
<p>}</p>
<p>/*</p>
<p>* insert_userdata</p>
<p>* @params username, password</p>
<p>* @returns bool</p>
<p>*/</p>
<p>function insert_userdata($username, $password)</p>
<p>{</p>
<p>//Insert the userdata into the database</p>
<p>if(success)</p>
<p>{</p>
<p>return true;</p>
<p>} else {</p>
<p>return false;</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>php?&gt; </code></p>
<p>Here, we have said what our class is, what it does, and then defined each function or variable within it. In the insert_userdata() function, we have said what the parameters are and what it returns above the function. As you can already see, these comments help immensely when trying to read your code or trying to find a problem with your code.</p>
<h3>Variables and Constructor</h3>
<p>Create a new file called class.db.php and insert the following:</p>
<p><code>&lt;?php</p>
<p>/*</p>
<p>* class db</p>
<p>* @param Host</p>
<p>* @param User</p>
<p>* @param Password</p>
<p>* @param Name</p>
<p>*/</p>
<p>class db</p>
<p>{</p>
<p>var $host; //MySQL Host</p>
<p>var $user; //MySQL User</p>
<p>var $pass; //MySQL Password</p>
<p>var $name; //MySQL Name</p>
<p>var $mysqli; //MySQLi Object</p>
<p>var $last_query; //Last Query Run</p>
<p>/*</p>
<p>* Class Constructor</p>
<p>* Creates a new MySQLi Object</p>
<p>*/</p>
<p>function __construct($host, $user, $pass, $name)</p>
<p>{</p>
<p>$host = $this-&gt;host;</p>
<p>$user = $this-&gt;user;</p>
<p>$pass = $this-&gt;pass;</p>
<p>$name = $this-&gt;name;</p>
<p>$this-&gt;mysqli = new mysqli($this-&gt;host, $this-&gt;user, $this-&gt;pass, $this-&gt;name);</p>
<p>}</p>
<p>}</p>
<p>$db = new db('localhost', 'root', '', 'blog');</p>
<p>?&gt; </code></p>
<p><em>**Try and dissect what we have done here before reading the explanation!**</em></p>
<p>First, we have done the most important part of Object Oriented PHP – organization! We have said what the class name is, and all the parameters that need to be passed to it when it is loaded. Next, inside the class, we have defined our four variables for MySQL connection and then required them as parameters of the constructor function, which can be passed when the class is loaded at the bottom of the file. Next, we have set our $mysqli variable to a new MySQLi Object. Simple, right? Let’s move on.</p>
<h3>
<p>Main Functions</h3>
<p><em><strong> SELECT </strong></em></p>
<p>Now that we have the connection down, we can start working with the database. Add a select function like this:</p>
<p><code>/*</p>
<p>* Function Select</p>
<p>* @param fields</p>
<p>* @param from</p>
<p>* @param where</p>
<p>* @returns Query Result Set</p>
<p>*/</p>
<p>function select($fields, $from, $where)</p>
<p>{</p>
<p>$query = "SELECT " . $fields . " FROM `" . $from . "` WHERE " . $where;</p>
<p>$result = $this-&gt;mysqli-&gt;query($query);</p>
<p>$this-&gt;last_query = $query;</p>
<p>return $result;</p>
<p>} </code></p>
<p>Here we have made a select function for selecting data from a MySQL table. We have defined three parameters, and you can see how they fit into the final query. All we return from this function is a query result set, which you can work with however you like in your pages.</p>
<p><em><strong> INSERT</strong></em></p>
<p>Of course, we can select data with our class now, but we don’t have anything to select unless we insert it! Let’s do that now by adding this function to your class:</p>
<p><code>/*</p>
<p>* Function Insert</p>
<p>* @param into</p>
<p>* @param values</p>
<p>* @returns boolean</p>
<p>*/</p>
<p>function insert($into, $values)</p>
<p>{</p>
<p>$query = "INSERT INTO " . $into . " VALUES(" . $values . ")";</p>
<p>$this-&gt;last_query = $query;</p>
<p>if($this-&gt;mysqli-&gt;query($query))</p>
<p>{</p>
<p>return true;</p>
<p>} else {</p>
<p>return false;</p>
<p>}</p>
<p>} </code></p>
<p>Another quite simple function, we are just requiring two parameters: the table name to insert the data into, and the values for the fields. Instead of returning any real data for this function, we just go ahead and run it and if it inserted the data, it returns true, and if not, false. Simple for inserting data.</p>
<p><em><strong> DELETE</strong></em></p>
<p>Now that we can insert and then select our data, we have to have a way to delete it say if a user wanted to delete their account. Add this function:</p>
<p><code>&lt;?php</p>
<p>/*</p>
<p>* Function Delete</p>
<p>* @param from</p>
<p>* @param where</p>
<p>* @returns boolean</p>
<p>*/</p>
<p>function delete($from, $where)</p>
<p>{</p>
<p>$query = "DELETE FROM " . $from . " WHERE " . $where;</p>
<p>$this-&gt;last_query = $query;</p>
<p>if($this-&gt;mysqli-&gt;query($query))</p>
<p>{</p>
<p>return true;</p>
<p>} else {</p>
<p>return false;</p>
<p>}</p>
<p>}</p>
<p>?&gt; </code></p>
<h3>Some extra goodies</h3>
<p>You probably noticed the last_query variable we defined at the beginning of the class, then we set it every time we ran a query in a function. This is very vital for troubleshooting, to see what’s wrong with your query. Another possible class variable could be a last_error, that would hold the last error returned.</p>
<p>Thanks to BuildInternet</p>
<p>Original Source From: <a href="http://buildinternet.com/" target="_blank">http://buildinternet.com/ </a><br />
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2010/01/10-simple-php-login-sytem-tutorial/" title="10 Simple PHP Login Sytem Tutorial ">10 Simple PHP Login Sytem Tutorial </a></li>
<li><a href="http://www.themeheven.com/2009/10/php-image-file-upload-tutorial/" title="PHP Image File Upload Tutorial">PHP Image File Upload Tutorial</a></li>
<li><a href="http://www.themeheven.com/2009/08/php-redirect-to-another-pageurl-script/" title="PHP Redirect to another Page/URL Script">PHP Redirect to another Page/URL Script</a></li>
<li><a href="http://www.themeheven.com/2009/08/delete-multiple-records-using-checkbox-with-select-all-buttons/" title="Delete Multiple Records Using Checkbox With Select All Buttons">Delete Multiple Records Using Checkbox With Select All Buttons</a></li>
<li><a href="http://www.themeheven.com/2009/06/advanced-php-query-function/" title="Advanced PHP Query function">Advanced PHP Query function</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2010/01/an-introduction-to-object-oriented-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>25 Awesome web design/development + graphics/UI+resources/tutorial sites</title>
		<link>http://www.themeheven.com/2009/12/25-awesome-web-designdevelopment-graphicsuiresourcestutorial-sites/</link>
		<comments>http://www.themeheven.com/2009/12/25-awesome-web-designdevelopment-graphicsuiresourcestutorial-sites/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 06:47:12 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[Inspiration]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=273</guid>
		<description><![CDATA[There are lots of design/developer tutorial sites with lots of collection of resources and much more. Here are some of the best sites which designer&#8217;s should visit. You will get  lots of collection of resources from the sites.
1. Smashing Magazine

2. noupe 

3. TutsPlus

Tuts+ having great collection of resources related to audio, UI design and [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of design/developer tutorial sites with lots of collection of resources and much more. Here are some of the best sites which designer&#8217;s should visit. You will get  lots of collection of resources from the sites.</p>
<p><strong>1. Smashing Magazine</strong></p>
<p><a href="http://www.smashingmagazine.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/smashingmagazine.gif" border="0" alt="" width="500" height="414" /></a></p>
<p><strong>2. noupe </strong></p>
<p><strong><a href="http://www.noupe.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/noup.gif" border="0" alt="" width="500" height="377" /></a></strong></p>
<p><strong>3. TutsPlus</strong></p>
<p><a href="http://tutsplus.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/tuts+.gif" border="0" alt="" width="500" height="370" /></a></p>
<p>Tuts+ having great collection of resources related to audio, UI design and much more.</p>
<p><strong>4. Six Revisions</strong></p>
<p><strong><a href="http://sixrevisions.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/sixrevisions.gif" border="0" alt="" width="500" height="338" /></a></strong></p>
<p><strong>5. Design Follow</strong></p>
<p><a href="http://www.designfollow.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/designfollow.gif" border="0" alt="" width="500" height="437" /></a></p>
<p><strong>6. Design Mag</strong></p>
<p><a href="http://designm.ag/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/designmag.gif" border="0" alt="" width="500" height="376" /></a></p>
<p><strong>7. Blogfreakz</strong></p>
<p><a href="http://blogfreakz.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/blogfreakz.gif" border="0" alt="" width="500" height="386" /></a></p>
<p><strong>8. CreativeOverflow</strong></p>
<p><a href="http://creativeoverflow.net/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/creativeoverflow.gif" border="0" alt="" width="500" height="413" /></a></p>
<p><strong>9. Denbagus</strong></p>
<p><strong><a href="http://www.denbagus.net/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/denbagus.gif" border="0" alt="" width="500" height="336" /></a></strong></p>
<p><strong>10. Extra Tuts</strong></p>
<p><strong><a href="http://www.extratuts.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/extratuts.gif" border="0" alt="" width="500" height="331" /></a></strong></p>
<p><strong>11. PSD Vault</strong></p>
<p><strong><a href="http://www.psdvault.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/psdvault.gif" border="0" alt="" width="500" height="367" /></a></strong></p>
<p><strong>12. Smashing Buzz</strong></p>
<p><a href="http://www.smashingbuzz.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/smashingbuzz.gif" border="0" alt="" width="500" height="319" /></a></p>
<p><strong>13. Tutorial Lounge</strong></p>
<p><strong><a href="http://www.tutoriallounge.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/tutoriallounge.gif" border="0" alt="" width="500" height="445" /></a></strong></p>
<p><strong>14. Wordpress Arena</strong></p>
<p><strong><a href="http://wparena.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/wordpressarena.gif" border="0" alt="" width="500" height="409" /></a></strong></p>
<p><strong>15. Design Ussion</strong></p>
<p><a href="http://www.designussion.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/designussion.gif" border="0" alt="" width="500" height="320" /></a></p>
<p><strong>16. Psdeluxe</strong></p>
<p><strong><a href="http://www.psdeluxe.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/psdeluxe.gif" border="0" alt="" width="500" height="301" /></a></strong></p>
<p><strong>17. Designtutorials 4u</strong></p>
<p><strong><a href="http://designtutorials4u.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/designtutorials4u.gif" border="0" alt="" width="500" height="312" /></a></strong></p>
<p><strong>18. Perishable Press</strong></p>
<p><strong><a href="http://perishablepress.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/perishablepress.gif" border="0" alt="" width="500" height="268" /></a></strong></p>
<p><strong>19. Artfans Design</strong></p>
<p><strong><a href="http://artfans.info/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/artfandesign.gif" border="0" alt="" width="500" height="251" /></a></strong></p>
<p><strong>20. Inspire Bit</strong></p>
<p><strong><a href="http://inspirebit.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/inspirebit.gif" border="0" alt="" width="500" height="315" /></a></strong></p>
<p><strong>21. Design Dazzling</strong></p>
<p><strong><a href="http://www.designdazzling.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/designdazzling.gif" border="0" alt="" width="500" height="332" /></a></strong></p>
<p><strong>22. Tutorials Palace</strong></p>
<p><strong><a href="http://www.tutorialspalace.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/tutorialspalace.gif" border="0" alt="" width="500" height="284" /></a></strong></p>
<p><strong>23. Web and Designers</strong></p>
<p><strong><a href="http://www.webanddesigners.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/webadndesigners.gif" border="0" alt="" width="500" height="259" /></a></strong></p>
<p><strong>24. Out Law Design Blog</strong></p>
<p><strong><a href="http://www.outlawdesignblog.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/outlawdesignblog.gif" border="0" alt="" width="500" height="297" /></a></strong></p>
<p><strong>25. Designrfix</strong></p>
<p><a href="http://designrfix.com/" target="_blank"><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/12/designrfix.gif" border="0" alt="" width="500" height="295" /></a><br />
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2009/03/33-visual-impressive-graphical-layout-css-web-pages-showcase/" title="32 Visual Impressive Graphical Layout CSS Web Pages Showcase">32 Visual Impressive Graphical Layout CSS Web Pages Showcase</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/12/25-awesome-web-designdevelopment-graphicsuiresourcestutorial-sites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS  Positioning, Layout and Understanding CSS z-index</title>
		<link>http://www.themeheven.com/2009/10/css-positioning-layout-and-understanding-css-z-index/</link>
		<comments>http://www.themeheven.com/2009/10/css-positioning-layout-and-understanding-css-z-index/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 05:04:54 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HOW TO]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=271</guid>
		<description><![CDATA[Layout with CSS is a great way to manage Objects and elements in a web page and a very easy. I think css is better than the tabural stracure. In a CSS styles you need to look at each part of the page as an individual chunk that you can shove wherever you choose. You [...]]]></description>
			<content:encoded><![CDATA[<p>Layout with CSS is a great way to manage Objects and elements in a web page and a very easy. I think css is better than the tabural stracure. In a CSS styles you need to look at each part of the page as an individual chunk that you can shove wherever you choose. You can place these chunks absolutely or relative to another chunk using CSS.  One of the major benefits of using CSS is that you’re no longer forced to lay your sites out in tables.</p>
<p>The position property is used to define whether an element is absolute, relative, static or fixed. This is the fun part. Using CSS you can define the position for your id&#8217;ed divs. Store your position information in a style call like this:</p>
<p>For Example</p>
<p><code>#banner {</p>
<p>position: absolute;</p>
<p>margin:5px 5px 0px 0px //Defines Top, right, bottom and left margin</p>
<p>}</p>
<p>#content {</p>
<p>margin-left: 20em;</p>
<p>}</p>
<p>#div-1 {</p>
<p>position:static;</p>
<p>}</p>
<p></code></p>
<h3>position:static</h3>
<p>The default positioning for all elements is position:static, which means the element is not positioned and occurs where it normally would in the document.</p>
<p>Normally you wouldn&#8217;t specify this unless you needed to override a positioning that had been previously set.</p>
<pre>#divname{
   position:static;
 }</pre>
<h3>position:relative</h3>
<p>If you specify position:relative, then you can use top or bottom, and left or right to move the element relative to where it would normally occur in the document.</p>
<pre>#divname {
 position:relative;
 top:20px;
 left:-40px;
 }</pre>
<h3>position:absolute</h3>
<p>When you specify position:absolute, the element is removed from the document and placed exactly where you tell it to go.</p>
<pre>#divname {
   position:absolute;
   top:0;
   right:0;
   width:200px;
 }</pre>
<h3>position:relative + position:absolute</h3>
<p>If we set relative positioning on first div, any elements within first div will be positioned relative to first div. Then if we set absolute positioning on second, we can move it to the top right of first div:</p>
<pre>   #firstdiv {
   position:relative;
   }
   #seconddiv {
   position:absolute;
   top:0;
   right:0;
   width:200px;
   }</pre>
<p>Floating an element will shift it to the right or left of a line, with surrounding content flowing around it. For variable height columns, absolute positioning does not work, so let&#8217;s come up with another solution.</p>
<p>We can &#8220;float&#8221; an element to push it as far as possible to the right or to the left, and allow text to wrap around it.</p>
<pre>#divname {
 float:left;
 width:200px;
 }</pre>
<p>Then after the floating elements we can &#8220;clear&#8221; the floats to push down the rest of the content.</p>
<pre>#divclear{
 clear:both;
 }</pre>
<h3>What is z-index</h3>
<p>When you&#8217;re using CSS positioning to position elements on the page, you need to think in virtual 3-D. Each element on the page can be layered on top or beneath any other element. The z-index determines where in the stack each element is. I like to think of the elements as pieces of paper, and the Web page is a collage. Where I lay the paper is determined by positioning, and how much of it shows through the other elements is the z-index.</p>
<pre>img
   {
   position:absolute;
   left:0px;
   top:0px;
   z-index:-1;//Set behind of any element while the z-index is -1.
 }</pre>
<p>On short note z-index is used to stack order of an element.<br />
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2009/07/css-3-column-fixed-width-centered-layout-tutorial/" title="CSS 3 Column Fixed width centered layout Tutorial">CSS 3 Column Fixed width centered layout Tutorial</a></li>
<li><a href="http://www.themeheven.com/2009/03/20-great-css-web-galleries/" title="20 Great CSS Web Galleries">20 Great CSS Web Galleries</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/10/css-positioning-layout-and-understanding-css-z-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Image File Upload Tutorial</title>
		<link>http://www.themeheven.com/2009/10/php-image-file-upload-tutorial/</link>
		<comments>http://www.themeheven.com/2009/10/php-image-file-upload-tutorial/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 08:41:53 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=268</guid>
		<description><![CDATA[In this tutorial you will learn to upload image file using PHP. Together you will learn to restrict file type. In this tutorial I am showing you example in which you can upload only jpg/jpeg images. It a very easy method I am going to show you and hope you will understand.
Start With Form :
&#60;form [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial you will learn to upload image file using PHP. Together you will learn to restrict file type. In this tutorial I am showing you example in which you can upload only jpg/jpeg images. It a very easy method I am going to show you and hope you will understand.</p>
<p>Start With Form :</p>
<p><code>&lt;form action="" method="post" enctype="multipart/form-data" name="form1"&gt;&lt;p&gt;<br />
&lt;input name="fileImage" type="file" id="fileImage"&gt;<br />
&lt;/p&gt;&lt;p&gt;<br />
&lt;input name="save-image" type="submit" id="save-image" value="Upload Image"&gt;<br />
&lt;/p&gt;</p>
<p>&lt;/form&gt;</p>
<p></code></p>
<p>Upload Code:</p>
<p><code>&lt;?phpif(isset($_POST['save-image'])){//Line Use to check if the buttton was pressed.</p>
<p>$fileName=$_FILES['fileImage']['name'];</p>
<p>//Getting file name and assigning it to $fileName variable</p>
<p>$fileType=$_FILES['fileImage']['type'];</p>
<p>//Getting file type and assigning it to $filetype variable</p>
<p>$fileSize=$_FILES['fileImage']['size'];</p>
<p>//Getting file size and assigning it to $filesize;</p>
<p>$tmpName=$_FILES['fileImage']['tmp_name'];</p>
<p>//Getting temporary name of file and assigning it to $tmpName</p>
<p>$maxsize=1048576;</p>
<p>//Defining maximum file size to 1Mb</p>
<p>$uploadDir="upload/";</p>
<p>//Define upload directory</p>
<p>$filePath=$uploadDir.$fileName;</p>
<p>//Defining file path so that we can use it on move_uploaded_file function</p>
<p>if(($fileType=="image/jpg") || ($fileType=="image/jpeg") || ($fileType=="image/pjpeg")){</p>
<p>//Checking file type. Is the file jpg or not?</p>
<p>$result=move_uploaded_file($tmpName, $filePath);</p>
<p>//When file is jpg moving file to the upload directory from temp directory</p>
<p>}</p>
<p>if($result){</p>
<p>//If file move successfully then show message</p>
<p>echo "File Uploaded Successfully";</p>
<p>}else{</p>
<p>//If file is invalid display message</p>
<p>echo "Invalid File Format";</p>
<p>}</p>
<p>}</p>
<p>?&gt;</p>
<p></code></p>
<p>Full Code:</p>
<p><code>&lt;?phpif(isset($_POST['save-image'])){$fileName=$_FILES['fileImage']['name'];</p>
<p>$fileType=$_FILES['fileImage']['type'];</p>
<p>$fileSize=$_FILES['fileImage']['size'];</p>
<p>$tmpName=$_FILES['fileImage']['tmp_name'];</p>
<p>$maxsize=1048576;</p>
<p>$uploadDir="upload/";</p>
<p>$filePath=$uploadDir.$fileName;</p>
<p>if(($fileType=="image/jpg") || ($fileType=="image/jpeg") || ($fileType=="image/pjpeg")){</p>
<p>$result=move_uploaded_file($tmpName, $filePath);</p>
<p>}</p>
<p>if($result){</p>
<p>echo "File Uploaded Successfully";</p>
<p>}else{</p>
<p>echo "Invalid File Format";</p>
<p>}</p>
<p>}</p>
<p>?&gt;</p>
<p>&lt;html&gt;</p>
<p>&lt;head&gt;</p>
<p>&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;</p>
<p>&lt;title&gt;Upload Image&lt;/title&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;form action="" method="post" enctype="multipart/form-data" name="form1"&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;input name="fileImage" type="file" id="fileImage"&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;input name="save-image" type="submit" id="save-image" value="Upload Image"&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;/form&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p></code><br />
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2010/01/10-simple-php-login-sytem-tutorial/" title="10 Simple PHP Login Sytem Tutorial ">10 Simple PHP Login Sytem Tutorial </a></li>
<li><a href="http://www.themeheven.com/2010/01/an-introduction-to-object-oriented-php/" title="An Introduction to Object Oriented PHP">An Introduction to Object Oriented PHP</a></li>
<li><a href="http://www.themeheven.com/2009/08/php-redirect-to-another-pageurl-script/" title="PHP Redirect to another Page/URL Script">PHP Redirect to another Page/URL Script</a></li>
<li><a href="http://www.themeheven.com/2009/08/delete-multiple-records-using-checkbox-with-select-all-buttons/" title="Delete Multiple Records Using Checkbox With Select All Buttons">Delete Multiple Records Using Checkbox With Select All Buttons</a></li>
<li><a href="http://www.themeheven.com/2009/06/advanced-php-query-function/" title="Advanced PHP Query function">Advanced PHP Query function</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/10/php-image-file-upload-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Redirect to another Page/URL Script</title>
		<link>http://www.themeheven.com/2009/08/php-redirect-to-another-pageurl-script/</link>
		<comments>http://www.themeheven.com/2009/08/php-redirect-to-another-pageurl-script/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:21:19 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=253</guid>
		<description><![CDATA[In  PHP there are some common way to redirect another page or URL. Here I am going to use some simple way to redirect. In PHP you need to use header() to send a raw HTTP header. In headers() method, you can easily redirect to the new page or URL.
Using headers():
In  header() method [...]]]></description>
			<content:encoded><![CDATA[<p>In  PHP there are some common way to redirect another page or URL. Here I am going to use some simple way to redirect. In PHP you need to use header() to send a raw HTTP header. In headers() method, you can easily redirect to the new page or URL.</p>
<h2>Using headers():</h2>
<p>In  header() method you must remember to call it before any output is sent. Means nothing should be printed in page.</p>
<pre>&lt;?php

  //Redirect to page or URL 

  header(&quot;Location: URL or Page Address &quot;);

  //End the code with exit 

  exit;

  ?&gt; </pre>
<h2>Using Javascritp:</h2>
<p>In this method you can use this JavaScript at any part of your page. </p>
<p>
<pre>&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;

window.location = &quot;redirect page/URL here&quot;

&lt;/script&gt; </pre>
</p>
<p>You can also show any error message to your user:</p>
<p>
<pre>&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;alert(&quot;any message here &quot;)

window.location = &quot;redirect page/URL here&quot;

&lt;/script&gt; </pre>
</p>
<h2>Using Meta tag method:<br />
</h2>
<p>You can use this script at any part of your page. </p>
<p>
<pre>&lt;?php

  echo &quot;&lt;meta http-equiv='refresh' content='0;url=redirect page/URL here'&gt;&quot;;

?&gt;
</pre>
<p>Enjoy!!!</p>
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2010/01/10-simple-php-login-sytem-tutorial/" title="10 Simple PHP Login Sytem Tutorial ">10 Simple PHP Login Sytem Tutorial </a></li>
<li><a href="http://www.themeheven.com/2010/01/an-introduction-to-object-oriented-php/" title="An Introduction to Object Oriented PHP">An Introduction to Object Oriented PHP</a></li>
<li><a href="http://www.themeheven.com/2009/10/php-image-file-upload-tutorial/" title="PHP Image File Upload Tutorial">PHP Image File Upload Tutorial</a></li>
<li><a href="http://www.themeheven.com/2009/08/delete-multiple-records-using-checkbox-with-select-all-buttons/" title="Delete Multiple Records Using Checkbox With Select All Buttons">Delete Multiple Records Using Checkbox With Select All Buttons</a></li>
<li><a href="http://www.themeheven.com/2009/06/advanced-php-query-function/" title="Advanced PHP Query function">Advanced PHP Query function</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/08/php-redirect-to-another-pageurl-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete Multiple Records Using Checkbox With Select All Buttons</title>
		<link>http://www.themeheven.com/2009/08/delete-multiple-records-using-checkbox-with-select-all-buttons/</link>
		<comments>http://www.themeheven.com/2009/08/delete-multiple-records-using-checkbox-with-select-all-buttons/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 17:16:52 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=232</guid>
		<description><![CDATA[
Last Time I post &#8220;Deleting multiple records using checkbox&#8221;. One of my friend request me to add some features like yahoo mail, gmail where we can select all or unselect all records. WOW! it was really helpful for everyone. So I am here going to show you Delete Multiple Records Using Select All and Unselect [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jagadishwor.com.np/wp-content/uploads/2009/08/seldelmult.gif" alt="" width="376" height="185" /></p>
<p>Last Time I post &#8220;Deleting multiple records using checkbox&#8221;. One of my friend request me to add some features like yahoo mail, gmail where we can select all or unselect all records. WOW! it was really helpful for everyone. So I am here going to show you Delete Multiple Records Using Select All and Unselect Features. I have simply added a javascript code in my previous post which you can <a href="http://www.jagadishwor.com.np/2009/08/php-mysql-deleting-multiple-records-using-checkbox/" target="_blank">see here</a>. All of the Features are same as my previous code and I am using the new codes which I added on my last one.</p>
<p>Now Create your database and table as your required. Write your connection string and finish all of the work. Which you can see in my previous post.</p>
<p>Ok Now add this javascript before your &lt;/head&gt; tag.</p>
<pre><code>&lt;script&gt;
function selectAllCheckBoxes(FormName, FieldName, CheckValue)
{
	if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i &lt; countCheckBoxes; i++)
			objCheckBoxes[i].checked = CheckValue;
}
&lt;/script&gt;</code></pre>
<p>And Now add this code before &lt;/form&gt; tag. Which add two buttons in your code.</p>
<pre><code> &lt;input type="button" onclick="selectAllCheckBoxes('form1', 'checkbox[]', true);" value="Select All"&gt;
&lt;input type="button" onclick="selectAllCheckBoxes('form1', 'checkbox[]', false);" value="Clear All"&gt; </code></pre>
<p>You have done.</p>
<p>Get Complete Code Here:</p>
<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;Delete Multiple Records&lt;/title&gt;
&lt;script&gt;
function selectAllCheckBoxes(FormName, FieldName, CheckValue)
{
	if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i &lt; countCheckBoxes; i++)
			objCheckBoxes[i].checked = CheckValue;
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
 $dbhost="localhost";
   $dbuser="root";
   $dbpass="";
   $dbname="test";
mysql_connect("$dbhost","$dbuser","$dbpass") or die('Could not connect');
mysql_select_db($dbname);
?&gt;
&lt;form name="form1" method="post" action=""&gt;
&lt;table width="409" border="0" cellpadding="2" cellspacing="0" bordercolor="#999999"&gt;
&lt;tr bgcolor="#CCCCCC"&gt;
&lt;td width="52"&gt;&lt;div align="center"&gt;Select&lt;/div&gt;&lt;/td&gt;
&lt;td width="98"&gt;&lt;div align="center"&gt;Name&lt;/div&gt;&lt;/td&gt;
&lt;td width="142"&gt;&lt;div align="center"&gt;Address&lt;/div&gt;&lt;/td&gt;
&lt;td width="101"&gt;&lt;div align="center"&gt;Contact No&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
$query="SELECT * FROM tbluser";
$result=mysql_query($query);
$sno=1;
while($row=mysql_fetch_array($result, MYSQL_ASSOC)){
?&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input name="checkbox[]" type="checkbox" id="checkbox[]" value="&lt;? echo $row['userid']; ?&gt;"&gt;&lt;/td&gt;
&lt;td&gt;&lt;? echo $row['name'];?&gt;&lt;/td&gt;
&lt;td&gt;&lt;? echo $row['address'];?&gt;&lt;/td&gt;
&lt;td&gt;&lt;? echo $row['contactno'];?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?
	$sno=$sno+1;
	}
	?&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td colspan="3"&gt;
&lt;div align="right"&gt;
&lt;input name="delete" type="submit" id="delete" value="Delete Records"&gt;
&amp;nbsp;&amp;nbsp;
&lt;input type="button" onclick="selectAllCheckBoxes('form1', 'checkbox[]', true);" value="Select All"&gt;
&amp;nbsp;&amp;nbsp;
&lt;input type="button" onclick="selectAllCheckBoxes('form1', 'checkbox[]', false);" value="Clear All"&gt;
&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?
if($_POST['delete']){
//print_r($_POST);
$checkbox=$_POST['checkbox'];
//exit;
for($i=0;$i&lt;count($checkbox);$i++){
$del_id = $checkbox[$i];
$sql = "DELETE FROM tbluser WHERE userid='$del_id'";
$result = mysql_query($sql);
}
// if successful redirect to delete_multiple.php
if($result){
echo "&lt;meta http-equiv=\"refresh\" content=\"0;URL=deletemultiplerecords.php\"&gt;";
}
}
?&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<p><a href="http://www.jagadishwor.com.np/wp-content/uploads/2009/08/deletemultiplerecords_Updated.rar">Download Zip Here</a></p>
<p>Source: www.jagadishwor.com.np<br />
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2010/01/10-simple-php-login-sytem-tutorial/" title="10 Simple PHP Login Sytem Tutorial ">10 Simple PHP Login Sytem Tutorial </a></li>
<li><a href="http://www.themeheven.com/2010/01/an-introduction-to-object-oriented-php/" title="An Introduction to Object Oriented PHP">An Introduction to Object Oriented PHP</a></li>
<li><a href="http://www.themeheven.com/2009/10/php-image-file-upload-tutorial/" title="PHP Image File Upload Tutorial">PHP Image File Upload Tutorial</a></li>
<li><a href="http://www.themeheven.com/2009/08/php-redirect-to-another-pageurl-script/" title="PHP Redirect to another Page/URL Script">PHP Redirect to another Page/URL Script</a></li>
<li><a href="http://www.themeheven.com/2009/06/advanced-php-query-function/" title="Advanced PHP Query function">Advanced PHP Query function</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/08/delete-multiple-records-using-checkbox-with-select-all-buttons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Optimizing PNG for the web</title>
		<link>http://www.themeheven.com/2009/07/optimizing-png-for-the-web/</link>
		<comments>http://www.themeheven.com/2009/07/optimizing-png-for-the-web/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 07:00:40 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[Web Page Design]]></category>
		<category><![CDATA[PNG Optimizing]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=211</guid>
		<description><![CDATA[“The type of a PNG image is defined in the IHDR image header. The image has a certain bit depth, up to 16 bits per sample, and a certain color type, from Grayscale to RGB+Alpha. If two PNG files of different types represent exactly the same image, each file can be regarded as a lossless [...]]]></description>
			<content:encoded><![CDATA[<p>“The type of a PNG image is defined in the IHDR image header. The image has a certain bit depth, up to 16 bits per sample, and a certain color type, from Grayscale to RGB+Alpha. If two PNG files of different types represent exactly the same image, each file can be regarded as a lossless transformation of the other. A lossless transformation can reduce the uncompressed stream, and such a transformation is named image reduction. In most cases, image reductions are capable of reducing the compressed stream (which is, in fact, our interest), as an indirect effect of reducing the size of the compressor’s input.</p>
<p>The possible image reductions are:</p>
<ul>
<li>Bit depth reduction
<p>The bit depth can be reduced to a minimum value that is acceptable for all samples. For example, if all sample values in a 16-bit image have the form (256+1)*n, (e.g. #0000, #2323, #FFFF), then the bit depth can be reduced to 8, and the new sample values will become n, (e.g. #00, #23, #FF).</li>
<li> Color type reduction
<p>- If an RGB image has 256 distinct colors or less, it can be reencoded as a Palette image.</p>
<p>- If an RGB or Palette image has only gray pixels, it can be reencoded as Grayscale.</p>
<p>A color type reduction can also enable a bit depth reduction.</li>
<li> Color palette reduction
<p>If the color palette contains redundant entries (i.e. duplicate entries that indicate the same RGB value) or sterile entries (i.e. entries that do not have a correspondent in the raw pixel data), these entries can be removed.</p>
<p>A color palette reduction can also enable a bit depth reduction.</li>
<li> Alpha channel reduction
<p>If all pixels in a Grayscale+Alpha or an RGB+Alpha image are fully opaque (i.e. all alpha components are equal to 2^bitdepth-1), or if the transparency information can be stored entirely in a (much cheaper) tRNS chunk, the alpha channel can be stripped.</li>
</ul>
<p>There are, however, a few cases when some image type reductions do not necessarily lead to the reduction of the compressed stream. The PNG-Tech site contains experimental analyses of these possibilities; for example, see the article 8 bits per pixel in paletted images.</p>
<p>Interlacing, useful for a faster, progressive rendering, is another component of the PNG image type that affects compression. In an interlaced stream, the samples corresponding to neighboring pixels are stored far away, hence the data in it is less correlated and less compressible. Unlike JPEG, where interlacing may improve the compression slightly, the PNG interlacing degrades the compression significantly.”</p>
<h2>Optimizing image data</h2>
<p>Photoshop’s Save for Web feature does a reasonable optimization, but it’s far from perfect. We can improve on it.</p>
<p>If you’ve been in web development for any length of time, you’ll probably have heard of command line tools to optimize PNG image data. The two most popular are PNGout and PNGcrush. PNGout can produce slightly smaller files than PNGcrush but at the expense of speed: it’s far, far slower. As I opt for speed rather than the absolute best compression, I use PNGcrush. (Note that neither tool will change the original format of the file, so you can’t use them to create an 8-bit image from a 24-bit source. Make sure your PNGs are in the correct format before you start to play with these tools.)</p>
<p>Download PNGcrush and copy the executable into your Windows XP directory (sorry to non-Windows or Vista users, XP is all I use). I also recommend that you install the Command prompt here powertoy–or you can create the hack manually. This allows you to open a command prompt at any folder, by right clicking its name in Windows Explorer.</p>
<p>Once you’ve done this, open a command line at the folder where your PNG image resides and type:</p>
<p><code>pngcrush infile.png outfile.png</code></p>
<p>This will create a new optimised file, but only if the output is smaller than the input. Note that the new file might not be the smallest it could be as by default PNGcrush only tries a few compression methods. If you want to get the absolute best compression, you can ask PNGcrush to try all its methods, but this can take a very long time and doesn’t always yield much of a benefit. To do so, add the -brute option:</p>
<p><code>pngcrush -brute infile.png outfile.png</code></p>
<p>If you want to optimize all your images, you can do it in batch by creating a new file for every input file:</p>
<p><code>pngcrush -e -crushed *.png</code></p>
<p>This will create new, optimized files with the original filename plus the extra suffix “-crushed”. Alternatively, you can put the crushed images into a sub folder instead which will leave them with their original filename and won’t overwrite the original files:</p>
<p><code> pngcrush -d crushed-files *.png</code></p>
<p>Using any of these methods should have given you some smaller files.</p>
<h2>Using PNGCrusher</h2>
<p>I like to make sure that my PNGs are as well-compressed as possible. There&#8217;s a great CLI tool to do that, called pngcrush OptiPNG.</p>
<p>To automate processing of PNG files with OptiPNG, I slapped the following code together, threw it through Platypus, and out came PNGCrusher.</p>
<p>PNGCrusher has a bad rating at VersionTracker because some people are clueless and don&#8217;t realize that some PNGs are already as compressed as they can get. Please help PNGCrusher by giving it a sane rating!</p>
<p><a href="http://www.versiontracker.com/dyn/moreinfo/macosx/26437" target="_blank">Download Here</a></p>
<p><strong>Usage notes</strong></p>
<p>Just drag-and-drop PNG files onto PNGCrusher. OptiPNG will overwrite each file only if it was able to improve the compression rate.</p>
<p>If you drag a lot of files onto PNGCrusher, it may take a while to finish. Don&#8217;t move, delete, or rename the files in the meantime.</p>
<p>PNGCrusher is distributed under the <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU General Public License.</a></p>
<h2>Creative Use of PNG Transparency in Web Design</h2>
<p>The PNG image has been widely overlooked by the web design community—and mostly for good reason. Until recently, it hasn’t been possible to take full advantage of the format and have it work reliably in all browsers. But, with proper PNG support in Internet Explorer 7, and some handy JavaScript and CSS tricks to account for older browsers, we can use PNG images to greatly enhance our design vocabulary.</p>
<p><strong>PNG</strong></p>
<ul>
<li><strong>Greater compression:</strong> For most images, PNG achieves a smaller file size than GIF.</li>
<li> <strong>Greater color depths:</strong> PNG offers truecolor up to 48 bits, whereas GIF allows only 256-color palettes.</li>
<li> <strong>Alpha-channel transparency:</strong> Whereas GIF offers only binary transparency, PNG allows for virtually unlimited transparency effects by enabling an alpha channel for transparency.</li>
</ul>
<p>It’s worth mentioning that PNG does not allow for animation, as GIF does. There is a related standard called <a href="http://www.libpng.org/pub/mng/" target="_blank">Multiple-image Network Graphics</a> (MNG) that does allow both, but it is not widely supported by web browsers or imaging software.</p>
<h2>PNG Transparency for Internet Explorer (IE6 and Beyond)</h2>
<p>If you browse to a Web page that contains an image that has a transparent background in Portable Network Graphics (PNG) format, the image background may appear to be gray rather than transparent.</p>
<p>Web developers who work with PNG files can use the AlphaImageLoader filter, as demonstrated in the following example:</p>
<pre><code>&lt;html&gt;
&lt;head&gt;&lt;/head&gt;
&lt;body bgColor="blue"&gt;
&lt;!-- This DIV is the target container for the image.  --&gt;
&lt;DIV ID="oDiv" STYLE="position:absolute; left:140px; height:400; width:400;
     filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
     src='image.png', sizingMethod='scale');" &gt;
&lt;/DIV&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<p>Like GIFs and JPEGs, PNG images are ideal for web use. Like GIFs, the PNG is great for displaying small images with few colors, like logos and icons. Also, PNGs sport a few advantages over GIF images. Most notably, they support alpha transparency.</p>
<p>What is alpha-transparency? GIF files are only capable of displaying a pixel as either completely transparent or completely opaque: this is known as binary transparency. When an image contains alpha layers, however, parts of an image can be partially transparent. You can specify a level of transparency from 0 to 255. Below is an image with layers of varying transparency:</p>
<p>PNGs thus have the potential for creating some interesting effects on a web page, like translucent background images and drop-shadows. But despite their advantages over GIFS, PNGs aren’t nearly as popular as GIFs web design, primarily because of the impression that PNGs don’t enjoy wide browser support.</p>
<p>This view on PNGs is a bit of a misconception.</p>
<p>While Internet Explorer for Windows 6 (IE6) and previous versions of IE don’t support PNGs’ <a href="http://en.wikipedia.org/wiki/Portable_Network_Graphics#Transparency_of_image" target="_blank">alpha-transparency feature</a>, all popular browsers can display PNGs.</p>
<p>While IE6- doesn’t explicitly support alpha-transparency out-of-the-box, if you will, there is a workaround that ensures PNG’s cross-browser compatibility.</p>
<h3>Compared to GIF</h3>
<p>Compared to GIF files, a PNG file with the same information (256 colors, no ancillary chunks/metadata), compressed by a good compressor will usually be smaller than GIF, though lack of agreed data sets make controlled comparison impossible. Depending on the file and the compressor, PNG may range from somewhat smaller (10%) to significantly smaller (50%) to somewhat larger (5%), but is rarely significantly larger.</p>
<p>This is attributed to the performance of PNG&#8217;s DEFLATE compared to GIF&#8217;s LZW, and because the added precompression layer of PNG&#8217;s predictive filters take account of the 2-dimensional image structure to further compress files—as filtered data encodes differences between pixels, they will tend to cluster closer to 0, rather than being spread across all possible values, and thus be more easily compressed by DEFLATE.</p>
<p>However, PNG is much more flexible than GIF, and thus PNG files can potentially be much larger than GIF files, because they can include much more information, and may be poorly compressed.</p>
<p><strong>File size factors</strong></p>
<p>PNG files vary in size due to a number of factors:</p>
<p><strong>color depth</strong></p>
<p>Color depth can range from 1–64 bits per pixel.</p>
<p><strong>ancillary chunks</strong></p>
<p>PNG supports much metadata—this may be useful for edition, but unnecessary for viewing, as on websites.</p>
<p><strong>interlacing</strong></p>
<p>As each pass of the Adam7 algorithm is separately filtered, this can increase file size.</p>
<p><strong>filter</strong></p>
<p>As a precompression stage, each line is filtered by a predictive filter, which can change from line to line. As the ultimate DEFLATE step operators on the whole image&#8217;s filtered data, one cannot optimize this row-by-row; the choice of filter for each row is thus potentially very variable, though heuristics exist.</p>
<p><strong>compression</strong></p>
<p>With addition computation, DEFLATE compressors can produce smaller files.</p>
<p>There is thus a filesize trade-off between high color depth, maximal metadata (including color space information, together with information that does not affect display), interlacing, and speed of compression, which all yield large files, with lower color depth, fewer or no ancillary chunks, no interlacing, and tuned but computationally intensive filtering and compression. For different purposes one will choose different trade-offs—a maximal file may be best for archiving and edition, while a stripped down file may be best for use on a website, and similarly fast but poor compression is preferred when repeatedly editing and saving a file, while slow but high compression is preferred when a file is stable: when archiving or posting. Interlacing is a trade-off—it dramatically speeds up early rendering of large files (improves latency), but may increase file size (decrease throughput) for little gain, particularly for small files.<br />
<h3>Most Commented Posts</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2009/03/display-wordpress-content-outside-of-your-blog/" title="Display Wordpress content outside of your blog">Display Wordpress content outside of your blog</a></li>
<li><a href="http://www.themeheven.com/2009/03/top-10-magazine-wordpress-themes-from-premiumthemes/" title="Top 10 Magazine WordPress Themes from Premiumthemes">Top 10 Magazine WordPress Themes from Premiumthemes</a></li>
<li><a href="http://www.themeheven.com/2009/04/wordpress-meta-tags-plugin/" title="WordPress Meta-Tags Plugin">WordPress Meta-Tags Plugin</a></li>
<li><a href="http://www.themeheven.com/2009/06/simple-jquery-image-slide-show-with-semi-transparent-caption/" title="Simple JQuery Image Slide Show with Semi-Transparent Caption">Simple JQuery Image Slide Show with Semi-Transparent Caption</a></li>
<li><a href="http://www.themeheven.com/2009/06/web-2-0-and-seo/" title="Web 2.0 and SEO">Web 2.0 and SEO</a></li>
<li><a href="http://www.themeheven.com/2009/03/photoshop-tutorial-sites/" title="Photoshop Tutorial Sites">Photoshop Tutorial Sites</a></li>
<li><a href="http://www.themeheven.com/2009/04/how-to-embed-google-ad-in-your-post/" title="How to: Embed Google Ad in your post">How to: Embed Google Ad in your post</a></li>
<li><a href="http://www.themeheven.com/2009/04/wordpress-tips-and-tricks/" title="Wordpress Tips and Tricks">Wordpress Tips and Tricks</a></li>
<li><a href="http://www.themeheven.com/2009/04/digital-photography-tutorial-and-tips/" title="Digital Photography Tutorial and Tips">Digital Photography Tutorial and Tips</a></li>
<li><a href="http://www.themeheven.com/2009/05/useful-wordpress-tricks-to-make-your-theme-even-better/" title="Useful Wordpress Tricks to Make Your Theme Even Better">Useful Wordpress Tricks to Make Your Theme Even Better</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/07/optimizing-png-for-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Design Web 2.0  layout guide</title>
		<link>http://www.themeheven.com/2009/07/how-to-design-web-2-0-layout-guide/</link>
		<comments>http://www.themeheven.com/2009/07/how-to-design-web-2-0-layout-guide/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 12:40:43 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/?p=203</guid>
		<description><![CDATA[Summary of features covered
The list below is a summary of many of the common features of typical &#8220;Web 2.0&#8243; sites.
Clearly, a site doesn&#8217;t need to exhibit all these features to work well, and displaying these features doesn&#8217;t make a design &#8220;2.0&#8243; &#8211; or good!
Introduction
I&#8217;m going to take you through the features of the current wave [...]]]></description>
			<content:encoded><![CDATA[<h2>Summary of features covered</h2>
<p>The list below is a summary of many of the common features of typical &#8220;Web 2.0&#8243; sites.</p>
<p>Clearly, a site doesn&#8217;t need to exhibit all these features to work well, and displaying these features doesn&#8217;t make a design &#8220;2.0&#8243; &#8211; or good!</p>
<h2>Introduction</h2>
<p>I&#8217;m going to take you through the features of the current wave of excellent web site designs, dissect the most significant features, explain why each one can be good, and show you how to use them in your own sites.</p>
<p>If I had to sum up &#8220;Web 2.0&#8243; design in one word, it would have to be &#8220;simplicity&#8221;, so that&#8217;s where we&#8217;ll start.</p>
<p>I&#8217;m a great believer in simplicity. I think it&#8217;s the way forward for web design.</p>
<p>Today&#8217;s simple, bold, elegant page designs deliver more with less:</p>
<ul>
<li> They enable designers to shoot straight for the site&#8217;s goals, by guiding the site visitor&#8217;s eye through the use of fewer, well-chosen visual elements.</li>
<li> They use fewer words but say more, and carefully selected imagery to create the desired feel.</li>
<li> They reject the idea that we can&#8217;t guess what people want from our sites</li>
</ul>
<h3>1 Simplicity</h3>
<p>&#8220;Use as few features as are necessary to achieve what you need to achieve&#8221;</p>
<p>Web design is simpler than ever, and that&#8217;s a good thing.</p>
<p>2.0 design means focused, clean and simple.</p>
<p>That doesn&#8217;t necessarily mean minimalist, as I&#8217;ll explain later.</p>
<p>I really believe in simplicity. That&#8217;s not to say that all web sites should be minimal, but that we should use as few features as are necessary to achieve what you need to achieve.</p>
<p>One way of interpreting it is: Given any two possible solutions to a problem, the simpler one is better.</p>
<p>Here are some examples. Note how unnecessary elements have been stripped out from each. There could be a lot more on each page than there is&#8230; but would that make them stronger?</p>
<p>The result is that you have to look at the content. You find yourself interacting with exactly the screen features the designer intended. And you don&#8217;t mind &#8211; it&#8217;s easy, and you get just what you came for.</p>
<p><strong>Why simplicity is good</strong></p>
<ul>
<li>Web sites have goals and all web pages have purposes.</li>
<li> Users&#8217; attention is a finite resource.</li>
<li> It&#8217;s the designer&#8217;s job to help users to find what they want (or to notice what the site wants them to notice)</li>
<li> Stuff on the screen attracts the eye. The more stuff there is, the more different things there are to notice, and the less likely a user is to notice the important stuff.</li>
<li> So we need to enable certain communication, and we also need to minimise noise. That means we need to find a solution that&#8217;s does its stuff with as little as possible. That&#8217;s economy, or simplicity.</li>
</ul>
<p><strong>When &amp; how to make your designs simple</p>
<p>When?</strong></p>
<p>Always!</p>
<p><strong>How?</strong></p>
<p>There are two important aspects to achieving success with simplicity:</p>
<p>Remove unnecessary components, without sacrificing effectiveness.</p>
<p>Try out alternative solutions that achieve the same result more simply.</p>
<p>&#8220;It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.&#8221;</p>
<h3>2 Central layout</h3>
<p>Basically, the vast majority of sites these days are positioned centrally within the browser window. Relatively few are full-screen (liquid) or left-aligned / fixed-size, compared to a few years ago.</p>
<p><strong>Why a central layout is good</strong></p>
<p>This &#8220;2.0&#8243; style is simple, bold and honest. Sites that sit straight front &amp; center feel more simple, bold and honest.</p>
<p>Also, because we&#8217;re being more economical with our pixels (and content), we&#8217;re not as pressurised to cram as much information as possible above the waterline/fold.</p>
<p>We&#8217;re using less to say more, so we can be a bit more free and easy with the amount of space used, and pad out our content with lots of lovely white space.</p>
<p><strong>When &amp; how to use a central layout</strong></p>
<p>I&#8217;d say, position your site centrally unless there&#8217;s a really good reason not to.</p>
<p>You may be wanting to get more creative with the space, or get as much information on-screen as possible (for example with a web app).</p>
<h3>3 Fewer columns</h3>
<p>A few years ago, 3-column sites were the norm, and 4-column sites weren&#8217;t uncommon. Today, 2 is more common, and 3 is the mainstream maximum.</p>
<p>Why using fewer columns is good</p>
<p>Less is more. Fewer columns feels simpler, bolder, and more honest. We&#8217;re communicating less information more clearly.</p>
<p>There&#8217;s also a by-product of the domination of centered layouts. Because we&#8217;re not filling the whole screen so much, and not trying to get as much on-screen at any one time, we simply don&#8217;t need as many columns of information.</p>
<h3>4 Separate top sections</h3>
<p><em><strong>This means making the top of the screen (the main branding &amp; nav area) distinct from the rest (the main content).</strong></em></p>
<p>Of course, there&#8217;s nothing new about this approach. It&#8217;s a good idea, and has been used for ever. But it&#8217;s being used more than ever now, and the distinction is often stronger.</p>
<p><strong>Why distinct top sections are good</strong></p>
<p>The top section says &#8220;Here&#8217;s the top of the page&#8221;. Sounds obvious, but it feels good to know clearly where the page starts.</p>
<p>It also starts the site/page experience with a strong, bold statement. This is very &#8220;2.0&#8243;-spirited. We like strong, simple, bold attitude.</p>
<p>2 of these top-sections contain just branding (Protolize, Mediconmedia), 1 has just navigation (Cross Connector), and the remaining 3 have both.</p>
<p>The weakness of Cross Connector, in my view, is that the logo comes after the nav. I prefer the nav to be high-up, and clear (like e.g. Simple Bits).</p>
<p><strong>When &amp; how to use a distinct top section</strong></p>
<p>On any site, both the main branding and main navigation should be obvious, bold and clear.</p>
<p>So it&#8217;s a good idea to create a clear space at the top of a web site design that positions the logo and nav boldly.</p>
<p>Always put your logo right up the top of the screen. I&#8217;d always recommend putting your main navigation right after it.</p>
<p>It&#8217;s definitely a good thing to mark the top of the page with a section that marks out the high-level screen features as separate from the main site content.</p>
<p>The top section should be visually distinct from the rest of the page content. The strongest way to differentiate is to use a bold, solid block of different colour or tone, but there are alternatives.</p>
<h3>5 Solid areas of screen real-estate</h3>
<p>Leading on from the clearly differentiated top area, you&#8217;ll notice that lots of sites define the various areas of real-estate boldly and clearly.</p>
<p>Real estate comes in various forms, including:</p>
<ul>
<li>Navigation</li>
<li> Background / canvas</li>
<li> Main content area</li>
<li> Other stuff</li>
<li> Callouts / cross-links</li>
</ul>
<p>It&#8217;s possible to design a web page so that these areas are immediately distinct from their neighbours.</p>
<p>The strongest way to do this is using colour.</p>
<p>But white space can be just as effective.</p>
<p>The risk with strong colour is that it draws the eye, so it can take attention away from other relevant screen elements.</p>
<p>I think that placing clean content on white space creates an easier experience, helping the viewer to feel more relaxed and free to browse.</p>
<h3>6 Simple nav</h3>
<p>Permanent navigation &#8211; your global site nav that appears on every page as part of the page template &#8211; needs to be clearly identifiable as navigation, and should be easy to interpret, target and select.</p>
<ul>
<li>2.0 design makes global navigation large, bold, clean and obvious.</li>
<li> Inline hyperlinks (links within text) are typically clearly differentiated from normal text.</li>
</ul>
<p><strong>Why simple navigation is better</strong></p>
<p>Users need to be able to identify navigation, which tells them various important information:</p>
<ul>
<li> Where they are (in the scheme of things)</li>
<li> Where else they can go from here</li>
<li> And what options they have for doing stuff</li>
</ul>
<p>Following the principle of simplicity, and general reduction of noise, the best ways to clarify navigation are:</p>
<ul>
<li>Positioning permanent navigation links apart from content</li>
<li> Differentiating navigation using colour, tone and shape</li>
<li> Making navigation items large and bold</li>
<li> Using clear text to make the purpose of each link unambiguous</li>
</ul>
<p><strong>How to keep your nav simple</strong></p>
<p>Simply remember the key: navigation should be clearly distinguishable from non-navigation.</p>
<p>Inline hyperlinks should also stand out sufficiently from the text around them.</p>
<p>Check out these snippets. In each case, you&#8217;re in do doubt what&#8217;s a link. (Personally, I prefer using blue text (non-underlined) which turns to underlined red on hover&#8230;)</p>
<h3>7 Bold logos</h3>
<p>A clear, bold, strong brand &#8211; incorporating attitude, tone of voice, and first impression &#8211; is helped by a bold logo.</p>
<p>Here are some (100% scale). Notice that logos are tending to be quite large, in line with the general 2.0 principles.</p>
<p><strong>Why?</strong></p>
<p>Strong, bold logos say &#8220;This is who we are.&#8221; in a way that we can believe.</p>
<p><strong>Your logo should:</strong></p>
<ul>
<li> work visually in its main context, and any other uses in which it may be used (like flyers or t-shirts?)</li>
<li> be recognisable and distinctive</li>
<li> represent your brand&#8217;s personality and qualities on first viewing</li>
</ul>
<h3>8 Bigger text</h3>
<p><em><strong>Lots of &#8220;2.0&#8243; web sites have big text, compared to older-style sites.</strong></em></p>
<p>If you fill the same amount of space with less &#8220;stuff&#8221;, you have more room.</p>
<p>When you&#8217;ve made more room, you can choose to make more important elements bigger than less important elements (if they&#8217;re still there).</p>
<p>Making things bigger makes them more noticeable than lesser elements. This effect has been used throughout the history of print design, on headings, title pages and headlines.</p>
<p>Not only does big text stand out, but it&#8217;s also more accessible to more people. That&#8217;s not just people with visual impairments, but also people looking on LCD screens in sunlight, people sitting a little further from the screen, and people just skimming the page. If you think about it, that could be quite a lot of people!</p>
<p><strong>When &amp; how to use big text</strong></p>
<p><em><strong>Big text makes most pages more usable for more people, so it&#8217;s a good thing.</strong></em></p>
<p>Of course, size is relative. You can&#8217;t take a normal, busy site, make ALL the text bigger, and make it more usable. That might not work, that might be worse.</p>
<p>In order to use big text, you have to make room by simplifying, removing unnecessary elements.</p>
<p>You also need to haave a reason to make some text bigger than other text. And the text must be meaningful and useful. There&#8217;s no point adding some big text just because it&#8217;s oh-so 2.0!</p>
<p>If you need to have a lot of information on a page, and it&#8217;s all relatively equal in importance, then maybe you can keep it all small.</p>
<h3>9 Bold text introductions</h3>
<p><em><strong>Leading on from the big text theme, many sites lead with strong all-text headline descriptions.</strong></em></p>
<p>These normally set out the site&#8217;s USP, <a href="http://en.wikipedia.org/wiki/Elevator_pitch" target="_blank">elevator pitch</a> or main message.</p>
<p>They tend to be graphical, rather than regular text. The reason for this is that designers want a lot of control over the page&#8217;s visual impact, especially early on in a browsing experience.</p>
<p><strong>When &amp; how to use a bold text intro</strong></p>
<p>Only use one if you&#8217;ve got something bold to say. v (If you haven&#8217;t got something bold to say, maybe it&#8217;s worth having a think about the purpose of your page/site and coming up with somethign worth saying boldly!)</p>
<p>If you have a simple message that you want to be seen first, go ahead and headline it. Make it clear by putting it against a relatively plain background.</p>
<h3>10 Strong colours</h3>
<p>Bright, strong colours draw the eye. Use them to divide the page into clear sections, and to highlight important elements.</p>
<p>When you have a simple, stripped-out design, you can use a bit of intense colour to help differentiate areas of real-estate and to draw attention to items you want the visitor to notice.</p>
<p><strong>Remember to use sparingly</strong></p>
<p>If you&#8217;re using strong colours to attract the eye, it only works if there&#8217;s lots of area that isn&#8217;t strongly coloured.</p>
<p>If everything is trying to attract the eye, then the eye just gets confused, and the site will feel confusing and chaotic.</p>
<h3>11 Rich surfaces</h3>
<p>Most 2.0-style sites use subtle 3D effects, sparingly, to enhance the qualitative feel of the design.</p>
<p>We all know that these little touches just feel nice, but we may not know why.</p>
<p>Realistic surface effects (like drop-shadows, gradients and reflections) help make a visual interface feel more real, solid and &#8220;finished&#8221;.</p>
<p>They may also remind us of certain tactile or aesthetic qualities of real-world objects, such as water droplets, shiny plastic buttons, and marble floors. Making stuff look solid and real can make it look &#8220;touchable&#8221;, which is likely to appeal.</p>
<p><strong>When &amp; how to use rich surfaces</strong></p>
<p>The golden rule here is to use with care, and not to overdo it.</p>
<p>Like any of these techniques, a rich surface may add value to your design when used sensitively and appropriately.</p>
<p>If your navigation/icon/logo/layout sucks fundamentally, you can&#8217;t polish your way out. Get the fundamentals right first.</p>
<p>It can also be important to maintain a consistent light-source. Although this can get more complex with the illusion of back-lit diffusion in buttons etc., you still know whether an overall design feels consistent.</p>
<p>3D effects can also make elements seem to stand out from the page, but only if the rest of the page is relatively flat.</p>
<p>Avoid trying to make your entire design 3D-realistic because:</p>
<ul>
<li> It&#8217;s more work</li>
<li> It will increase the overall size of the page assets</li>
<li> And you don&#8217;t need to. 3D effects use lots of different pixels, and different pixels should be used deliberately to draw the visitor&#8217;s attention to key content elements, or to enhance &#8220;soft&#8221; informational aspects. A little goes a long way.</li>
</ul>
<h3>12 Gradients</h3>
<p><em><strong>Web 2.0 design has more gradients than the Alps.</strong></em></p>
<p><strong>Why gradients are so useful</strong></p>
<p>Gradients soften areas that would otherwise be flat colour/tone.</p>
<p>They&#8217;re also an integral part of drop-shadows, and the inner-glows and specular highlights you see on glass- or plastic-style buttons.</p>
<p>Note that gradients usually work best when juxtaposed with areas of flat colour or tone.</p>
<h3>13 Reflections</h3>
<p>The illusion of reflection is one of the most common applications on gradients.</p>
<p>These commonly come in 2 kinds:</p>
<ul>
<li> Highlights caused by light reflecting on shiny surfaces</li>
<li> That shiny table effect!</li>
</ul>
<p><strong>Specular highlights</strong></p>
<p>Realistic effects of water droplets, glass beads, shiny plastic buttons etc. have been very popular over the past couple of years.</p>
<p><strong>That shiny table effect!</strong></p>
<p>Pioneered by Apple again (I&#8217;m sure). This is a really nice effect which is so prevalent now, it&#8217;s in danger of being overused, now starting to look tired and is falling out of favour with designers.</p>
<p>Remember, of course, that web designers are usually more sensitive to these things, so even if we&#8217;re getting turned off by it, the general public may still think it&#8217;s cool for some time to come.</p>
<h3>14 Cute icons</h3>
<p>Icons play an important role in Web 2.0 design. Today we use fewer, better icons that carry more meaning.</p>
<p>Icons can be useful when they&#8217;re easily recognisable and carry a clear meaning. In lots of other cases, a simple word is more effective.</p>
<p>In the old days, icons were sometimes overused. It seemed that everyone wanted an icon for every navigation link or tab. Now, we use clear text more extensively, and are less ready to litter a page with icons.</p>
<p>Where 2.0 designers do employ icons, they are reserved for higher-value spots, where .</p>
<p>Simpler, more spacious designs demand less attention and allow for a richer icons.</p>
<p>Some examples, demonstrating various attributes.</p>
<h3>15 Star flashes</h3>
<p>These are the star-shaped labels that you see stuck on web pages, alerting you to something important.</p>
<p>They work by evoking price stickers in low-cost stores. For this reason, they suit the start-up ethic of many 2.0 sites, but for the same reason may cheapen other sites.</p>
<p>They can really work well, but of course should only be used to draw attention to something important.</p>
<p>I&#8217;d recommend only using one on a page (at most!).</p>
<p>Another style that&#8217;s seeming over-used, and will probably run its course over the next year.</p>
<p>Source:<a href="http://webdesignfromscratch.com/" target="_blank"> http://webdesignfromscratch.com/</a><br />
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2009/06/web-2-0-and-seo/" title="Web 2.0 and SEO">Web 2.0 and SEO</a></li>
<li><a href="http://www.themeheven.com/2009/04/how-to-create-web-20-site/" title="How to Create Web 2.0 Site">How to Create Web 2.0 Site</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/07/how-to-design-web-2-0-layout-guide/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>High paying Google Adsense keywords</title>
		<link>http://www.themeheven.com/2009/06/high-paying-google-adsense-keywords/</link>
		<comments>http://www.themeheven.com/2009/06/high-paying-google-adsense-keywords/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 05:59:18 +0000</pubDate>
		<dc:creator>themeheven</dc:creator>
				<category><![CDATA[Adsense]]></category>
		<category><![CDATA[HOW TO]]></category>
		<category><![CDATA[keywords]]></category>

		<guid isPermaLink="false">http://www.themeheven.com/2009/06/high-paying-google-adsense-keywords/</guid>
		<description><![CDATA[High paying Google Adsense keywords
Google Adsense is a best way to earn some money from your site. Using high paying keywords you will increase your adsense revenue. We know keyword is a most important part for the high paying Google ads. Here is some of the keywords whic payout on the range of $1-$100. I [...]]]></description>
			<content:encoded><![CDATA[<p>High paying Google Adsense keywords</p>
<p>Google Adsense is a best way to earn some money from your site. Using high paying keywords you will increase your adsense revenue. We know keyword is a most important part for the high paying Google ads. Here is some of the keywords whic payout on the range of $1-$100. I think you will get some idea from this collection.  </p>
<p><strong>The keywords </strong>:</p>
<p>1. Structured settlements</p>
<p>2. Mesothelioma</p>
<p>3. Acne</p>
<p>4. Life Insurance</p>
<p>5. Death Insurance</p>
<p>6. Bextra</p>
<p>7. Asbestos</p>
<p>8. Car Insurance</p>
<p>9. Dental Plans</p>
<p>10. Private Jets</p>
<p>11. Debt Consolidation</p>
<p>12. Credit Cards</p>
<p>13. Rewards Cards</p>
<p>14. Equity Loans</p>
<p>15. Equity Line Credit</p>
<p>16. Loans</p>
<p>17. Mortgages</p>
<p>18. Pay Day Loans</p>
<p>19. Cash Advance</p>
<p>20. Bankruptcy</p>
<p>21. Reduce Debt</p>
<p>22. Refinance</p>
<p>23. Jet Charter</p>
<p>24. Vioxx</p>
<p>25. Wrongful death</p>
<p>26. Legal Advice</p>
<p>27. Taxes</p>
<p>28. Investing</p>
<p>29. Bonds</p>
<p>30. Online Trading</p>
<p>31. IRA Rollover</p>
<p>32. Refinance Quotes</p>
<p>33. Adult Education</p>
<p>34. Distance Learning</p>
<p>35. Alcohol Treatment</p>
<p>36. Rehab</p>
<p>37. Drug Rehab</p>
<p>38. Spyware</p>
<p>39. Cell Phone Plans</p>
<p>40. Calling Cards</p>
<p>41. VOIP</p>
<p>42. Weight Loss</p>
<p>43. Canadian Pharmacy</p>
<p>44. Depression</p>
<p>45. Spam Filter</p>
<p>46. Lasik</p>
<p>47. Facelift</p>
<p>48. Teeth Whitening</p>
<p>49. Annuity</p>
<p>50. Anti Virus Protection</p>
<p>51. Adult Diaper</p>
<p>52. Free Credit Report</p>
<p>53. Credit Score</p>
<p>54. Satellite</p>
<p>55. Anti Spam Software</p>
<p>56. Dedicated Hosting</p>
<p>57. Domain Name</p>
<p>58. Need Money</p>
<p>59. Bachelor Degree</p>
<p>60. Master Degree</p>
<p>61. Doctorate Degree</p>
<p>62. Work at Home</p>
<p>63. Quick Book</p>
<p>64. Extra Money</p>
<p>65. Eloan</p>
<p>66. Malpractice Lawyer</p>
<p>67. Lenox China</p>
<p>68. Cancer</p>
<p>69. Payperclick</p>
<p>70. Personal Injury Attorney</p>
<p>71. Lexington Law</p>
<p>72. Video Conferencing</p>
<p>73. Transfer Money</p>
<p>74. Windstar Cruise</p>
<p>75. Casinos Online</p>
<p>76. Term Life</p>
<p>77. Online Banking</p>
<p>78. Borrow Money</p>
<p>79. Low Interest Credit Cards</p>
<p>80. Personal Domain Name</p>
<p>81. Cellular Phone Rental</p>
<p>82. Internet Broker</p>
<p>83. Trans Union</p>
<p>84. Cheap Hosting</p>
<p>85. University Degrees Online</p>
<p>86. Online Marketing</p>
<p>87. Consolidate</p>
<p>88. Helpdesk Software</p>
<p>89. Web Host</p>
<p>90. Homeowner&#8217;s Insurance</p>
<p>91. Yellow Page Advertising</p>
<p>92. Travel Insurance</p>
<p>93. Register Domain</p>
<p>94. Credit Counseling</p>
<p>95. Email Hosting</p>
<p>96. Business Credit</p>
<p>97. Consumer Credit</p>
<p>98. Blue Cross</p>
<p>99. Laptop Computer</p>
<p>Source: http://ezinearticles.com/</p>
<p><strong>And Some More here&#8230;</p>
<p></strong> Forex, Insurance, Laptop Computer, Drug Rehab, Equity Line Credit, Investing, Payperclick, Video Conferencing, Malpractice Lawyer, University Degrees Online, Online Banking, Canadian Pharmacy, Loans, Online Trading, Mortgages, Credit Cards, Debt Consolidation, Private Jets, Dental Plans, Car Insurance, Asbestos, Death Insurance, Life Insurance, Acne, Mesothelioma, Structured settlements, search engine optimization, affiliate programs, register domain, merchant account, domain registration, refinance, hard drive recovery, buy contacts, web hosting, merchant accounts, merchant account application, student loan, credit card application, point of sale software, broadband phone, video conference, video conferencing, wireless security camera, Email Hosting, Business Credit, Car Insurance, Wisconsin Mortgage, Cash Annuity, Wrongful Death, Sell Notes, California Mortgage, Texas Mortgage, Online Trading, IRA Rollover, Doctorate Degree, Credit Counseling, Master Degree, Term Life, Low Interest Credit Cards, Bankruptcy, Tax Attorney, Slots, Car Credit, Alcohol Treatment, Pay Day Loans, Accept Credit Cards, Adult Education, Cash Advance, Spam Filter, Anti Virus Protection, Life Insurance, Breast Cancer, Cell Phone Plans, SEO, Blue Cross, Homeowner&rsquo;s Insurance, Structured settlements, VOIP, Acne, Debt Consolidation, Web Hosting Reseller, Dedicated Hosting, Consolidate, Consumer Credit, Rehab, Reduce Debt, Teeth Whitening, Web Host, Refinance Quotes, Private Jets, Equity Loans, Idaho Mortgage, Internet Broker, Casinos Online, Helpdesk Software, Drug Rehab, Investing, Bachelor Degree, Distant Learning, Poker, Online Banking, Free Credit Report, Adult Diaper, Casinos, Dishtv, Diabetes, Jet Charter, Lexington Law, Personal Injury Attorney, Blue Shield, Yellow Page Advertising, Spyware, Cheap Hosting, Server, Ameriquest Mortgage, Register Domain, Lawyer, Lasik, Cruise, Direct Mail, Cellular Phone Rental, Phone, directv, Windstar Cruise, College, prepaid legal, Travel Insurance, Need Money, Personal Domain Name, Depression, Transfer Money, Asbestos, Bextra, Viagra, Divorce, Work at Home, Online Marketing, Taxes, Weight Loss, Vioxx, Calling Cards, laser hair removal, consumer credit counseling, business web hosting, search engine marketing etc. </p>
<p>Payouts are depend on PPC. May you know about the Traffic and it depends on.</p>
<p>&nbsp;</p>
<h3>See Also Following Topics:</h3>
<ul class="related_post">
<li><a href="http://www.themeheven.com/2009/04/how-to-embed-google-ad-in-your-post/" title="How to: Embed Google Ad in your post">How to: Embed Google Ad in your post</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.themeheven.com/2009/06/high-paying-google-adsense-keywords/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
