Monday, June 29, 2015

Best Plugin for Wordpress (Part:3)

PART 3 ...
PayPal for Digital Goods – This plugin allows you to use the PayPal for Digital Goods gateway to accept payment for digital goods. Provides inline checkout of digital goods.


WP Affiliate Platform – WordPress plugin for affiliate recruitment, management and tracking. This plugin lets you run your own affiliate campaign/program and allows you to reward (pay commission) your affiliates for referred sales.



WordPress Affiliate Link Manager – Allows you to automatically convert specific keywords from your blog posts and pages into your affiliate links. It also cloaks the affiliate links and gives it a prettier and shorter alias (good for affiliate marketers).



Yet Another Related Posts Plugin –  This plugin gives you a list of posts and/or pages related to the current entry, introducing the reader to other relevant content on your site.



Download Monitor – This plugin is very useful for managing and tracking your digital file downloads. You can track which file is being downloaded how many times and who is downloading them.

Simple Tags – This is one of my favorite plugins. It makes my WordPress Tagging life so much easier. It helps with Auto completion, Suggested Tags, Tag Cloud Widgets, Related Posts, Mass edit tags.

Executable PHP Widget – Like the Text widget, but it will take PHP code as well. Very handy for inserting custom ‘php’, ‘html’, ‘javascript’ in the sidebar.

Crayon Syntax Highlighter – A plugin to highlight any code in your posts or pages. very handy if you use example codes in your Blog.

Mailpoet Newsletters – Send newsletters, post notifications or autoresponders from WordPress easily, and beautifully.

WP-Polls – Adds an AJAX poll system to your WordPress blog. Allows you to easily include a poll into your WordPress’s blog post/page.

EWWW Image Optimizer – The EWWW Image Optimizer is a WordPress plugin that will automatically and losslessly optimize your images as you upload them to your blog.

WP Video Lightbox – The WordPress Video Lightbox plugin allows you to embed videos on a page using lightbox overlay display. This plugin can be used to display images, flash, YouTube, Vimeo, iFrame etc in a nice lightbox overlay.
THANKS :)

Best plugin for wordpress ( Part:2 )

W3 Total Cache – The fastest and most complete WordPress performance optimization plugin. After you use the w3 total cache plugin you won’t go back to using WP Super Cache. 
 
WP Super Cache – WP Super Cache is a static caching plugin for WordPress. It generates html files that are served directly by Apache without processing comparatively heavy PHP scripts. By using this plugin you will speed up your WordPress blog significantly. 
 
Contact Form 7 – Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.



Share This – This is a very useful plugin that allows your visitors to share a post/page with others. Supports e-mail and posting to social bookmarking sites.
 

Fat Free WordPress Social Share Buttons Plugin – This is a very simple and FAT FREE share button plugin that adds Google plus one, Facebook and Twitter share buttons to your blog posts.
 

Google Adsense Plugin – Google AdSense Plugin allows you to set parameters of the ads displaying, such as format (text ad, image, text with an image or link), size, color of the elements in the ad block, rounded corners and the ad block position on the website. 
 
Simple Google Adsense insertion – Easy to use WordPress plugin to insert Google Adsense to your posts, pages and sidebar. 

Adsense-Deluxe – Place Google AdSense ads in your WordPress Posts. Capable of handling complex adsense management.


Simple Photo Gallery – If you are looking for an effective, reliable, yet simple to use photo gallery plugin, then check this gallery plugin out. I use it whenever I need a photo gallery plugin.

NextGen Gallery – The most popular WordPress gallery plugin and one of the most popular plugins of all time. 
 
 

Monday, June 22, 2015

SOAP vs REST Web Services


SOAP vs REST Web Services




SOAP and REST can't be compared directly, since the first is a protocol (or at least tries to be) and the second is an architectural style.
REST is protocol independent. It's not coupled to HTTP.
REST might not be restricted to XML, to do it correctly with any other format you'll have to design and standardize some format for your links. Hyperlinks are standard in XML, but not in JSON. There are draft standards for JSON,



There are many differences between SOAP and REST web services. The important 10 differences between SOAP and REST are given below:
No.
SOAP
REST
1 SOAP is a protocol. REST is an Architectural Style.
2 SOAP stands for Simple Object Access Protocol. REST stands for REpresentational State Transfer.
3 SOAP can't use REST because it is a protocol. REST can use SOAP web services because it is a concept and can use any protocol like HTTP, SOAP.
4 SOAP uses services interfaces to expose the business logic. REST uses URI to expose business logic.
5 JAX-WS is the java API for SOAP web services. JAX-RS is the java API for RESTful web services.
6 SOAP defines standards to be strictly followed. REST does not define too much standards like SOAP.
7 SOAP requires more bandwidth and resource than REST. REST requires less bandwidth and resource than SOAP.
8 SOAP defines its own security. RESTful web services inherits security measures from the underlying transport.
9 SOAP permits XML data format only. REST permits different data format such as Plain text, HTML, XML, JSON etc.
10 SOAP is less preferred than REST. REST more preferred than SOAP.

Wednesday, June 17, 2015

Some Questions

In PHP 5, what is the difference between using self and $this?

Use $this to refer to the current object. Use self to refer to the current class. In other words, use $this->member for non-static members, use self::$member for static members.


What is Class and Object ?

A class, for example, is like a blueprint for a car. It defines the shape of the car on paper, with relationships between the different parts of the car clearly defined and planned out, even though the car doesn't exist yet .

An object, then, is like the actual Car built according to that blueprint. The data stored in the object is like the gear, wires, and metal that compose the car: without being assembled according to the blueprint, it's just a pile of stuff. However, when it all comes together, it becomes an organized, useful car in running condition .

What is difference Between SOAP and REST 


Read here in detailed answer



Tuesday, June 9, 2015

Default WordPress function to get the URL information



Some of the default WordPress function to get the URL information
  •  plugins_url() — Full plugin directory URL (for example, http://php999.blogspot.com/wp-content/plugins)
  •  includes_url() — Full includes directory URL (for example, http://php999.blogspot.com/wp-includes)
  •  content_url() — Full content directory URL (for example, http://php999.blogspot.com/wp-content)
  •  admin_url() — Full admin URL (for example, http://php999.blogspot.com/wp-admin/)
  •  site_url() — Site URL for the current site (for example, http://php999.blogspot.com)
  •  home_url() — Home URL for the current site (for example, http://php999.blogspot.com)
Confused by seeing site_url and home_url?

Here is the explanation. Site_url() will give your exact blog address and home_url() will give you the domain address.
Consider this example, we have hosted our wordpress blog in http://php999.blogspot.com/blog/index.php

Site_url returns => http://php999.blogspot.com/blog
Home_url returns => http://php999.blogspot.com

GitHub repository using Git Bash command

  To add a project to a GitHub repository using Git Bash command line, you can follow these steps: Create a new repository on GitHub by logg...