Posts

Showing posts from May, 2014

History of Indian Independence Day

Image
The history behind Indian independence is very painful and is full of sacrifices. And only because of those sacrifices India freed herself from the shackles of British Empire on 15th August 1947. It was an endless struggle of millions faceless Indians, who made the inhabitants united and fought for the freedom of their own country. The year 1857 is a benchmark in the history of Indian independence. On 29th march 1875, a brave Indian soldier first ever raised his voice against the British Empire and later it resulted to Sepoy Mutiny......

Pagination with CodeIgniter

The Model models/ model_page_name .php class class_name extends CI_Model {     public function __construct() {         parent::__construct();     }     public function record_count() {         return $this->db->count_all("table_name");     }

Protect Your WordPress Site From Hackers

1. Delete the username “admin”   The default username when creating a WordPress site is “admin.” Most people keep this username. This makes it dead easy for hackers to guess your username. Then they are already half logged in to your site. So delete any account with the username “admin.” Note: if the account with username “admin” is the only user that currently has Administrator-level access, you won’t be able to delete it until you first create and login with a different Administrator-level account. WordPress needs to ensure that there is some way to access Administrator functions for your site.

send email with attachment in php

Use the phpmailer class to add attachments function emailWithAttachment ( $to , $subject , $message , $attachment )   { $mail = new PHPMailer (); $mail -> AddAddress ( $to ); $mail -> From = "your@email.com" ; $mail -> FromName = "Your Name" ; $mail -> Subject = $subject ; $mail -> Body = $message ;