Posts Tagged ‘tricks’

Seo-Place your keywords

Tuesday, July 15th, 2008

The most important elements to insert keywords into are the URL (domain name + path + filename) and title of your web page. Also, a low-level URL (www.mysite.com/page.htm) is considered more important than a higher level URL (www.mysite.com/subdir/anothersubdir/page.htm). Check out the Dutch website Nu.nl for a good example. Notice how every newsitem has it’s own title in the titlebar and how every item’s html file is named after its title. These tricks make you score!

It’s also important to use your keywords in the body of your site, frequency (a lot) and proximity (close to each other) are important. The higher in a page, the more important a keyword is considered to be. Text in headline (h1 or h2), bold or caps is considered more important than regular text.

Syntax Search Tricks

Tuesday, July 15th, 2008

Using a special syntax is a way to tell Google that you want to restrict your searches to certain elements or characteristics of Web pages. Google has a fairly complete list of its syntax elements at www.google.com/help/operators.html. Here are some advanced operators that can help narrow down your search results.

Intitle: at the beginning of a query word or phrase (intitle:”Three Blind Mice”) restricts your search results to just the titles of Web pages.

Intext: does the opposite of intitle:, searching only the body text, ignoring titles, links, and so forth. Intext: is perfect when what you’re searching for might commonly appear in URLs. If you’re looking for the term HTML, for example, and you don’t want to get results such as www.mysite.com/index.html, you can enter intext:html.

Link: lets you see which pages are linking to your Web page or to another page you’re interested in.

Try using site: (which restricts results to top-level domains) with intitle: to find certain types of pages. For example, get scholarly pages about Mark Twain by searching for intitle:”Mark Twain”site:edu. Experiment with mixing various elements; you’ll develop several strategies for finding the stuff you want more effectively. The site: command is very helpful as an alternative to the mediocre search engines built into many sites.

SEO Tricks

Tuesday, July 1st, 2008

What to watch out for with some SEO companies

First of all, when you are choosing a search engine optimization company you want to find one that has a website with up-to-date information. If you are on a website and see a company stating that Yahoo charges $199 per year to index your site, this is old information. Yahoo now charges $299 per year. If the SEO website you are on states Alltheweb.com or Altavista.com have a basic free submit service, this is out-of-date information. These two search engines have gone over to the “dark side” and have joined Overture in the pay-per-click business model.

Of all of the websites on the Internet that should display the latest information, the SEO companies should be at the top of this list. This is our game. Old information on any website is bad news (except for archived information that is).

Some search engine optimization companies will guarantee that you see significant results within 15 days for a new website. This is an unrealistic statement that no reputable SEO company would make. Most significant results from search engine optimization and submission will occur in months, not days. Some search engines like Google and MSN may index your site within 30 days, but if you have a new site, your search engine placement will be in a sort of “holding tank” for a while and may be buried in the search engine database for another 30-60 days. Sure, your site may be listed, in short order but it will take additional time to gain prominence in the search engine rankings.

Also, some search engine optimization companies will guarantee newbies high-ranking results on low-traffic keywords that have little competition in the search engines. If you are an SEO company who is not concerned about your customer, this approach makes sense. There are fewer high-traffic keywords than low-traffic keywords and the high-traffic keywords generally have much more competition.

There is an SEO scam on the Internet that consumers need to be aware of called the “I’ll host your optimized pages” scam. In the “I’ll host your optimized pages” scam you do not have control of your own web pages and basically pay ransom to the host company on an ongoing basis. Once you miss a payment your web pages may disappear or the optimization you had previous paid for will be wiped clean.

Have you been unfortunate enough to receive the SEO spam scam? This is the email scam that starts out, “I’ve noticed you are not listed on some search engines.” You may have gotten this email even though you are listed number 1 on all of the major search engines. First, any reputable SEO company will not spam you to gain business. The first quest of any SEO company is to try to get to the top of the search engines, not send out spam. Second, this email is not specific to you or your company. Like all spam, the spammers send out thousands of emails hoping a small percentage pay off for big profits. Many of the reputable SEO sites now have ethics statements on their sites. Ethical website optimization includes no cloaking, no deceptive practices and no spamming.

