Creating a ZIP file with PHP

How can we zip two files and save output as output.zip. For example, in Gmail you can download all the attachment as a single zip file. How can we write that code using php.

First step, you have to get Pear Zip package at http://pear.php.net/package/Archive_Zip/download.

Next step, write out some simple PHP code and get thing done.
Continue reading »


Working with PHP interfaces

When you create an interface, you’re basically creating a prototype/blueprint of functions that classes using the interface must implement in order to be valid. It’s usually easier to learn from example, so here’s a basic interface that represents a Page.

interface PageInterface
{
public function render();
}


Continue reading »


How to add Twitter updates to blog?

twibadge

twibadge

TwiBadge is a Wordpress plugin, in a widget format that resides on your Wordpress blog sidebar. It displays all your Tweets and replies, basically what you see on twitter.com/home. TwiBadge also comes with a follow button that allow any interested visitors to easily add themselves as followers.
Continue reading »


5 most important things to design your website

The creation of a website requires loads of creativity as sometimes a website acts as a source of first impressions. These days in the era of people always online the websites are the first things which people look for any information. Hence it is essential that you design your website in the best possible way so that the saying holds well in your situation too that the first impression is the best impression.

1. Decide the purpose of the website

The first thing which you need to take into account is to decide the purpose for which you are designing the website. Just decide the things which you need to insert in your website. It is important that you decide on the fact that what would be the focus of your website as this is the thing which will determine the actual foundation as well as the viewership profile of your website. Consider the place wherein you would be deciding on the fact that the website would focus on acting as a mode of online shopping or it would just provide information on the different products.
Continue reading »


Creating custom pattern in Photoshop

Most of the time, default Adobe Photoshop’s patterns just could not satisfied designers needs. Minutes later you will be creating your own custom pattern for buttons, interfaces, photo scan-lines, etc.

Custom pattern in Adobe Photoshop


Continue reading »