WordPress Multi-Site Installation Guide

      No Comments on WordPress Multi-Site Installation Guide

WordPress is not only a blog platform, it can used for almost any project. It comes with a simple but powerful plugin mechanism which allows you to extend the wordpress platform writing your own plugins or using existing ones. WordPress is the php script powering wordpress.com blogging platform. Using a similar configuration a single wordpress… Read more »

How To Fix WordPress Internal Path/Full Path Disclosure(FPD) Issue

As wordpress is probably the most used php script on Internet, it represents one the the hackers favorite target. Each security issue get known really easy, exposes sometimes even the sites having the latest updates.

One known issue in Worpress is the fact that it exposes the internal path when a warning or error message is displayed. This is a functionality inherited from php and wordpress developers don’t consider it an issue. In this post we’ll check how this works and how we can disable it.

How to add pagination in WordPress without using a plugin

The pagination functionality which comes by default in WordPress is a little bit counter-intuitive and does not fit well in most of WordPress sites. Using a pagination plugin is a good alternative which comes with a few drawbacks but in a few lines of code the pagination can be easier implemented directly in the existing theme.

How to Retrieve the Latest Tweets In PHP

      No Comments on How to Retrieve the Latest Tweets In PHP

This post contains a little php snippet to search and retrieve the latest tweets from twitter. The documentation for twitter search function is available here and here:

How to Detect Language for a String in PHP

For me it happens pretty other to have to validate if a text string is in English or to detect the language. Most of the algorithms are based on the probability of appearance of sequences of letters. For example the sequence of letters “the” is more frequent in English than… Read more »

Smarty: How to Check if the Current Page is the Home/Front Page

Step 1 – check inside the php coding part if the current page is the home page:

Step 2 – inside tpl themes files:

How To Clone Objects in PHP5

      No Comments on How To Clone Objects in PHP5

Object cloning in PHP puts the same problems as in any other language. In addition to other popular languanges in PHP, starting with PHP5 there is present the operator clone. By default it creates an identical clone of the original object. If the original object contains references to another object,… Read more »

How To Show Different Content For Google Spider

Before applying this technique you should be aware that Google does not recommend to do it at all. They say that sites presenting googlebot different information that to the human eye from the SEO purposes will be penalized. However, there are some cases when you might want to hide certain… Read more »