wp

PHP:Catching keyword from search engine

Good day everyone, In this article we will learn how to catch information from “HTTP_REFERER” function such as, referer info, keyword info, etc. From some search engine using PHP snippet. This script might usefully when you want to analyze your keyword and referer statistic. Last night I was searching in WP plugin for this script but I didn’t found one really good.

So let’s created it our self, First, You need this PHP class save it as searchkeys.class.php

<?php

class search_keywords
{
var $referer;

var $search_engine;

var $keys;

var $sep;

function search_keywords()
{
$this->referer = ”;
$this->sep = ”;

if ($_SERVER[‘HTTP_REFERER’] OR $_ENV[‘HTTP_REFERER’])
{
$this->referer = urldecode(($_SERVER[‘HTTP_REFERER’] ? $_SERVER[‘HTTP_REFERER’] : $_ENV[‘HTTP_REFERER’]));
$this->sep = (eregi(‘(\?q=|\?qt=|\?p=)’, $this->referer)) ? ‘\?’ : ‘\&’;
}
}

function get_keys()
{
if (!empty($this->referer))
{
if (eregi(‘www\.google’, $this->referer))
{
// Google
preg_match(“#{$this->sep}q=(.*?)\&#si”, $this->referer, $this->keys);
$this->search_engine = ‘Google’;
}
else if (eregi(‘(yahoo\.com|search\.yahoo)’, $this->referer))
{
// Yahoo
preg_match(“#{$this->sep}p=(.*?)\&#si”, $this->referer, $this->keys);
$this->search_engine = ‘Yahoo’;
}
else if (eregi(‘search\.msn’, $this->referer))
{
Read More »PHP:Catching keyword from search engine

RELATED SEARCH TERMS:

WP Super Cache Strategy

Good day! I wishing everyone happy in this Christmas and Holiday season 😀

merry-christmas

In this short articles I want to write my personal experiment review for WP super cache. Here is the story, In the past 6-9 months ago I’m using wp super cache just because my hosting recommended it. I run some websites on budget host and most host technician complaint about resources. Nothing special until I notice my revenue is not so great even my traffic great enough.

Two weeks ago I bought a new server just because my websites not fit anymore on budget host. I do setting and everything run properly until I notice something annoying. My traffic is greater but my revenue is to low. Why this is happen? I do some research and analyze the problem, Re-Setting server configuration to the maximum resources but there is no difference.

At the first time I was thinking: Maybe (just maybe) my traffic not coming from premium country so it may not so great in conversion and affect my revenue. But it was wrong! not completely wrong actually! I do deep analyze and found my UV and Impressions not counting correctly. After long investigation I found the problem is on cache. I believe many of you already know what is wp super cache, but for you don’t know what is it: wp super cache generate HTML files and serving those HTML to all visitors: real human traffic including search engine bot traffic.

Read More »WP Super Cache Strategy

How To Stop WP-CRON.php From Using To Much CPU Usage

Three days ago arvixe telling my site using to much their cpu usage. They complaint about wp-cron.php and index.php process which I believe it was looping and won’t stop in background. wp-cron is just like cron job in normal condition. The crazy thing everyone doesn’t know is, it’s loading each time visitors coming to their site. I don’t know why wordpress don’t fix it or at least give options to run it each time frame. For a site using wordpress and have a lot articles/pages the optimization for it is just disable wp-cron, another option is disable wp-cron and running… Read More »How To Stop WP-CRON.php From Using To Much CPU Usage

Secure Your WordPress, Playing With Your .htaccess File.

In this article we will learn how to secure our wordpress blog using some .htaccess technique. Of course there is no system perfect in this world. Everything should have bug, no matter it’s high or low risk. When last time you have seen blog with wordpress got hacked? Well, This happen to me 3 times on one of my crazyp**n blog. The hackers always controlling my admin panel and it’s happen 3 times until I playing with my new toys to stop this guy. What is .htaccess? In several web servers (most commonly Apache), .htaccess (hypertext access) is the default… Read More »Secure Your WordPress, Playing With Your .htaccess File.

Build Your Online Store Using WP e-Commerce Plugins

Good day, after a few months I was looking for best script to make my online store. I found some useful and free script but of course their SEO are worst, The premium one has better looks but they not guarantee on SEO result. Lucky, I was found one plugins can integrated wordpress become online store in just minutes. Take a look on this beauty wp store… Why I choose wordpress? as we all know wordpress are simple CMS in management but powerful after we added some SEO plugins and other plugins it will become great CMS, in other option… Read More »Build Your Online Store Using WP e-Commerce Plugins

Top 4 The Greatest WordPress Plugins

Hello everyone 😀 just a little update… here is my short review for top 4 greatest WP plugins, I know there is thousand WP plugins out there but I only choose 4 plugins for their best contribution. Here they are the winner… 1. DB Cache This is mostly the best plugins for low consuming CPU usage and Memory usage, when your blog in shared hosting and you got lot of traffic daily mean you’re in trouble, sometimes bad hosting company will kick you out or they will offer you going for dedicated server. It might not problem if you have… Read More »Top 4 The Greatest WordPress Plugins