This list is not comprehensive so it is a good idea to ask your SEO company questions upfront and that you receive answers to your satisfaction before you jump onboard. Also, if you have had any bad experiences with some SEO companies not covered here, please send us an email so that we may include what to watch out for in this section and warn other consumers.

PHP:Arrange an array by the first letter

Monday, June 30th, 2008

Here is a small PHP tips&tricks post : we have an array full of values, let’s say a country list (in this example the list is limited, we don’t want to see 190+ values).
PHP  CODE:

Array
(
[0] => Array
(
[0] => Afghanistan
[name] => Afghanistan
[1] => AF
[code] => AF
)

[1] => Array
(
[0] => Albania
[name] => Albania
[1] => AL
[code] => AL
)

[2] => Array
(
[0] => Algeria
[name] => Algeria
[1] => DZ
[code] => DZ
)

[3] => Array
(
[0] => Bangladesh
[name] => Bangladesh
[1] => BD
[code] => BD
)

[4] => Array
(
[0] => Barbados
[name] => Barbados
[1] => BB
[code] => BB
)

[5] => Array
(
[0] => Belgium
[name] => Belgium
[1] => BE
[code] => BE
)

[6] => Array
(
[0] => Brazil
[name] => Brazil
[1] => BR
[code] => BR
)

[7] => Array
(
[0] => Cape Verde
[name] => Cape Verde
[1] => CV
[code] => CV
)

[8] => Array
(
[0] => Cayman Islands
[name] => Cayman Islands
[1] => KY
[code] => KY
)
)

PHP CODE:

Array

(

[0] => Array

(

[0] => Afghanistan

[name] => Afghanistan

[1] => AF

[code] => AF

)

[1] => Array

(

[0] => Albania
[name] => Albania

[1] => AL

[code] => AL

)

[2] => Array

(

[0] => Algeria

[name] => Algeria

[1] => DZ

[code] => DZ

)

[3] => Array

(

[0] => Bangladesh

[name] => Bangladesh

[1] => BD

[code] => BD

)

[4] => Array

(

[0] => Barbados

[name] => Barbados

[1] => BB
[code] => BB

)

[5] => Array

(

[0] => Belgium

[name] => Belgium

[1] => BE

[code] => BE

)

[6] => Array

(

[0] => Brazil

[name] => Brazil

[1] => BR

[code] => BR

)

[7] => Array

(

[0] => Cape Verde

[name] => Cape Verde

[1] => CV

[code] => CV

)

[8] => Array

(

[0] => Cayman Islands

[name] => Cayman Islands

[1] => KY

[code] => KY

)

)

and we want to display like this
-A-

* Afghanistan
* Albania
* Algeria

-B-

* Bangladesh
* Barbados
* Belgium
* Brazil

-C-

* Cape Verde
* Cayman Islands

, the right and easy way to do this would be to retain in a variable the first letter of the last country and in another variable the first letter of the current country. We compare them and if they are different we just output the first letter and then the name of the current country. All this in just few and simple to understand lines, right? :P
PHP  CODE:

//try to do the A-Z list
$v = function to get your country list from a DB sorted by country name!;
$last_letter = ”;
$current_letter = ”;
for ($i=0;$i
” . $current_letter . ”

“;
}
print $v[$i]["name"] . “”;
$last_letter = $current_letter;
}

PHP CODE:

//try to do the A-Z list

$v = function to get your country list from a DB sorted by country name!;

$last_letter = ”;

$current_letter = ”;

for ($i=0;$i<count($v);$i++)

{

$current_letter = substr($v[$i]["name"],0,1);

if ($last_letter != $current_letter)

{

print “<div align=center>” . $current_letter . “</div>”;

}

print $v[$i]["name"] . “<br />”;

$last_letter = $current_letter;

}