<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sourav&#039;s Blog</title>
	<atom:link href="http://souravkumarpaul.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://souravkumarpaul.wordpress.com</link>
	<description>Help for coding</description>
	<lastBuildDate>Tue, 22 Nov 2011 12:05:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='souravkumarpaul.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sourav&#039;s Blog</title>
		<link>http://souravkumarpaul.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://souravkumarpaul.wordpress.com/osd.xml" title="Sourav&#039;s Blog" />
	<atom:link rel='hub' href='http://souravkumarpaul.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Codeigniter Image Manupulation Example</title>
		<link>http://souravkumarpaul.wordpress.com/2011/10/07/codeigniter-image-manupulation-example/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/10/07/codeigniter-image-manupulation-example/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 09:31:38 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=771</guid>
		<description><![CDATA[Create a folder &#8220;uploaded&#8221; where your &#8220;application&#8221; folder is. (Not inside &#8220;application&#8221; folder&#8221;). Create a sub folder &#8220;thumbs&#8221; inside &#8220;uploaded&#8221;. Put a font in system/fonts/arial.ttf (copy the font from your windows).<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=771&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#0000ff;"><strong>Create a folder &#8220;uploaded&#8221; where your &#8220;application&#8221; folder is. (Not inside &#8220;application&#8221; folder&#8221;). Create a sub folder &#8220;thumbs&#8221; inside &#8220;uploaded&#8221;. Put a font in system/fonts/arial.ttf (copy the font from your windows).</strong></span></p>
<div style="border:4px solid #0099CC;padding:15px;"><pre class="brush: php;">
&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Imagetest extends CI_Controller {
	function __construct() {
		parent::__construct();
		$this-&gt;load-&gt;helper('url');
	}
	function index() {
		$path = realpath(APPPATH . '../uploaded');
		$file = &quot;asd.jpg&quot;;

$path = str_replace('\\','/',$path);
		$config = array(
			'source_image' =&gt; $path.'/'.$file,
			'new_image' =&gt; $path.'/thumbs/'.$file,
			'maintain_ration' =&gt; true,
			'width' =&gt; 150,
			'height' =&gt; 100,
			'x_axis' =&gt; '100',
			'y_axis' =&gt; '40',
			'rotation_angle' =&gt; '180',
			'wm_text'		=&gt; 'Test asdfsda sa dsa dsa dsa a',
			'wm_type'		=&gt; 'text',
			'wm_font_path'		=&gt; 'system/fonts/arial.ttf',
			'wm_font_size'		=&gt; '30',
			'wm_font_color'		=&gt; 'FF0000',
			'wm_vrt_alignment'		=&gt; 'bottom',
			'wm_hor_alignment'		=&gt; 'center',
			'wm_padding'		=&gt; '10'

		);
		print &quot;&lt;pre&gt;&quot;;
		print_r($config);
		$this-&gt;load-&gt;library('image_lib', $config);

		//$this-&gt;image_lib-&gt;crop();
		//$this-&gt;image_lib-&gt;clear();
		$this-&gt;image_lib-&gt;resize();
		/*$this-&gt;image_lib-&gt;rotate();
		$this-&gt;image_lib-&gt;clear();
		if(!$this-&gt;image_lib-&gt;watermark()) {
			echo $this-&gt;image_lib-&gt;display_errors();
		}	*/
		$this-&gt;load-&gt;view('imagetest');
	}
}
</pre></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/771/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=771&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/10/07/codeigniter-image-manupulation-example/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>
	</item>
		<item>
		<title>Add field to media edit form</title>
		<link>http://souravkumarpaul.wordpress.com/2011/06/24/add-field-to-media-edit-form/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/06/24/add-field-to-media-edit-form/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 10:14:55 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=753</guid>
		<description><![CDATA[Output:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=753&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="border:4px solid #0099cc;padding:15px;"><pre class="brush: php;">
&lt;?php
// hook media edit form
add_filter(&quot;attachment_fields_to_edit&quot;, &quot;my_image_attachment_fields_to_edit&quot;, null, 2); add_filter(&quot;attachment_fields_to_save&quot;, &quot;my_image_attachment_fields_to_save&quot;, null, 2); function my_image_attachment_fields_to_edit($form_fields, $post) { 	// $form_fields is a special array of fields to include in the attachment form 	// $post is the attachment record in the database 	//     $post---&gt;post_type == 'attachment'
	// (attachments are treated as posts in WordPress)

	// add our custom field to the $form_fields array
	// input type=&quot;text&quot; name/id=&quot;attachments[$attachment-&gt;ID][custom1]&quot;
	$checked = get_post_meta($post-&gt;ID, &quot;_is_photo_gallery&quot;, true);
	if($checked){
		$is_checked=&quot;checked&quot;;
	}else{
		$is_checked='';
	}
	$form_fields[&quot;is_photo_gallery&quot;] = array(
		&quot;label&quot; =&gt; __(&quot;Show In Photo Gallery&quot;),
		&quot;input&quot; =&gt; &quot;html&quot;, // this is default if &quot;input&quot; is omitted
		&quot;html&quot; =&gt; &quot;&lt;input id=&quot;attachments[{$post-&gt;ID}][is_photo_gallery]&quot; type=&quot;checkbox&quot; name=&quot;attachments[{$post-&gt;ID}][is_photo_gallery]&quot; value=&quot;1&quot; /&gt;&quot;
	);
	// if you will be adding error messages for your field,
	// then in order to not overwrite them, as they are pre-attached
	// to this array, you would need to set the field up like this:
	//$form_fields[&quot;custom1&quot;][&quot;label&quot;] = __(&quot;Custom Text Field&quot;);
	//$form_fields[&quot;custom1&quot;][&quot;input&quot;] = &quot;text&quot;;
	//$form_fields[&quot;custom1&quot;][&quot;value&quot;] = get_post_meta($post-&gt;ID, &quot;_custom1&quot;, true);

	return $form_fields;
}
function my_image_attachment_fields_to_save($post, $attachment) {
	// $attachment part of the form $_POST ($_POST[attachments][postID])
	// $post attachments wp post array - will be saved after returned
	//     $post['post_type'] == 'attachment'
	if( isset($attachment['is_photo_gallery']) ){
		// update_post_meta(postID, meta_key, meta_value);
		update_post_meta($post['ID'], '_is_photo_gallery', $attachment['is_photo_gallery']);
	}
	return $post;
}
?&gt;
</pre></p>
<p><strong>Output:</strong></p>
<p><a href="http://souravkumarpaul.files.wordpress.com/2011/06/m1.jpg"><img class="aligncenter size-medium wp-image-763" title="m" src="http://souravkumarpaul.files.wordpress.com/2011/06/m1.jpg?w=300&#038;h=129" alt="" width="300" height="129" /></a></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/753/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=753&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/06/24/add-field-to-media-edit-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>

		<media:content url="http://souravkumarpaul.files.wordpress.com/2011/06/m1.jpg?w=300" medium="image">
			<media:title type="html">m</media:title>
		</media:content>
	</item>
		<item>
		<title>Add field to post/page edit form</title>
		<link>http://souravkumarpaul.wordpress.com/2011/06/24/add-field-to-postpage-edit-form/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/06/24/add-field-to-postpage-edit-form/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 10:12:21 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=750</guid>
		<description><![CDATA[Output:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=750&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="border:4px solid #0099cc;padding:15px;"><pre class="brush: php;">
&lt;?php
//hook admin edit page
add_action( 'add_meta_boxes', 'myplugin_add_custom_box' );
//save data
add_action( 'save_post', 'myplugin_save_postdata' );

/* Adds a box to the main column on the Post and Page edit screens */
function myplugin_add_custom_box() {
    add_meta_box(
        'myplugin_sectionid',
        __( 'Custom Text for Post', 'myplugin_customtext' ),
        'myplugin_inner_custom_box',
        'post'
    );
    add_meta_box(
        'myplugin_sectionid',
        __( 'Custom Text for Page', 'myplugin_customtext' ),
        'myplugin_inner_custom_box',
        'page'
    );
}
/* Prints the box content */
function myplugin_inner_custom_box() {
  // Use nonce for verification
  wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' );
	global $post;
	$myplugin_customtext = get_post_meta($post-&gt;ID,'myplugin_customtext',true);
	$myplugin_description = get_post_meta($post-&gt;ID,'myplugin_description',true);
  // The actual fields for data entry
  echo '&lt;p&gt;&lt;label for=&quot;myplugin_new_field&quot;&gt;';
       _e(&quot;Title&quot;, 'myplugin_customtext' );
  echo '&lt;/label&gt;&lt;/p&gt;';
  echo '&lt;div&gt;&lt;input type=&quot;text&quot; id=&quot;myplugin_customtext&quot; name=&quot;myplugin_customtext&quot; value=&quot;'.$myplugin_customtext.'&quot; size=&quot;25&quot; style=&quot;width:100%;&quot; /&gt;&lt;/div&gt;';

  echo '&lt;p&gt;&lt;label for=&quot;myplugin_new_field&quot;&gt;';
       _e(&quot;Description&quot;, 'myplugin_customtext' );
  echo '&lt;/label&gt;&lt;/p&gt;';
  echo '&lt;div style=&quot;border:1px solid #DFDFDF;&quot;&gt;&lt;textarea id=&quot;myplugin_description&quot; name=&quot;myplugin_description&quot;&gt;'.$myplugin_description.'&lt;/textarea&gt;&lt;/div&gt;';
?&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
    jQuery(document).ready(function() {
    jQuery(&quot;#myplugin_description&quot;).addClass(&quot;mceEditor&quot;);
    if ( typeof( tinyMCE ) == &quot;object&quot; &amp;&amp; typeof( tinyMCE.execCommand ) == &quot;function&quot; ) {
    tinyMCE.execCommand(&quot;mceAddControl&quot;, true, &quot;myplugin_description&quot;);
    }
    });
  &lt;/script&gt;
&lt;?php
}
function myplugin_save_postdata( $post_id ) {
  // verify if this is an auto save routine.
  // If it is our form has not been submitted, so we dont want to do anything
  if ( defined( 'DOING_AUTOSAVE' ) &amp;&amp; DOING_AUTOSAVE )
      return;

  // verify this came from the our screen and with proper authorization,
  // because save_post can be triggered at other times

  if ( !wp_verify_nonce( $_POST['myplugin_noncename'], plugin_basename( __FILE__ ) ) )
      return;

  // Check permissions
  if ( 'page' == $_POST['post_type'] )
  {
    if ( !current_user_can( 'edit_page', $post_id ) )
        return;
  }
  else
  {
    if ( !current_user_can( 'edit_post', $post_id ) )
        return;
  }

  // OK, we're authenticated: we need to find and save the data
	$myplugin_customtext = $_POST['myplugin_customtext'];
	$myplugin_description = $_POST['myplugin_description'];

	 update_post_meta($post_id, &quot;myplugin_customtext&quot;, $myplugin_customtext);
	 update_post_meta($post_id, &quot;myplugin_description&quot;, $myplugin_description);
  // Do something with $mydata
  // probably using add_post_meta(), update_post_meta(), or
  // a custom table (see Further Reading section below)
   return true;
}
?&gt;
</pre></p>
<p><strong>Output:</strong><br />
<a href="http://souravkumarpaul.files.wordpress.com/2011/06/p.jpg"><img class="aligncenter size-medium wp-image-759" title="p" src="http://souravkumarpaul.files.wordpress.com/2011/06/p.jpg?w=270&#038;h=300" alt="" width="270" height="300" /></a></pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/750/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=750&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/06/24/add-field-to-postpage-edit-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>

		<media:content url="http://souravkumarpaul.files.wordpress.com/2011/06/p.jpg?w=270" medium="image">
			<media:title type="html">p</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom Comment Form in WordPress</title>
		<link>http://souravkumarpaul.wordpress.com/2011/06/24/custom-comment-form-in-wordpress/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/06/24/custom-comment-form-in-wordpress/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 10:08:17 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=746</guid>
		<description><![CDATA[Output: Front End: Now Show the fields in admin section Output: Admin End:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=746&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="border:4px solid #0099cc;padding:15px;"><pre class="brush: php;">
&lt;?php
// get defaults
add_filter('comment_form_defaults','mytheme_comments_form_defaults');
// get default fields
add_filter( 'comment_form_default_fields', 'comment_fields' );
// save extra fields in database
add_action( 'comment_post', 'save_comment' );

function mytheme_comments_form_defaults($default) {
	$default['comment_notes_after'] = 'You Can Add html code&lt;br/&gt;&lt;input type=&quot;checkbox&quot; name=&quot;is_newsletter&quot; id=&quot;is_newsletter&quot; value=&quot;1&quot;/&gt;Subcsribe to our custom newsletter.&lt;br/&gt;';
	//unset($default['comment_notes_after']);
	return $default;
}
function comment_fields($fields)
{
	global $current_user;
	if(is_user_logged_in()){
		get_currentuserinfo();
		$phone = get_usermeta($current_user-&gt;ID,'business_phone');
		$address = get_usermeta($current_user-&gt;ID,'address');
	}
    $fields['url'] = '';
    $fields['location'] = '&lt;p class=&quot;comment-form-location&quot;&gt;' . '&lt;label for=&quot;location&quot;&gt;' . __( 'Location' ) . '&lt;/label&gt; ' .
      '&lt;input id=&quot;location&quot; name=&quot;location&quot; type=&quot;text&quot; value=&quot;' . esc_attr( $address ) . '&quot; size=&quot;30&quot; /&gt;&lt;/p&gt;';

    $fields['phone'] = '&lt;p class=&quot;comment-form-phone&quot;&gt;' . '&lt;label for=&quot;phone&quot;&gt;' . __( 'Phone' ) . '&lt;/label&gt; ' .
      '&lt;input id=&quot;phone&quot; name=&quot;phone&quot; type=&quot;text&quot; value=&quot;' . esc_attr( $phone ) . '&quot; size=&quot;20&quot; /&gt;&lt;/p&gt;';

    $fields = array( $fields['author'], $fields['location'], $fields['email'], $fields['phone'], $fields['url'] );
  return $fields;
}
function save_comment($comment_id)
{
	add_comment_meta( $comment_id, 'location', $_POST['location'], true );
	add_comment_meta( $comment_id, 'phone', $_POST['phone'], true );
	add_comment_meta( $comment_id, 'is_newsletter', $_POST['is_newsletter'], true );
}

?&gt;

</pre></p>
<p><strong>Output:</strong></p>
<p><span style="color:#008000;">Front End:</span><br />
<a href="http://souravkumarpaul.files.wordpress.com/2011/06/frontc.jpg"><img title="frontc" src="http://souravkumarpaul.files.wordpress.com/2011/06/frontc.jpg?w=300&#038;h=263" alt="" width="300" height="263" /></a></p>
</div>
<p><strong>Now Show the fields in admin section</strong></p>
<div style="border:4px solid #0099cc;padding:15px;"><pre class="brush: php;">
&lt;?php
//hook comment listing page
add_action('comment_text', 'show_commeta');
//hook edit comment
add_action( 'add_meta_boxes_comment', 'page_comments_status_meta_box' );
// save comment meta
add_action('edit_comment','save_markdown_after_edit');

if (is_admin()) {
   echo get_comment_text(), '&lt;br/&gt;&lt;span style=&quot;color:blue;&quot;&gt;', get_comment_meta(get_comment_ID(), 'location',1).'&lt;/span&gt;';
   }}

function page_comments_status_meta_box($post){

		$location = get_comment_meta($post-&gt;comment_ID,&quot;location&quot;,true);
		$phone = get_comment_meta($post-&gt;comment_ID,&quot;phone&quot;,true);
		$is_newsletter = get_comment_meta($post-&gt;comment_ID,&quot;is_newsletter&quot;,true);

		if($post-&gt;user_id &amp;&amp; ($location=='' &amp;&amp; $phone=='')){
			$location = get_user_meta($post-&gt;user_id,&quot;address&quot;,true);
			$phone = get_user_meta($post-&gt;user_id,&quot;business_phone&quot;,true);
		}
?&gt;
	&lt;div class=&quot;stuffbox&quot; id=&quot;namediv&quot;&gt;
		&lt;h3&gt;&lt;label for=&quot;name&quot;&gt;Other Details&lt;/label&gt;&lt;/h3&gt;
			&lt;div class=&quot;inside&quot;&gt;
				&lt;table class=&quot;form-table&quot;&gt;
					&lt;tr valign=&quot;top&quot;&gt;
						&lt;td class=&quot;first&quot;&gt;Location:&lt;/td&gt;
						&lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;location&quot; tabindex=&quot;5&quot; value=&quot;&lt;?php echo $location; ?&gt;&quot; size=&quot;30&quot; name=&quot;location&quot;&gt;&lt;/td&gt;
					&lt;/tr&gt;
					&lt;tr valign=&quot;top&quot;&gt;
						&lt;td class=&quot;first&quot;&gt;
						Phone:&lt;/td&gt;
						&lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;phone&quot; tabindex=&quot;2&quot; value=&quot;&lt;?php echo $phone; ?&gt;&quot; size=&quot;20&quot; name=&quot;phone&quot;&gt;&lt;/td&gt;
					&lt;/tr&gt;
					&lt;tr valign=&quot;top&quot;&gt;
						&lt;td class=&quot;first&quot;&gt;
						Subscribe To Newsletter:&lt;/td&gt;
						&lt;td align=&quot;left&quot; style=&quot;float:left;&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;is_newsletter&quot; tabindex=&quot;2&quot; value=&quot;1&quot; name=&quot;is_newsletter&quot;&lt;?php if($is_newsletter)echo &quot;checked&quot;;?&gt;&gt;&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/table&gt;
			&lt;br&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;?php
}
function save_markdown_after_edit($comment_ID){
    if (isset($_POST['location'])){
        update_comment_meta($comment_ID,'location',$_POST['location']);
    }if (isset($_POST['phone'])){
        update_comment_meta($comment_ID,'phone',$_POST['phone']);
    }
}
?&gt;
</pre></p>
<p><strong>Output:</strong><br />
<span style="color:#008000;"><a href="http://souravkumarpaul.files.wordpress.com/2011/06/frontc.jpg"><br />
</a></span></p>
<p><span style="color:#008000;">Admin End:</span><a href="http://souravkumarpaul.files.wordpress.com/2011/06/com.jpg"><img class="aligncenter size-medium wp-image-761" title="com" src="http://souravkumarpaul.files.wordpress.com/2011/06/com.jpg?w=281&#038;h=300" alt="" width="281" height="300" /></a></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/746/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=746&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/06/24/custom-comment-form-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>

		<media:content url="http://souravkumarpaul.files.wordpress.com/2011/06/frontc.jpg?w=300" medium="image">
			<media:title type="html">frontc</media:title>
		</media:content>

		<media:content url="http://souravkumarpaul.files.wordpress.com/2011/06/com.jpg?w=281" medium="image">
			<media:title type="html">com</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress Create Custom Widget</title>
		<link>http://souravkumarpaul.wordpress.com/2011/06/16/wordpress-create-custom-widget/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/06/16/wordpress-create-custom-widget/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 13:30:21 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=736</guid>
		<description><![CDATA[&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Output:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=736&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="border:4px solid #0099cc;padding:15px;"><pre class="brush: php;">

&lt;?php

/**

 * Plugin Name: Connect With Us Widget

 * Description: A widget that serves as an example for developing more advanced widgets.

 * Version: 0.1

 *

 * This program is distributed in the hope that it will be useful,

 * but WITHOUT ANY WARRANTY; without even the implied warranty of

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 */

/**

 * Add function to widgets_init that'll load our widget.

 * @since 0.1

 */

add_action( 'widgets_init', 'connect_load_widgets' );

/**

 * Register our widget.

 * 'Example_Widget' is the widget class used below.

 *

 * @since 0.1

 */

function connect_load_widgets() {

	register_widget( 'Connect_Widget' );

}

/**

 * Example Widget class.

 * This class handles everything that needs to be handled with the widget:

 * the settings, form, display, and update.  Nice!

 *

 * @since 0.1

 */

class Connect_Widget extends WP_Widget {

	/**

	 * Widget setup.

	 */

	function Connect_Widget() {

		/* Widget settings. */

		$widget_ops = array( 'classname' =&gt; 'connect', 'description' =&gt; __('An socal medis widget.', 'connect') );

		/* Widget control settings. */

		$control_ops = array( 'width' =&gt; 300, 'height' =&gt; 350, 'id_base' =&gt; 'connect-widget' );

		/* Create the widget. */

		$this-&gt;WP_Widget( 'connect-widget', __('Connect Widget', 'connect'), $widget_ops, $control_ops );

	}

	/**

	 * How to display the widget on the screen.

	 */

	function widget( $args, $instance ) {

		extract( $args );

		global $post;

		$include = $instance['include'];

		$includeArr = array();

		if($include != ''){

			$includeArr = explode(&quot;,&quot;,$include);

		}

		if(is_page($includeArr)){

		/* Our variables from the widget settings. */

		$title = apply_filters('widget_title', $instance['title'] );

		$name = $instance['name'];

		$description = $instance['description'];

		/* Before widget (defined by themes). */

		echo $before_widget;

		echo '&lt;div class=&quot;cntSocial&quot;&gt;';

		/* Display the widget title if one was input (before and after defined by themes). */

		if ( $title )

			echo '&lt;h3 class=&quot;widget-title&quot;&gt;'. $title .&quot;&lt;/h3&gt;&quot;;

		/* Display name from widget settings if one was input. */

		if ( $description )

			echo $description;

		echo '&lt;br class=&quot;clear&quot; /&gt;&lt;/div&gt;';

		/* After widget (defined by themes). */

		echo $after_widget;

		}

	}

	/**

	 * Update the widget settings.

	 */

	function update( $new_instance, $old_instance ) {

		$instance = $old_instance;

		/* Strip tags for title and name to remove HTML (important for text inputs). */

		$instance['title'] = $new_instance['title'];

		$instance['description'] = $new_instance['description'];

		$instance['include'] = $new_instance['include'];

		return $instance;

	}

	/**

	 * Displays the widget settings controls on the widget panel.

	 * Make use of the get_field_id() and get_field_name() function

	 * when creating your form elements. This handles the confusing stuff.

	 */

	function form( $instance ) {

		/* Set up some default widget settings. */

		$defaults = array( 'title' =&gt; __('Connect', 'connect'), 'name' =&gt; __('John Doe', 'connect'), 'sex' =&gt; 'male', 'show_sex' =&gt; true );

		$instance = wp_parse_args( (array) $instance, $defaults ); ?&gt;

		&lt;!-- Widget Title: Text Input --&gt;

		&lt;p&gt;

			&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id( 'title' ); ?&gt;&quot;&gt;&lt;?php _e('Title:', 'hybrid'); ?&gt;&lt;/label&gt;

			&lt;input id=&quot;&lt;?php echo $this-&gt;get_field_id( 'title' ); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name( 'title' ); ?&gt;&quot; value=&quot;&lt;?php echo $instance['title']; ?&gt;&quot; style=&quot;width:100%;&quot; class=&quot;widefat&quot; /&gt;

		&lt;/p&gt;

		&lt;!-- Your Name: Text Input --&gt;

		&lt;p&gt;

			&lt;textarea id=&quot;&lt;?php echo $this-&gt;get_field_id( 'description' ); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name( 'description' ); ?&gt;&quot; class=&quot;widefat&quot; cols=&quot;20&quot; rows=&quot;16&quot;&gt;&lt;?php echo $instance['description']; ?&gt;&lt;/textarea&gt;

		&lt;/p&gt;

		&lt;p&gt;

			&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id( 'include' ); ?&gt;&quot;&gt;&lt;?php _e('Include Page Id:', 'hybrid'); ?&gt;&lt;/label&gt;

			&lt;input id=&quot;&lt;?php echo $this-&gt;get_field_id( 'include' ); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name( 'include' ); ?&gt;&quot; value=&quot;&lt;?php echo $instance['include']; ?&gt;&quot; style=&quot;width:100%;&quot; class=&quot;widefat&quot; /&gt;

		&lt;/p&gt;

	&lt;?php

	}

}

?&gt;

</pre></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><span style="color:#0000ff;"><strong>Output</strong></span>:</p>
<p><a href="http://souravkumarpaul.files.wordpress.com/2011/06/wp1.jpg"><img class="aligncenter size-medium wp-image-769" title="wp" src="http://souravkumarpaul.files.wordpress.com/2011/06/wp1.jpg?w=194&#038;h=300" alt="" width="194" height="300" /></a><a href="http://souravkumarpaul.files.wordpress.com/2011/06/wp.jpg"><br />
</a></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/736/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/736/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=736&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/06/16/wordpress-create-custom-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>

		<media:content url="http://souravkumarpaul.files.wordpress.com/2011/06/wp1.jpg?w=194" medium="image">
			<media:title type="html">wp</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP curl. Simple curl script</title>
		<link>http://souravkumarpaul.wordpress.com/2011/03/22/php-curl/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/03/22/php-curl/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 10:36:11 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=714</guid>
		<description><![CDATA[Using curl we can get the output content of a given url.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=714&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Using curl we can get the output content of a given url.</strong></p>
<div style="border:4px solid #0099CC;padding:15px;"><pre class="brush: php;">
$URL = &quot;http://google.com&quot;;
	$curl = curl_init();
	curl_setopt ($curl, CURLOPT_URL, $URL);
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
	$result = curl_exec ($curl);
	curl_close ($curl);
echo $result;

</pre></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/714/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=714&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/03/22/php-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP preg_match_all to remove a part of a text.</title>
		<link>http://souravkumarpaul.wordpress.com/2011/03/22/php-preg_match_all-to-remove-a-part-of-a-text/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/03/22/php-preg_match_all-to-remove-a-part-of-a-text/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 10:28:22 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=710</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=710&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="border:4px solid #0099CC;padding:15px;">
<pre class="brush: php;">
&lt;?php
echo $text = &quot;This test [CONFIRMLINK] is working fine [/CONFIRMLINK] for preg_match_all&quot;;

preg_match_all('|\[CONFIRMLINK\](.*)\[\/CONFIRMLINK\]|', $text, $text1);

$text1_val = $text1[1][0];
$text = str_replace($text1_val,'',$text);
$text = str_replace(&quot;[CONFIRMLINK]&quot;,'',$text);
$text = str_replace(&quot;[/CONFIRMLINK]&quot;,'',$text);

echo &quot;&lt;br/&gt;&quot;;
echo $text;
?&gt;

</pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/710/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/710/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/710/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/710/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/710/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/710/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/710/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/710/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/710/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/710/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/710/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/710/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/710/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/710/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=710&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/03/22/php-preg_match_all-to-remove-a-part-of-a-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysql Trigger Update &amp; Insert</title>
		<link>http://souravkumarpaul.wordpress.com/2011/03/18/mysql-trigger-update-insert/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/03/18/mysql-trigger-update-insert/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 11:21:37 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=707</guid>
		<description><![CDATA[SHOW TRIGGERS; CREATE TABLE `employees` (  `employeeNumber` int(11) NOT NULL,  `lastName` varchar(50) NOT NULL,  `firstName` varchar(50) NOT NULL,  `extension` varchar(10) NOT NULL,  `email` varchar(100) NOT NULL,  `officeCode` varchar(10) NOT NULL,  `reportsTo` int(11) default NULL,  `jobTitle` varchar(50) NOT NULL,  PRIMARY KEY  (`employeeNumber`)) CREATE TABLE employees_audit ( id int(11) NOT NULL AUTO_INCREMENT, employeeNumber int(11) NOT NULL, lastname varchar(50) NOT NULL, changedon datetime DEFAULT NULL, action varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=707&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SHOW TRIGGERS;</p>
<p>CREATE TABLE `employees` (  `employeeNumber` int(11) NOT NULL,  `lastName` varchar(50) NOT NULL,  `firstName` varchar(50) NOT NULL,  `extension` varchar(10) NOT NULL,  `email` varchar(100) NOT NULL,  `officeCode` varchar(10) NOT NULL,  `reportsTo` int(11) default NULL,  `jobTitle` varchar(50) NOT NULL,  PRIMARY KEY  (`employeeNumber`))</p>
<p>CREATE TABLE employees_audit ( id int(11) NOT NULL AUTO_INCREMENT, employeeNumber int(11) NOT NULL, lastname varchar(50) NOT NULL,<br />
changedon datetime DEFAULT NULL, action varchar(50) DEFAULT NULL, PRIMARY KEY (id) )<br />
<span style="color:#0000ff;"><strong>Insert:</strong></span></p>
<p>DROP TRIGGER before_employee_update;DELIMITER $$CREATE TRIGGER before_employee_update BEFORE UPDATE ON employeesFOR EACH ROW BEGININSERT INTO employees_auditSET action = &#8216;update&#8217;,lastname = OLD.lastname,changedon = NOW(); END$$DELIMITER ;<br />
<strong><span style="color:#0000ff;">Update:</span></strong></p>
<p>DROP TRIGGER before_employee_update;DELIMITER $$CREATE TRIGGER before_employee_update BEFORE UPDATE ON employeesFOR EACH ROW BEGINUPDATE employees_auditSET action = &#8216;update&#8217;,employeeNumber = NEW.employeeNumber,lastname = NEW.lastname,changedon = NOW() WHERE employeeNumber=NEW.employeeNumber; END$$DELIMITER ;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/707/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=707&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/03/18/mysql-trigger-update-insert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://souravkumarpaul.wordpress.com/2011/01/06/2010-in-review/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/01/06/2010-in-review/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 18:40:45 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=705</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter&#8482; reads This blog is doing awesome!. Crunchy numbers A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 2,700 times in 2010. That&#8217;s about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=705&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p align="center"><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy2.gif" width="250" height="183" alt="Healthy blog!"></p>
<p align="center">The <em>Blog-Health-o-Meter&trade;</em> reads This blog is doing awesome!.</p>
<h2>Crunchy numbers</h2>
<p>			<a href="http://souravkumarpaul.files.wordpress.com/2010/03/create_content.jpg"><img src="http://souravkumarpaul.files.wordpress.com/2010/03/create_content.jpg?w=288" alt="Featured image" style="max-height:230px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;" /></a></p>
<p>A Boeing 747-400 passenger jet can hold 416 passengers.  This blog was viewed about <strong>2,700</strong> times in 2010.  That&#8217;s about 6 full 747s.</p>
<p><p>In 2010, there were <strong>57</strong> new posts, not bad for the first year! There were <strong>62</strong> pictures uploaded, taking up a total of 38mb. That&#8217;s about a picture per week.</p>
<p>The busiest day of the year was February 20th with <strong>65</strong> views. The most popular post that day was <a style="color:#08c;" href="http://souravkumarpaul.wordpress.com/2010/01/12/ajax-introduction/">AJAX Introduction</a>.</p>
</p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>sourav.co.nr</strong>, <strong>google.co.in</strong>, <strong>cgaskell.wordpress.com</strong>, <strong>theonlinegk.wordpress.com</strong>, and <strong>statistics.bestproceed.com</strong>.</p>
<p>Some visitors came searching, mostly for <strong>general knowledge about human body</strong>, <strong>countries capitals and currencies</strong>, <strong>name the company whose c.e.o was chosen as the manager of the century by fortune magazine?</strong>, and <strong>general knowledge human body</strong>.</p>
<div style="clear:both;"></div>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">1</div>
<p>					<a style="margin-right:10px;" href="http://souravkumarpaul.wordpress.com/2010/01/12/ajax-introduction/">AJAX Introduction</a> <span style="color:#999;font-size:8pt;">January 2010</span>											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">2</div>
<p>					<a style="margin-right:10px;" href="http://souravkumarpaul.wordpress.com/2010/02/03/general-knowledge-human-body/">General Knowledge- Human Body</a> <span style="color:#999;font-size:8pt;">February 2010</span>											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">3</div>
<p>					<a style="margin-right:10px;" href="http://souravkumarpaul.wordpress.com/2010/03/03/c-program-call-by-value-call-by-referenceswaping-program/">C Program-Call By value&amp; Call By Reference(Swaping Program)</a> <span style="color:#999;font-size:8pt;">March 2010</span>											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">4</div>
<p>					<a style="margin-right:10px;" href="http://souravkumarpaul.wordpress.com/2010/02/14/gk-cricketindia/">GK-CRICKET(India)</a> <span style="color:#999;font-size:8pt;">February 2010</span>											</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">5</div>
<p>					<a style="margin-right:10px;" href="http://souravkumarpaul.wordpress.com/2010/03/20/add-module-for-local-languages/">Drupal: Add module for Local languages</a> <span style="color:#999;font-size:8pt;">March 2010</span>											</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/705/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=705&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/01/06/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy2.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://souravkumarpaul.files.wordpress.com/2010/03/create_content.jpg?w=288" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>General Knowledge Question and Answer</title>
		<link>http://souravkumarpaul.wordpress.com/2011/01/01/general-knowledge-question-and-answer/</link>
		<comments>http://souravkumarpaul.wordpress.com/2011/01/01/general-knowledge-question-and-answer/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 03:44:44 +0000</pubDate>
		<dc:creator>souravkumarpaul</dc:creator>
				<category><![CDATA[General Knowledge]]></category>

		<guid isPermaLink="false">http://souravkumarpaul.wordpress.com/?p=474</guid>
		<description><![CDATA[Q. First Bowler In Test History To Take 700 Wickets? A. Shane Warne(Australia) Q. Which is the tallest animal? A. Giraffe Q. Which is largest Archipelago? A. Indonesia Q. Which is fastest bird? A. Swift. Q. Which is largest bird? A. Ostrich Q. Which is smallest bird? A. Humming Bird Q. Which is longest bridge? [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=474&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Q. First Bowler In Test History To Take 700 Wickets?</strong><br />
A. Shane Warne(Australia)<br />
<strong>Q. Which is the tallest animal?</strong><br />
A. Giraffe<br />
<strong>Q. Which is largest Archipelago?</strong><br />
A. Indonesia<br />
<strong>Q. Which is fastest bird? </strong><br />
A. Swift.<br />
<strong>Q. Which is largest bird? </strong><br />
A. Ostrich<br />
<strong>Q. Which is smallest bird? </strong><br />
A. Humming Bird<br />
<strong>Q. Which is longest bridge? </strong><br />
A. Huey P.Long Bridge<br />
<strong>Q. Which is tallest building? </strong><br />
A. Teipei 101, Taiwan<strong><br />
</strong> <strong>Q. which city is largest in population?</strong><br />
A. Tokyo<br />
<strong>Q. which  is largest Continent?</strong><br />
A. Asia<br />
<strong>Q. which is smallest Continent?</strong><br />
A. Australia<strong><br />
</strong></p>
<p>To see more GK click on category link <a title="General Knowledge" href="../category/general-knowledge/">General  Knowledge</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/souravkumarpaul.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/souravkumarpaul.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/souravkumarpaul.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/souravkumarpaul.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/souravkumarpaul.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/souravkumarpaul.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/souravkumarpaul.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/souravkumarpaul.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/souravkumarpaul.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/souravkumarpaul.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/souravkumarpaul.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/souravkumarpaul.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/souravkumarpaul.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/souravkumarpaul.wordpress.com/474/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=souravkumarpaul.wordpress.com&amp;blog=11331310&amp;post=474&amp;subd=souravkumarpaul&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://souravkumarpaul.wordpress.com/2011/01/01/general-knowledge-question-and-answer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/232302a96b5807fc06fa7243c838703a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">souravkumarpaul</media:title>
		</media:content>
	</item>
	</channel>
</rss>
