Archive

Archive for January, 2010

Wordpress: Categories to Tags Conversion

Jan 31st, 2010

I have to convert few categories to tags and put all those post which are holding the current categories, which are going to become tags, to new categories. We have facility in Wordpress to convert categories to tags. You will find this link in Categories menu inside Post section. Please check at the bottom section.
By [...]

Few very common String Functions in PHP

Jan 31st, 2010

Here are few very common string functions in PHP for those who are new to PHP.  In that case just familiarize with these functions.
addslashes
Add backslash (\) before characters that need to be quoted before inserting into database. Those characters where backslash will be added are single quote (‘), double quote (“), backslash itself (\) and [...]

PHP: Getting File extension and file basename

Jan 31st, 2010

Here is a script for getting file extension. It will take care of the file name like this: yourfilename.inc.php etc and not only filename.inc or fileename.php. It will get your last part of file irrespective of how many dots in file.
<?php
// will get the file name out of whole path (path/to/file.inc.php)
$filename = basename($filePath);
// split it [...]

New Rss Feed of Web Scripting

Jan 30th, 2010

I have recently changed RSS feed address from boring/long to short URL. In feedburner you have facility to create new feedburner address and use new feedburner URL. Old address can be pointed to newly created feedburner URL address. There is a facility to set window period of deleting the old feed address so that all [...]

Set Preferred Domain (http:// or http://www.)

Jan 25th, 2010

Google ask your preferred domain in webmaster. Preferred domain is one which you like to appear on search result page. Google will try to index your site according to preferred domain of your choice. So, web site satya-weblog.com can appear as http://satya-weblog.com or http://www.satya-weblog.com. I have set my preferred domain as http://www.satya-weblog.com.
Link may point to [...]

Add Sitemeter Code in Efficient, Optimized and Beautiful way

Jan 20th, 2010

Are you using free sitemeter stat counter code? If yes, then you may have faced the problem of visible sitemeter image appearing on the page. Here I am not going to tell, how to hide or remove this image, as this image appear for free account, so think of it as part of agreement.
What I [...]

Get Online Live Feed of any topic you want!

Jan 20th, 2010

Are you a data juggler? Need lots of data to eat, drink and play! Then join LazyFeed. It gives live feed updates from numerous web sites across the web in real time. You will feel full (fool!) of stomach. I tried it and thought who can use this? May be marketing person or may be [...]

Wordpress: Adding Categories at the Page bottom (footer)

Jan 17th, 2010

Using Wordpress and filled all the spaces in sidebar and navigation with multiple widgets or text content, And finding no space for Categories! No worries, you have another place to add your blog categories. Add all categories at the bottom of the web site.
Generally categories become so many in numbers that you cannot add all [...]

How to Install Wordpress on Localhost (Window)

Jan 10th, 2010

Easy and step by step guide of Importing and installing wordpress on localhost. This will help in considering any possible thigns you need to modify also.

PHP require/include and relative path error

Jan 7th, 2010

Finding the correct relative path for use in you php page for include/require.