Hey, Would you like to work at Home ?? Just click here No need to pay, just register free and activate your account and get data Entry Work at your Home.

Wednesday, November 26, 2008

Date Diffrence In Days


This code will give you the diffrence between the two dates in days.Some time it is required in the program to get diff. between two dates.It is so small and very efficient code.


// Any source code blocks look like this


t1="10/10/2006" ;


//Total time for one day

var one_day=1000*60*60*24;

//Here we need to split the inputed dates to convert them into standard format

for furter execution
var x=t1.split("/");
var y=t2.split("/");
//date format(Fullyear,month,date)

var date1=new Date(x[2],(x[1]-1),x[0]);

var date2=new Date(y[2],(y[1]-1),y[0])
var month1=x[1]-1;
var month2=y[1]-1;

//Calculate difference between the two dates, and convert to days

//_Diff gives the diffrence between the two dates.

Friday, August 22, 2008

Mod Rewrite Tips and Examples

For example, to limit the next 5 RewriteRules to only be applied to .html and .php files, you can use the following code, which tests if the url does not end in .html or .php and if it doesn’t, it will skip the next 5 RewriteRules.

RewriteRule !\.(html|php)$ - [S=5]

RewriteRule ^.*-(vf12|vf13|vf5|vf35|vf1|vf10|vf33|vf8).+$ - [S=1]

.htaccess rewrite examples should begin with:

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

Require the www

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]

RewriteRule ^(.*)$ http://www.askapache.com/$1 [R=301,L]

Loop Stopping Code

Sometimes your rewrites cause infinite loops, stop it with one of these rewrite code snippets.

RewriteCond %{REQUEST_URI} ^/(stats/|missing\.html|failed_auth\.html|error/).* [NC]

RewriteRule .* - [L]

RewriteCond %{ENV:REDIRECT_STATUS} 200

RewriteRule .* - [L]

Cache-Friendly File Names

This is probably my favorite, and I use it on every site I work on. It allows me to update my javascript and css files in my visitors cache’s simply by naming them differently in the html, on the server they stay the same name. This rewrites all files for /zap/j/anything-anynumber.js to /zap/j/anything.js and /zap/c/anything-anynumber.css to /zap/c/anything.css

RewriteRule ^zap/(j|c)/([a-z]+)-([0-9]+)\.(js|css)$ /zap/$1/$2.$4 [L]

SEO friendly link for non-flash browsers

When you use flash on your site and you properly supply a link to download flash that shows up for non-flash aware browsers, it is nice to use a shortcut to keep your code clean and your external links to a minimum. This code allows me to link to site.com/getflash/ for non-flash aware browsers.

RewriteRule ^getflash/?$ http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash [NC,L,R=307]

Removing the Query_String

On many sites, the page will be displayed for both page.html and page.html?anything=anything, which hurts your SEO with duplicate content. An easy way to fix this issue is to redirect external requests containing a query string to the same uri without the query_string.

RewriteCond %{THE_REQUEST} ^GET\ /.*\;.*\ HTTP/

RewriteCond %{QUERY_STRING} !^$

RewriteRule .* http://www.askapache.com%{REQUEST_URI}? [R=301,L]

Sending requests to a php script

This .htaccess rewrite example invisibly rewrites requests for all Adobe pdf files to be handled by /cgi-bin/pdf-script.php

RewriteRule ^(.+)\.pdf$ /cgi-bin/pdf-script.php?file=$1.pdf [L,NC,QSA]

Setting the language variable based on Client

For sites using multiviews or with multiple language capabilities, it is nice to be able to send the correct language automatically based on the clients preferred language.

RewriteCond %{HTTP:Accept-Language} ^.*(de|es|fr|it|ja|ru|en).*$ [NC]

RewriteRule ^(.*)$ - [env=prefer-language:%1]

Deny Access To Everyone Except PHP fopen

This allows access to all files by php fopen, but denies anyone else.

RewriteEngine On

RewriteBase /

RewriteCond %{THE_REQUEST} ^.+$ [NC]

RewriteRule .* - [F,L]

Deny access to anything in a subfolder except php fopen

This can be very handy if you want to serve media files or special downloads but only through a php proxy script.

RewriteEngine On

RewriteBase /

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+)/.*\ HTTP [NC]

RewriteRule .* - [F,L]

Require no www

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^askapache\.com$ [NC]

RewriteRule ^(.*)$ http://askapache.com/$1 [R=301,L]

Check for a key in QUERY_STRING

Uses a RewriteCond Directive to check QUERY_STRING for passkey, if it doesn’t find it it redirects all requests for anything in the /logged-in/ directory to the /login.php script.

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} !passkey

RewriteRule ^/logged-in/(.*)$ /login.php [L]

Removes the QUERY_STRING from the URL

If the QUERY_STRING has any value at all besides blank than the?at the end of /login.php? tells mod_rewrite to remove the QUERY_STRING from login.php and redirect.

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} .

RewriteRule ^login.php /login.php? [L]

Fix for infinite loops

An error message related to this isRequest exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.or you may seeRequest exceeded the limit,probable configuration error,Use 'LogLevel debug' to get a backtrace, orUse 'LimitInternalRecursion' to increase the limit if necessary

RewriteCond %{ENV:REDIRECT_STATUS} 200

RewriteRule .* - [L]

External Redirect .php files to .html files (SEO friendly)

RewriteRule ^(.*)\.php$ /$1.html [R=301,L]

Internal Redirect .php files to .html files (SEO friendly)

Redirects all files that end in .html to be served from filename.php so it looks like all your pages are .html but really they are .php

RewriteRule ^(.*)\.html$ $1.php [R=301,L]

block access to files during certain hours of the day

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

