September 2020

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:

Forex Strategy:Wait and See Daily Chart.

Confused on how to open position daily, buy or sell? Let me tell you my another strategy to win forex daily. This strategy has been tested (real) by myself and the result is as you know, it’s profitable 🙂 I named this strategy is “wait and see” in short time frame chart you mostly can not predicted price movement it’s sometimes goes slowly but in short time it can be wild by jumping or down 50-100 point. You loss? Learn and don’t loss again! First before you start, look on daily forex recommendation read the prediction, mostly this prediction accurate… Read More »Forex Strategy:Wait and See Daily Chart.

Forex:Learn to set Stop Loss and Target Point

Hello everyone, This time I will writing how to set Stop Loss and Target Point. It’s simple and classic when there is words “Something going higher can be dropped lower and something doing down lower can going higher” Forex is all about Wave and Trend. Your JOB in here is to predicted the movement. I don’t recommended you to set SL and TP cause it much risky, but if you hate to waiting and looking on chart *lol* set your SL and TP might be the best condition for yourself. Look on this sample images I give explanation: See this… Read More »Forex:Learn to set Stop Loss and Target Point