November 30th in Wordpress by pbu .

Be Careful! Wordpress Themes Consume more CPU Power

You might be in a shared hosting plan and most hosting providers allow CPU usage only to a certain level. Be careful that many wordpress themes (including commercial ones) i have seen can take more CPU power. If that is the case the hosting provider may suspend your account. I had a situation with bluehost where you are allowed to use only 40% of CPU in a 140 sec window. If your site consumes more than 40% of cpu with …

November 29th in Linux/Unix, PHP Scripts by pbu .

Fix -> PHP files are downloading when viewed in Browser

i had a sudden wierd problem with my site running cpanel. when ever i click on the link in my website, the browser shows a download box for the php file instead of showing a webpage. I did use mod rewrite to make url friendly

How to Fix

I figured out later the problem is apache doesnt know to parse those files with php. You you have to create a file .htaccess in your site public_html folder and place the following …

November 26th in vBulletin by pbu .

How to change vBulletin Homepage Title?

It is easy to change the title of the forum main page. A very good title for your forum index page is important for organic search engine rankings.

Here is how to change the title of forum main page.

Vbulletin AdminCP > Styles & Templates > FORUMHOME

Look for tags in the code and hard code the title. It only applies for main page. You can also remove the vbulletin code and powered by vbulletin inside the title tags.

November 26th in Linux/Unix, PHP Scripts by pbu .

CPU Exceeded Error on a New Host

i recently faced a real problem because of this. I decided to move from bluehost because my site kept receiving “cpu exceeded error” page frequently. I moved to a new dedicated server host running cpanel. I did a SCP cpanel account restore and very strangely, when i type my domain in my browser i again see, “cpu exceeded error”. It kept redirecting to blue host cpu exceeded page. That too in my new dedicated server.

It was very weird until i …

November 19th in Games by pbu .

Farcry 2 vs Crysis Warhead – Which one to buy?

Crysis Warhead and Farcry 2 both recent releases in PC version of the games this month and you might be wondering which one to buy? or which is the best among the two.

Definitely go for Crysis Warhead.
Both these games are strikingly similar, but crysis has much better graphics and gameplay than the farcry2. I have purchased both and played them and i liked crysis-warhead a lot.

November 17th in General by pbu .

HOWTO: Use Automatic Washing Machine to Wash Clothes?

Hmm!

Washing clothes is one of the hardest work for any person in the planet. Recently i have purchased a LG top loading, fully automatic machine ($375) and i was very surprised, being a first time user i really didnt know how to use a washing machine. I hate to admit it but its the truth.

If you are planning to buy a automatic washing machine… here are the features that is a must have for a good washing …

November 13th in Linux/Unix, PHP Scripts by pbu .

FIX->Fatal error: Maximum execution time of 300 seconds exceeded with phpMyAdmin

PHPMyAdmin will not work for uploading large mysql databases. If you attempt to upload a large mysql dataset you will often get this error

Fatal error: Maximum execution time of 300 seconds exceeded

Fix:

If you get this error you will need edit config.default.php inside phpmyadmin and look for this line

$cfg['ExecTimeLimit'] = 300;

and replace with 0 or any larger value

$cfg['ExecTimeLimit'] = 3600;

If that doesnt work, try this BigDump MySQL Importer. It is free for download.

If you have commandline …

November 12th in PHP Scripts by pbu .

Fix-> Warning: ereg_replace(): REG_BADRPT in PHP

If you are a PHP programmer and if you are using regular expressions with ereg_replace then often with replacing particular characters you might encounter error like

Warning: ereg_replace(): REG_BADRPT

Here is a simple function that causes this error

function OrigURL($str)
{
$out = ereg_replace(‘+’,’ ‘,$str);
return $out;
}

Solution: Just escape the characters. Only then it will work.

$out = ereg_replace(‘\+’,’ ‘,$str);

Hope this would help!

November 12th in PHP Scripts by pbu .

How to remove GET variable within $_SERVER['QUERY_STRING'] in PHP

I was working on a mysql search script with paging where i had to pass the same GET parameters to page numbers like

search.php?q=what+europe+scripts&page=1

I used $_SERVER['QUERY_STRING'] to get the GET parameters. But the problem i got was when i was in page 2 it would show query string like

search.php?q=what+europe+scripts&page=1&page=2

and if i am in page 5, it would show like

search.php?q=what+europe+scripts&page=1&page=2&page=3&page=4&page=5

This is an unwanted problem and i wanted to strip/remove only the page variable.

If you are in such a situation here is …

November 2nd in Wordpress by pbu .

10 Best FREE Wordpress THEMES You Never Want to MISS!

Wordpress is such a powerful CMS and literally you can achieve anything from it. Not just that its code is very easy to understand and it can be customized to anything.

Here are the 10 best free wordpress themes you would never want to miss.

Blue Sensation

License: FREE
Download | Visit Website

Monochrome Gallery

(Photo gallery theme)

License: FREE
Download | Visit Website

Internet Music

License: FREE
Download | Visit Website

Blog Times

(Newspaper/Magazine/Article Theme)

License: FREE
Download | Visit Website

deLight

License: FREE
Download | Visit Website

WicketPixie

(a social media theme for wordpress)

License: FREE
Download | Visit Website

MaxBlog

(Premium …