# If the hour is 16 (4 PM) Then deny all access

RewriteCond %{TIME_HOUR} ^16$

RewriteRule ^.*$ - [F,L]

Rewrite underscores to hyphens for SEO URL

Converts all underscores “_” in urls to hyphens “-” for SEO benefits… See the full article for more info.

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

RewriteRule !\.(html|php)$ - [S=4]

RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5 [E=uscor:Yes]

RewriteRule ^([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4 [E=uscor:Yes]

RewriteRule ^([^_]*)_([^_]*)_(.*)$ $1-$2-$3 [E=uscor:Yes]

RewriteRule ^([^_]*)_(.*)$ $1-$2 [E=uscor:Yes]

RewriteCond %{ENV:uscor} ^Yes$

RewriteRule (.*) http://d.com/$1 [R=301,L]

Require the www without hardcoding

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.[a-z-]+\.[a-z]{2,6} [NC]

RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$ [NC]

RewriteRule ^/(.*)$ http://%1/$1 [R=301,L]

Require no subdomain

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} \.([a-z-]+\.[a-z]{2,6})$ [NC]

RewriteRule ^/(.*)$ http://%1/$1 [R=301,L]

Require no subdomain

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} \.([^\.]+\.[^\.0-9]+)$

RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Redirecting Wordpress Feeds to Feedburner

Full article:Redirecting Wordpress Feeds to Feedburner

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_URI} ^/feed\.gif$

RewriteRule .* - [L]

RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]

RewriteRule ^feed/?.*$ http://feeds.feedburner.com/apache/htaccess [L,R=302]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

Only allow GET and PUT Request Methods

Article: Request Methods

RewriteEngine On

RewriteBase /


RewriteRule .* - [F]

Prevent Files image/file hotlinking and bandwidth stealing

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://(www\.)?askapache.com/.*$ [NC]

RewriteRule \.(gif|jpg|swf|flv|png)$ /feed/ [R=302,L]

Stop browser prefetching

RewriteEngine On

SetEnvIfNoCase X-Forwarded-For .+ proxy=yes

SetEnvIfNoCase X-moz prefetch no_access=yes

# block pre-fetch requests with X-moz headers

RewriteCond %{ENV:no_access} yes

RewriteRule .* - [F,L]

Make a prefetching hint for Firefox.

Header append Link "


; rel=prefetch"

This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule, to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, of server variables, environment variables, HTTP headers, or time stamps. Even external database lookups in various formats can be used to achieve highly granular URL matching.

This module operates on the full URLs (including the path-info part) both in per-server context (httpd.conf) and per-directory context (.htaccess) and can generate query-string parts on result. The rewritten result can lead to internal sub-processing, external request redirection or even to an internal proxy throughput.

Further details, discussion, and examples, are provided in the detailed mod_rewrite documentation.

Thursday, August 14, 2008

Ebook Of Open Source CMS


Free Ebook for Apress Building Online Communities With Drupal phpBB and WordPress Dec 2005 Please Download this ebook freely and learn.

Dowanload Link :- Click here

Free e-book Pro Drupal Development (John K. VanDyk and Matt Westgate)

Download Link :- Click Here

Friday, June 13, 2008

PDF Protection


Author: Klemen Vodopivec

License: Freeware


This script allows to protect the PDF, that is to say prevent people from copying its content, print it or modify it.

SetProtection([array permissions [, string user_pass [, string owner_pass]]])

permissions: the set of permissions. Empty by default (only viewing is allowed).

user_pass: user password. Empty by default.

owner_pass: owner password. If not specified, a random value is used.

The permission array is composed of values taken from the following ones:

  • copy: copy text and images to the clipboard

  • print: print the document

  • modify: modify it (except for annotations and forms)

  • annot-forms: add annotations and forms

Remark: the protection against modification is for people who have the full Acrobat product.

If you don't set any password, the document will open as usual. If you set a user password, the PDF viewer will ask for it before displaying the document. The master password, if different from the user one, can be used to get full access.

Note: protecting a document requires to encrypt it, which increases the processing time a lot. This can cause a PHP time-out in some cases, especially if the document contains images or fonts.




* Software: FPDF_Protection                                                 *

* Version:  1.02                                                            *

* Date:     2005/05/08                                                      *

* Author:   Klemen VODOPIVEC                                                *

* License:  Freeware                                                        *

*                                                                           *

* You may use and modify this software as you wish as stated in original    *

* FPDF package.                                                             *

*                                                                           *

