How to generate random character strings in a range in PHP?

Sometimes you may need to generate random strings, such as different passwords. This article tries to show you some tricks to generate different random strings in PHP. The following function acctepts one argument $length which is number of characters on the return word. You can change the arguments to get your need. function generatePassword($length = [...] READ MORE   

PHP: Get excerpt from the text

The following function will extract the excerpt from the given paragraph text. Following function accepts two arguments. $text is the text supplied to be excerpted. $number is the number of words to be returned. function getExcerpt($text, $numb) { $text = strip_tags($text); if (strlen($text) > $numb) { $text = substr($text, 0, $numb); $text = substr($text, 0, [...] READ MORE   

Send email in Zend Framework 1

Hello there, I wrote this code recently in Zend Framework to send emails from the application. The following examples are for sending text only email, email with single attachment and email with multiple attachments. Text only email $config = array( 'ssl' => 'tls', 'auth' => 'login', 'username' => 'your_smtp_username', 'password' => 'your_smtp_password' ); $tr = [...] READ MORE   

Zend Framework 2: Simple Login Authentication

I assume that you have created the database and global configuration for the database connection. Step1: Create ‘user’ table CREATE TABLE `user` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `user_email` VARCHAR(100) NOT NULL, `user_password` VARCHAR(60) NOT NULL, `user_role` TINYINT(4) NOT NULL DEFAULT '1', `user_status` TINYINT(4) NOT NULL DEFAULT '1', `user_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON [...] READ MORE   

Facebook Like Box

Facebook Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. The Like Box enables users to: See how many users already like this Page, and which of their friends like it too Read recent posts from the Page Like the Page with one click, [...] READ MORE   

WPS Google Analytics

WPS Google Analytics allows you to easilly add your Google Analytics code through out the whole site. Just add your ID, choose if you are on a sub-domain (setting in Google Analytics), and enter the domain. WPS Google Analytics will not track admin users logged-in. To Download Donations Thanks for downloading and installing my [...] READ MORE   

Include Jquery in Zend Framework 1 using ZendX

As many of you know – ZendX stands for “Zend Framework – Extras Library”. They were introduced since Zend Framework version 1.7 and is here to help us implement alternatives to already existing solutions. I am a big fan of jQuery and therefore will explain how to include ZendX library and start using jQuery with [...] READ MORE   

Twitter Tweets Box

Twitter Tweets Box is a Widgets let you display Twitter updates on your website. This plugin includes the following features and options Display your most recent Twitter updates on any webpage. Select width and height of the widget in the options. Display your twitter messages on any page or post. Installation Download the plugin. Upload [...] READ MORE   

Wordpress Poll

WordPress Poll is completely ajax powered polling system. This poll plugin supports both single and multiple selection of answers. This poll has the following features which uses both ajax and jquery. Administrator have options to display more than one poll in the widget area. Administrator can specify how many polls to be displayed in the [...] READ MORE   

3D Tag Cloud

3D Tag Cloud allows you to display your site’s tags using jquery that rotates the tags in 3D. It works just like a regular tags cloud, but is more visually exciting. Clicking the tags will take you to the appropriate page. Might not work with less than IE9. New Configuration options been added to the [...] READ MORE   

Captcha Code Authentication

Adds Captcha Code anti-spam methods to WordPress forms. This  captcha can be included in the following forms. Comments form Registration form Lost password form Login form. Installation Download the plugin. Upload to your blog (/wp-content/plugins/). Activate it. Click the ‘Captcha’ menu. Fill in the options. Important Note: It is mandatory to save options in this [...] READ MORE