* Thanks: Cpdf (http://www.ros.co.nz/pdf) was my working sample of how to   *

* implement protection in pdf.                                              *



class FPDF_Protection extends FPDF


    var $encrypted;          //whether document is protected

    var $Uvalue;             //U entry in pdf document

    var $Ovalue;             //O entry in pdf document

    var $Pvalue;             //P entry in pdf document

    var $enc_obj_id;         //encryption object id

    var $last_rc4_key;       //last RC4 key encrypted (cached for optimisation)

    var $last_rc4_key_c;     //last RC4 computed key

    function FPDF_Protection($orientation='P',$unit='mm',$format='A4')









    * Function to set permissions as well as user and owner passwords


    * - permissions is an array with values taken from the following list:

    *   copy, print, modify, annot-forms

    *   If a value is present it means that the permission is granted

    * - If a user password is set, user will be prompted before document is opened

    * - If an owner password is set, document can be opened in privilege mode with no

    *   restriction if that password is entered


    function SetProtection($permissions=array(),$user_pass='',$owner_pass=null)


        $options = array('print' => 4, 'modify' => 8, 'copy' => 16, 'annot-forms' => 32 );

        $protection = 192;

        foreach($permissions as $permission){

            if (!isset($options[$permission]))

                $this->Error('Incorrect permission: '.$permission);

            $protection += $options[$permission];


        if ($owner_pass === null)

            $owner_pass = uniqid(rand());

        $this->encrypted = true;

        $this->_generateencryptionkey($user_pass, $owner_pass, $protection);



*                                                                           *

*                              Private methods                              *

*                                                                           *


    function _putstream($s)


        if ($this->encrypted) {

            $s = $this->_RC4($this->_objectkey($this->n), $s);




    function _textstring($s)


        if ($this->encrypted) {

            $s = $this->_RC4($this->_objectkey($this->n), $s);


        return parent::_textstring($s);



    * Compute key depending on object number where the encrypted data is stored


    function _objectkey($n)


        return substr($this->_md5_16($this->encryption_key.pack('VXxx',$n)),0,10);



    * Escape special characters


    function _escape($s)






        return $s;


    function _putresources()



        if ($this->encrypted) {


            $this->enc_obj_id = $this->n;







    function _putencryption()


        $this->_out('/Filter /Standard');

        $this->_out('/V 1');

        $this->_out('/R 2');

        $this->_out('/O ('.$this->_escape($this->Ovalue).')');

        $this->_out('/U ('.$this->_escape($this->Uvalue).')');

        $this->_out('/P '.$this->Pvalue);


    function _puttrailer()



        if ($this->encrypted) {

            $this->_out('/Encrypt '.$this->enc_obj_id.' 0 R');

            $this->_out('/ID [()()]');




    * RC4 is the standard encryption algorithm used in PDF format


    function _RC4($key, $text)


        if ($this->last_rc4_key != $key) {

            $k = str_repeat($key, 256/strlen($key)+1);

            $rc4 = range(0,255);

            $j = 0;

            for ($i=0; $i<256; $i++){

                $t = $rc4[$i];

                $j = ($j + $t + ord($k{$i})) % 256;

                $rc4[$i] = $rc4[$j];

                $rc4[$j] = $t;


            $this->last_rc4_key = $key;

            $this->last_rc4_key_c = $rc4;

        } else {

            $rc4 = $this->last_rc4_key_c;


        $len = strlen($text);

        $a = 0;

        $b = 0;

        $out = '';

        for ($i=0; $i<$len; $i++){

            $a = ($a+1)%256;

            $t= $rc4[$a];

            $b = ($b+$t)%256;

            $rc4[$a] = $rc4[$b];

            $rc4[$b] = $t;

            $k = $rc4[($rc4[$a]+$rc4[$b])%256];

            $out.=chr(ord($text{$i}) ^ $k);


        return $out;



    * Get MD5 as binary string


    function _md5_16($string)


        return pack('H*',md5($string));



    * Compute O value


    function _Ovalue($user_pass, $owner_pass)


        $tmp = $this->_md5_16($owner_pass);

        $owner_RC4_key = substr($tmp,0,5);

        return $this->_RC4($owner_RC4_key, $user_pass);



    * Compute U value


    function _Uvalue()


        return $this->_RC4($this->encryption_key, $this->padding);



    * Compute encryption key


    function _generateencryptionkey($user_pass, $owner_pass, $protection)


        // Pad passwords

        $user_pass = substr($user_pass.$this->padding,0,32);

        $owner_pass = substr($owner_pass.$this->padding,0,32);

        // Compute O value

        $this->Ovalue = $this->_Ovalue($user_pass,$owner_pass);

        // Compute encyption key

        $tmp = $this->_md5_16($user_pass.$this->Ovalue.chr($protection)."\xFF\xFF\xFF");

        $this->encryption_key = substr($tmp,0,5);

        // Compute U value

        $this->Uvalue = $this->_Uvalue();

        // Compute P value

        $this->Pvalue = -(($protection^255)+1);





This example shows how to allow only printing.




$pdf=new FPDF_Protection();





$pdf->Write(10,'You can print me but not copy my text.');



View the result here.



Tuesday, June 10, 2008

Get metadata on MySQL databases

Getting information about databases if essential if you want to write generic and scalable applications. This code shows you how to get information such as all databases on the server, all tables in each database and all field and field info for each table. Even if you do not need to build on this code, you might want to copy the code which prints out all databases, tables and field information plus examples. Its a great way to get an overview of the tables you are working on for a project.


//getting metadata on MySQL databases

//output the structure of a table

$connection_1 = mysql_connect("localhost");

$fields = mysql_list_fields("cmphp","rights");

for($i=0;$i<mysql_num_fields($fields);$i++) {

   echo mysql_field_name($fields,$i)." (".mysql_field_len($fields,$i).") - ".mysql_field_type($fields,$i)."<br>";



//show the structure of ALL tables in ALL databases on the server

$server_connection_1 = mysql_connect("localhost");

$databases = mysql_query("SHOW DATABASES");

while($database = mysql_fetch_row($databases)) {

   echo '<h2>DATABASE: '.$database[0].'</h2>';

   $database_connection_1 = mysql_select_db($database[0]);

   $tables = mysql_query("SHOW TABLES");

   while($table = mysql_fetch_row($tables)){

       echo '<table border="1" cellpadding="5" width="500">';

       echo '<tr><td colspan="3" bgcolor="silver">TABLE: '.$table[0].'</td></tr>';

       $fields = mysql_list_fields($database[0],$table[0]);

       for($i=0;$i<mysql_num_fields($fields);$i++) {

           echo '<tr>';

           echo '<td>'.mysql_field_name($fields,$i)."</td>";

           echo '<td>'.mysql_field_len($fields,$i)."</td>";

           echo '<td>'.mysql_field_type($fields,$i)."</td>";

           echo '</tr>';


       echo '</table><br>';




//show the nice structure of a particular database

$server_connection_1 = mysql_connect("localhost");

$the_database = "cmphp";

echo '<h2>DATABASE: '.$the_database.'</h2>';

$database_connection_1 = mysql_select_db($the_database);

$tables = mysql_query("SHOW TABLES");

while($table = mysql_fetch_row($tables)){

   echo '<table border="1" cellpadding="5" width="600">';

   echo '<tr><td colspan="4" bgcolor="silver"><b>TABLE: '.$table[0].'</b></td></tr>';

   echo '<tr><td bgcolor="silver">NAME</td><td bgcolor="silver">SIZE</td><td bgcolor="silver">TYPE</td><td bgcolor="silver">EXAMPLE</td></tr>';

   $fields = mysql_list_fields($the_database,$table[0]);

   for($i=0;$i<mysql_num_fields($fields);$i++) {

       echo '<tr>';

       echo '<td>'.mysql_field_name($fields,$i)."</td>";

       echo '<td>'.mysql_field_len($fields,$i)."</td>";

       echo '<td>'.mysql_field_type($fields,$i)."</td>";

       $rows = mysql_query("SELECT ".mysql_field_name($fields,$i)." FROM ".$table[0]." LIMIT 1");

       $row = mysql_fetch_array($rows);

       echo '<td bgcolor="eeeeee">'.$row[0].' </td>';

       echo '</tr>';


   echo '</table><br>';




This Article is taken from http://www.developerfusion.co.uk/show/3945/

Tuesday, April 22, 2008

Search Engine Optimization (SEO) Glossary

Search Engine Optimization (SEO) Glossary

Definitions to the terms used to describe actions and event in the world of Search Engine Marketing. Search Terms
The words or phrases used by people when performing searches in search engines. Also called keywords, query terms or query.

Ad Pimp
A website that has too many ads on it in an obvious attempt to monetize the site.

Ad Rank
Google AdWords multiplies Quality Score (QS) and the maximum CPC (Max CPC) to reach an Ad Rank for each ad.

Added Value Affiliates
Provide a value-added service to visitors in addition to affiliate links and affiliate content.

Your Ad Here

AdSense Arbitrage
The process of buying traffic with pay-per-click programs, sending traffic to highly optimized Adsense pages and collecting the difference.

AdSense Link Clicking Bots
Automated programs that try to spoof random IP addresses to click through AdWords displayed on a site.

Google’s - Cost Per Click (CPC) based advertising system.

Affiliate Sniper
People who save money on purchases by switching your affiliate ID with their own.

Agent Name
An agent name is the name of the software accessing a web page.

Software that lets you automatically download content to your computer

Attention, Interest, Desire, Action: A term used to describe a formula to increase conversions.

A mathematical formula used to determine the value of a page when compared against others.

Second Tier search engine.

ALT Text
The text that appears when you put your mouse on top of an image or a picture.

Used to be the #1 search engine until Google came along.

Anchor Text
Also known as Link Text, the clickable text of a hyperlink.

America On-Line - Great for novice users, uses Google as part of it's search results.

Application Programming Interface.

American Standard Code for Information Interchange

Trying to be considered as one of the "Top Dogs" along with Yahoo and MSN, following Google.

Dual meanings: Microsoft Active Server Pages (filename.asp) or Application Service Provider (e.g. a provider of web based applications)

The practice of faking, pushing or help to mold a “grass roots” movement.

ATF (Above the Fold)
This is the part of the user's screen that is always displayed.

An audio web log in MP3 format and available for download to an MP3 player or a computer.

Authority Site
A site that has many In-Bound links coming to it, and very little outbound links.

Back link
A text link to your website from another website.

A term that means a site has been removed from a search engine's index.

Banner Blindness
The act of web visitors to ignoring advertisements on the site whether it is a graphic or text ad.

BAP (Blog and Ping)
A method (ab)used to get the search engines to quickly index your blog's content.

Black Hat SEO
A term referring to the practice of “unethical” SEO. These techniques are used to gain an advantage over your competition.

Blind Traffic
This is traffic that is extremely low quality often by low relevance pages.

A "Web Log" that is updated frequently and is usually the opinion of one person. Also joking stands for Better Listing on Google.

Term referring to have bookmarked a blog in your browser.

Your Ad Here

The emerging practice of giving free stuff (from tote bags to travel junkets) to bloggers, in return for a sympathetic review.

A book that is serialized on a blog site. Chapters are published one by one as blog posts.

Short for robot. Often used to refer to a search engine spider.

Software application used to browse the internet - Mozilla Firefox and Internet Explorer are the 2 most popular browsers.

BTF (Below the Fold)
This is the part of the user's screen that is hidden unless the user scrolls down on the page.

C Class IP
This is the third block of numbers found in an IP Address.

A copy of web pages stored within a search engine's database.

Stands for : Completely Automated Public Turing test to tell Computers and Humans Apart

A blog that describes products for sale.

Click Arbitrage
Purchasing PPC ads and hoping that traffic leaves with a click on your ads.

Click Distance
The minimum number of clicks it takes a visitor to get from one page to another.

Click Flipping
The process of identifying and maximizing, multiple profit pathways, using PPC traffic and converting that traffic with Cost Per Action offers.

Click Pirates
Peuple who click on ads, knowingly and proudly, stealing from advertisers, as they encourage others to join with them in this quest.

Click Poison
The process of using blatant phrases such as "Cool New Idea" and "Click here for Travel Tips" to get a site buried on sites such as digg and netscape.

Click Through
The process of clicking through an online advertisement to the advertiser's destination.

Your Ad Here

Derived from the amount of time a user spends on a Web site and the number of pages viewed, a clickprint is a unique online fingerprint that can help a vendor identify return visitors, curb fraud, and collect personal information for "customer service." aka invasive marketing

A technique that shows keyword stuffed apges to a search engine, but a real page to a human user.

In search engine search results pages, clustering is limiting each represented website to one or two listings.

A collaborative vocabulary for tagging Web content. Like the folksonomies used on social bookmarking sites like del.icio.us, collabularies are generated by a community. But unlike folksonomies, they're automatically vetted for consistency, extracting the wisdom of the crowds from the cacophony.

Content Networks
A nicer way to say Link Farm.

Content Repurposing
A nicer way to say scraping a site for content.

Contextual Link Inventory (CLI)
Text links that are shown depending on the content that appears around them.

Conversion Optimization
Transforms your site into a selling tool - your site logically leads visitors through the sales cycle and closes sale.

Conversion Rate
The number of visitors to a website that end up performing a specific action that leads to a conversion. This could be a product purchase, newsletter sign up or anything where information is submitted.

Converting Search Phrase
A phrase that converts traffic into money.

Information stored on a user's computer by a website.

Text found on a web page.

Cost per Thousand
The cost for each thousand impressions of your ad.

CPA - (Cost Per Action)
The price paid for each visitor's actions from a paid search.

CPC (Cost Per Click)
The amount it will cost each time a user selects your phrase or keyword.

A bot from a search engine that reads the text found on a website in order to determine what the website is about.

Your Ad Here

Cross Linking
Having multiple websites linking to each other.

CSS (Cascading Style Sheets)
Used to define the look and navigation of a website.

CTR (Click Through Rate)
The value associated to the amount of times a paid ad is viewed.

A person who finds, collects, and manages information available on the Internet.

Dangling Link
This term is applied to a web page with no links to any other pages. Also known as an Orphan Page.

Dead Link
A hyperlink pointing to a non-existent URL.

Deep Crawl
Once a month, Googlebot will crawl all of the links it has listed in it's database on your site. This is known as the Deep Crawl.

Deep Link
A link on a website that is not reachable from the home page.

When a site gets removed from the search index of a search engine.

In a contract, these are the expected results of the services provided.

Purposely creating content to get traffic from digg.com

Usually human edited, a directory contains sites that are sorted by categories.

DMCA (Digital Millennium Copyright Act)
A declaration that protects digital works found online.

Also known as the Open Directory Project.

Domain Network Optimizers

DNS (Domain Name System)
A protocol that lets computers recognize each other through an IP Address, whereas the human sees a website URL.

Fired for negative blogging about the company you work for.

Doorway Page
A web page designed to draw in Internet traffic from search engines, and then direct this traffic to another website.

Dynamic Site
A site that uses a database to store it's content and is delivered based on the variable passed to the page.

EPC (Earnings Per Click)
How much profit is made from each click from a paid ad.

EPV (Earnings Per Visitor)
The cost it takes to make profit from a site's total number of visitors.

Error 404
When a hyperlink is pointing to a location on the web that doesn't exist, it is called a 404 error.

A term associated with the constant updating of Google's algorithm between the major updates.

External Link
A link that points to another website.

FAQ (Frequently Asked Question)
Commonly found on websites, FAQs answer questions that many users generally have about a product or service.

FFA (Free For All)
A site where anyone can list their link. Don't waste any time submitting your site to these places.

Filter Words
Words such as is, am, were, was, the, for, do, ETC, that search engines deem irrelevant for indexing purposes. Also known as Stop words.

A fake blog, a website pretending to be a blog but actually the creation of public relations firms, the mainstream media, or professional political operatives.

The construction of open-ended organization systems that allow multiple internet users to sort web sites and their elements.

Pirated software cobbled together from beta versions and early releases.

Fresh Crawl
Utilizes FreshBot to review already indexed pages and any pages where the content has been updated.

Your Ad Here

A sister to GoogleBot, this spider crawls highly ranked sites on a very frequent basis.

FTP (File Transfer Protocol)
Technology that allows file transfers from a local machine to a remote host.

Geo Targeting
A very tactful way to employ cloaking.

Google First Name Rank.

Currently, the world's #1 search engine.

Google AdWords
Google's PPC program.

Google Bombing
A technique where using the same text anchor links, many people link to a certain page, usually of irrelevant content.

The spider that performs a deep crawl of your site.

To nudge a competitor from the serps.

The fear of Google taking over everything.

When your content is copied and inserted into someone else's site without permission or credit.

This is the term that inspired the creators of Google to use this name - it means: 10100 = 1 followed by 100 zeros

Your Ad Here

Heading Tag
Tag that designates headlines in the text of a site.

Hidden Text
Text that can't be seen normally in a browser.

A single access request made to the server.

Hoax Marketing
The creation of false stories to drive traffic to a site.

.htaccess is an Apache file that allows server configuration instructions.

HyperText Markup Language - the basics for all web coding.

HTTP (Hypertext Transfer Protocol)
It is a generic, stateless, protocol which can be used for many tasks.

HTTPS (HyperText Transfer Protocol Secure)
It is a generic, stateless, protocol which can be used for many tasks, but has security features enabled to protect sensitive data.

A site that has many outbound links, and few sites linking back.

IBL (In-Bound Link)
A link residing on another site that points to your site.

ICRA (Internet Content Rating Association)
The Internet Content Rating Association (ICRA) is an international, non-profit organization of internet leaders working to make the internet safer for children, while respecting the rights of content providers.

IM (Instant Messaging)
As the name implies, this protocol allows for extremely fast communication over the Internet

A term used to describe the database that holds all the web pages crawled by the search engine for each website.

Indexing Assistance
An even more advanced form of cloaking.

Information Architecture
The gathering, organizing, and presenting information to serve a purpose.

Informational Query
A query about a topic where the user expects to be provided with information on the topic.

Internal Link
A link that points to another page within the same site. Most commonly used for navigation.

Your Ad Here

An interconnected system of networks that connects computers around the world via the TCP/IP protocol.

Internet Traffic Optimizer (ITO)
A broader term for a person who optimizes not only for search engines but to get traffic from other sources such as blogs, RSS feeds and articles.

Loads a commercial in the background of a Web page. When the user exits the page, the user gets served a full-page, between-page advertisement in Flash, an animated gif or other rich media.

Invisible Web
Web Pages that are not reachable by search engines.

IP (Internet Protocol)
This protocol allows for machines to communicate to each other via the Internet.

IP Address (Internet Protocol Address)
how data finds its way back and forth from your computer to the internet.

IP Spoofing
A method of reporting an IP address other than your own when connecting to the internet.

js (JavaScript)
A scripting language that provides browser functionality.

Keyword Density
A ratio of the number of occurrences of a keyword or "keyword phrase" to the total number of words on a page.

Keyword Effectiveness Index (KEI)
The KEI compares the number of searches for a keyword with the number of search results to pinpoint which keywords should be the most effective for your campaign.

Keyword Phrase
A group of words that form a search query.

Keyword Stuffing
Using a keyword or "keyword phrase" excessively in a web page, perhaps in the text content or meta tags.

The term used when weblogs are used in knowledge management use cases.

KW (Key Words)
Used to define the terms a user might enter into a search engine to find information on their query.

Landing Page
Usually used in conjunction with a PPC campaign, they are call-to-action pages that prompt the user to engage the site.

Also known as a hyperlink, it is the "clickable" area of text or image that allows for navigation on the Internet. Also the name of the main character og the Legend of Zelda video games.

Link Bait (Linkbaiting)
The process of getting users to link to your site.

Link Farm
A site that features links in no particular order which are totally unrelated to each other.

Link Maximization
The method of getting popular sites in your industry to link to your website.

Link Partner
A website who is willing to put a link to your site from their website. Quite often link partners engage in reciprocal linking.

Link Popularity
How many sites link to your website.

Link Text
The clickable part of a hyperlink. Also known as Anchor Text or Anchor Link.

People who are the target of linkbait - bloggers, forum users, social taggers, etc.

The results that a search engine returns for a particular search term.

Your Ad Here

Commonly thought of as a way of merging two different items, or scraping more than one source.

Meta Description Tag
Hold the description of the content found on the page.

Meta Keywords Tag
Holds the keywords that are found on the page.

Meta Search Engine
A search engine that relies on the meta data found in meta tags to determine relevancy.

Meta Tag Masking
An old trick that uses CGI codes to hide the Meta tags from browsers while allowing search engines to actually see the Meta tags.

Meta Tags
Header tags that provide information about the content of a site.

META Tags or what are officially referred to as Metadata Elements, are found within the section of your web pages.

The use of copyrighted names and slogans in META tags.

MFA (Made For AdSense)
A term that describes websites that are created entirely for the purpose of gaming Google Adsense to make money.

Made For Digg - Similar to MFA (Made for AdSense) sites, these sites try to get traffic from digg by having entire sites full of funny images or postings.

To split up a product or service sold traditionally as a package, offering each piece to buyers a la carte.

Designed for humans first and machines second, microformats are a set of simple, open data formats built upon existing and widely adopted standards. Instead of throwing away what works today, microformats intend to solve simpler problems first by adapting to current behaviors and usage patterns (e.g. XHTML, blogging). - taken from (http://microformats.org/about/)

Mirror Sites
A mirror site is a site that exacltly duplicates another site.

TV shows shot exclusively for mobile phones.

Short for "My Mobile Blog", a service from Blogger that when you send an email to go@blogger.com from your cellphone, it automatically creates a new blog.

The study of how people adapt and use wireless technologies.

Most Wanted Response (MWR)
This is what you want your customer to do on your site.

Short for Mobile Browser.

Stands for “MPEG Third Layer.” A standard for storing and transmitting music in digital format across the Internet.

MSN (MicroSoft Network)
Microsoft's search engine.

Creating a program aimed at a small and specific niche or group of people.

Natural Listing
A listing that appears below the sponsored ads, also known as Organic Listings.

Navigational Query
A query that normally has only one satisfactory result.

NDA (Non-Disclosure Agreement)
Usually required as part of a contract to protect the company engaging in services.

The act of posting to old threads to bring them back up. Also known as "bumping".

A specialized segment of a market that is usually geared towards one specific purpose.

Niche Aggregators
Another way of saying Spam site.

An attribute used in a hyperlink to instruct search engines not to follow the link. (And pass PageRank)

Off-Page Factors
Factors that alter search engine positions that occur externally from other website's. By having many links from other sites pointing to yours is an example of Off-Page Factors.

On-Page Factors
Factors that determine search engine positions that occur internally within a page of a website. This can include site copy, page titles, and navigational structure of the site.

Your Ad Here

OOP (Over Optimization Penalty)
A theory that applies if one targets only 1 keyword or phrase, and the search engines view the linking efforts to be spam.

OpenRank (Open Source PageRank)
A suggestion to make a web-wide ranking system as opposed to Google's Pagerank.

When a user willing joins a subscription to a newsletter or some other service.

Organic Listing
The natural results returned by a search engine.

Orphan Page
A page that has a link to it, but has no links to any other sites.

Outbound Link
A link from your site to any other site.

Page View
Anytime a user looks at any page on a website through their browser.

A cost-per-click advertising program that serves your site's ad on a page that contains related content.

PageRank Drain
When a page has no outbound links, it causes pagerank drain because it cannot pass any value to another web page.

Paid Inclusion
A submission service where you pay a fee to a search engine and the search engine guarantees that your website will be included in its index. Paid inclusion programs will also ensure that your website is indexed very fast and crawled on regular basis. It can also be used as a term to include fee based directory submission.

Pay-Per-Click Management
Strategy, Planning and Placement of targeted keywords in the paid search results.

PFI (Pay For Inclusion)
A system in which a site pays to get a guaranteed listing.

PFP (Pay For Performance)
A system in which payment for services is only made when a conversion takes place.

A Podcast is just an audio file that is syndicated via an RSS feed, that is downloaded and listened to with a computer or a portable device such as an iPod.

The process of subscribing to podcasts.

PPC (Pay Per Click)
A technique where placements are determined by how much id bid on a particular keyword or phrase. Can become very expensive.

PR (Google's PageRank)
Google's unique system of how it tries to predict the value of a pages rank.

Pro Blogging
A person who makes a living by blogging.

An inquiry that is entered into a search engine in order to get results.

Rank - Ranking
The actual position of a website on a search engine results page for a certain search term or phrase.

Reciprocal Link
When two sites link to each other.

Either server side or scripting language that tells the search engine to go to another URL automatically.

Referral Spam
Sending multiple requests to a website spoofing the header to make it look like real traffic is being sent to another site.

A referrer is the URL of the page that the visitor came from when he entered a website.

Your Ad Here

Relevance Rank (RR)
A system in which the search engine tries to determine the theme of a site that a link is coming from

Term used to describe how close the content of a page is in relation to the keyword phrase used to search.

Results Page
When a user conducts a search, the page that is displayed, is called the results page. Sometimes it may be called SERPs, which stands for "search engine results page."

RFP (Request for Proposal)
Used to send out to multiple companies in order to get a list of services to be delivered and at what cost.

Rich Internet Applications (RIA)
Applications such as Ajax and Flash that provide a better user experience by delivering content in an on-demand web environment.

Often used to refer to a search engine spider.

ROC (Return on Customer)
The value each customer brings.

ROI (Return on Investment)
The cost it takes to in order to see success on your marketing investment.

RSS Feed (Rich Site Summary or Rich Site Syndication)
RSS feeds use an XML document to publish information.

Scope Creep
When the contracted amount of work to be completed changes because of client changes or technology advances.

SE (Search Engine)
A web based information retrieval program.

Search Engine
Best described as a database of websites users can search using search terms. Every search engine has its own algorithm which defines how the results are displayed.

Search Engine Marketing (SEM)
The practice of getting a website found on the internet

Search Engine Optimization (SEO)
The act of altering code to a website to have optimum relevance to a search engine spider.

Search Friendly Optimization (SFO)
As the term implies, this is the process of making a website search engine friendly.

Search Query
The text entered into the search box on a search engine.

Famous people in the world of search.

SERP (Search Engine Results Page)
The results that are displayed after making a query into a search box.

Search Friendly Optimization.

Sitemap (Site Map)
A page that lists all of the critical navigation points of a website.

The name of Yahoo's Search Engine Spider.

Phishing via text message. Smishers bombard cell phones with SMS versions of standard phishing solicitations, directing victims to Web sites that install spyware on their computers.

The text displayed from a search query.

Social Media Poisoning
A technique where unscrupulous marketers will try to sabotage a competitor's web site by engaging in social media communications and link seeding/spamming tactics that they hope will spark a rash of bad publicity, and maybe even trigger some sort of rankings and/or reputational search penalty against their competitor.

Unwanted email or irrelevant content delivered. (or as some say, Site Placed Above Mine)

Spam Cannon
A term used in conjunction with sites that use email sign-ups for spamming purposes - the latimes.com is an example.

The act of delivering unwanted messages to the masses.

The method or result of concealing or disguising search engine spam to make it appear to be legitimate.

Your Ad Here

The software that crawls your site to try and determine the content it finds.

A technique that makes a search engine spider find your site.

Splash Page
A page displayed for viewing before reaching the main page.

The main part of a word to which affixes are added.

How influential your site is in keeping a visitor on your page.

Stop Word
A stop word is a "common word" which is ignored in a query because the word makes no contribution to the relevancy of the query.

Stop Word
Stop words are very common words such as ‘a, the, and & that’ and are filtered out of your search query. Search engines do this in order to try to serve the best results for a user query.

Strategic Linking
A thought out approach to getting websites to link to your site.

The process of submitting URL(s) to search engines or directories.

A methodic way of identifying your Strengths and Weaknesses, and of examining the Opportunities and Threats you face.

The proper use of language when coding a website.

Tag Soup
Tag soup is HTML code written without regard for the rules of HTML structure and semantics.

The Deep Web
The content in databases that rarely shows up in Web searches. It is estimated that there are 500 billion Web pages that could potentially be hidden.

What the site's main topic is about.

Thin Affiliates
Doorways that send visitors to affiliate programs, earning a commission for doing so, while providing little or no value-added content or service to the user.

Title Tag
It should be used to describe the web page using targeted keywords using no more that 60 characters, including spaces.

TLD (Top Level Domain)
Most commonly thought of as a ".com", also includes ".org" and ".edu"

TOM (Tactical Online Marketing)
The process of informing the customer of your services from various sources.

TOS (Terms of Service)
Usually found in a contract, also known as the contracts "deliverables".

Tracking URL
Usually used in PPC campaigns, it is a URL that has special code added to it so that results can be monitored.

The number of visitors a website receives over a given period. Usually reported on a monthly basis.

Transactional Query
A query where the user expects to conduct a transaction.

Trusted Feed
A form of paid inclusion which uses bulk a XML feed to directly send website content to search engines for indexing. The feed can be optimized so that your website can take advantage better rankings and therefore more traffic

A method of using a combination of limited human site review in conjunction with a search engines algorithm.

Relies on typographical errors by users to serve up websites that look like Google to launch viruses and trojans to unsuspecting users.

Unique Visitor
When a user visits a website, his/her IP address is logged so if he/she returns later on that day, the visit won’t be counted as a unique visit but as a page impression.

Universal Search
Launched on May 16, 2007, this is Google's attempt to deliver the best result from the web. This can include video, images, news, podcasts or any other form of digital content.

URL (Uniform Resource Locator)
Commonly referred to as the domain name, this is how humans navigate through the Internet, whereas computers use IP addresses.

User Agent
A User agent name is the name of the software accessing a web page. (Another term for Agent Name)

USP (Unique Selling Proposition)
Sometimes mistakenly defined as Unique Selling Point. The Unique Selling Proposition concept was first developed by Rosser Reeves of the Ted Bates Agency. Basically, it's what sets you apart from your competition.

Visitor Enhanced Optimization

Your Ad Here

VoIP (Voice Over Internet Protocol)
VoIP converts the voice signal from your telephone into a digital signal that travels over the internet then converts it back at the other end so you can speak to anyone with a regular phone number.

Web Saturation
How many pages of your site are indexed by the search engines collectively.

Slang term for a person who spends most of their time on the internet, most of their friends are netpals, and they are uncomfortable if they can't get online.

White Hat SEO
A term that refers to ethical practice of SEO methodologies that adhere to search engine Terms of Service.

White Paper
A White Paper is your statement about how a problem should be solved.

Whois Data
Registration data such as the company name, address and telephone number when registering a domain name.

Whore Trains
A list of people on MySpace that you add yourself to and keep reposting the list so that you can get a lot of people requesting to be your friends.

Wi-Fi (certification mark)
Used to certify the interoperability of wireless computer networking devices.

Users who enjoy the process of building and defending wikipedia.

What was I looking for?

WWW (World Wide Web)
Another term to describe the Internet.

XML (Extensible Markup Language (filename.xml))
A scripting language that allows the programmer to define the properties of the document.

The #2 Search Engine in the world.

Zeitgeist (Google Zeitgesit)
A service provided that shows snippets of the emerging and declining trends of what people are searching for through the Google search engine.

Search Engine Optimization - SEO Workout

What is Search Engine Optimization? (SEO)

Search Engine Optimization is the process of making changes to the coding of a website in order to rank better in the search engine results page. There are many steps involved in the process, many of which include the following:
  • W3C Validation
  • Proper naming structure of files for search engines
  • Proper phrasing of the page title
  • Inclusion of a robots.txt file
  • Creation of a sitemap
  • 404 error handling page
  • Meta tags
  • Relevant site copy to page title
  • Site navigational structure
While this is a short list, there are many considerations that have to accounted for when optimizing your website. A knowledgeable Search Marketer should be able to determine what would be the best process to get your site coded in a search engine friendly fashion.

Your Ad Here

What is Search Engine Marketing? (SEM)

Search Engine Marketing is the process of getting targeted traffic to your site by getting exposure of your site through various channels. Here are some examples of getting exposure for your site:
  • Press Releases
  • Article Writing
  • Blogs
  • Engaging in a link campaign
  • Directory Submission
  • Purchasing Text Links
  • PPC Campaigns
  • Banner Advertising
  • RSS/XML Feeds
A knowledgeable Search Marketer should be able to determine what would be the best process to market your site and get the most of your marketing budget.


Google Tricks

Enter just the word http for your search to find the top 1000 PageRanked sites.

Enter only www in your search to see how Google ranks the top 1,000 sites.

Manually type the following prefixes and note their utility:

  • link:url Shows other pages with links to that url.
  • related:url same as "what's related" on serps.
  • site:domain restricts search results to the given domain.
  • allinurl: shows only pages with all terms in the url.
  • inurl: like allinurl, but only for the next query word.
  • allintitle: shows only results with terms in title.
  • intitle: similar to allintitle, but only for the next word. "intitle:seoforgoogle google" finds only pages with seoforgoogle in the title, and google anywhere on the page.
  • cache:url will show the Google version of the passed url.
  • info:url will show a page containing links to related searches, backlinks, and pages containing the url. This is the same as typing the url into the search box.
  • spell: will spell check your query and search for it.
  • stocks: will lookup the search query in a stock index.
  • filetype: will restrict searches to that filetype. "-filetype:pdf" to remove Adobe PDF files.
  • daterange: is supported in Julian date format only. 2452384 is an example of a Julian date.
  • maps: If you enter a street address, a link to Yahoo Maps and to MapBlast will be presented.
  • phone: enter anything that looks like a phone number to have a name and address displayed. Same is true for something that looks like an address (include a name and zip code)
  • site:www.somesite.net "+www.somesite.+net" - (tells you how many pages of your site are indexed by google)
  • allintext: searches only within text of pages, but not in the links or page title
  • allinlinks: searches only within links, not text or title

    Search Engine Optimization (SEO) Resources

    A free listing of SEO Resources that will help you get your site ranked in the search engines.
    As always, if you know of a resource that you think should be on this page, drop me a line, and if it's up to snuff, it will get listed.
    Make Money From Google
    SEO Tools
    SEO Forums
    Free Ad Sites
    Fee Based Tools
    Press Release & Article Sites
    Press Release Tips
    Buy Text Links
    Traffic Generating Sites
    Your Ad Here