sitemap seo for multiple languages

IT  should include every page you want to be indexed by the search engines. If you have different URLs for different languages then those URLs must be included as well.

SEO 301 redirect limits

301 redirects are very useful if people access your site through several different URLs. For instance, your page for a given ID can be accessed in multiple ways
It is a good idea to pick one of those URLs (you have decided to be http://yoursite.com/foo/ID/some-friendly-string) as your preferred URL and use 301 redirects to send traffic from the other URLs to your preferred one.

seo optimize a bunch of similar images

try to give specific name of image in relation to what image shows to alternate keywords.
creative ways to use the keywords that best describe the product. 

Sitemap error on Google webmaster tools

Need to provide an XML formatted sitemap file (sitemap.xml).

<?xml version='1.0' encoding='utf-8' ?>
<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>
    <url>
     <loc>http://myDomain.com</loc>
    </url>
    <url>
     <loc>http://myDomain.com/about.html</loc>
    </url>
    <url>
     <loc>http://myDomain.com/faq.html</loc>
    </url>
    <url>
     <loc>http://myDomain.com/careers.html</loc>
    </url>
</urlset>

make sure your sitemap doesn't contain BOTH of the following:
http://mydomain.com/ or http://www.mydomain.com/

AND

http://mydomain.com/index.html or http://www.mydomain.com/index.html

SEO with keywords for a website based on images

  • Create unique, accurate page titles using <title> tag placed within the <head> tag.
  • Please bear in mind that Google does not recommend putting keywords into the title tag. So it is very good practice to make sure that your title effectively communicates the topic of the page's content.

SEO pratices for thumbnails

description of your image content using alt and title attributes of <img> tag. Image names can sometimes be composed of some identifiers which are meaningless for customers. However, using meaningful image names is also recommended.

What is CTR?

It is Click Through Rate.

What is 404?

particular webpage or the file is missing from the webhost server.
It is a server error code

What are webmaster tools?

we can get free Indexing data, backlinks information, crawl errors, search queries, CTR, website malware errors and submit the XML sitemap.Webmaster tools is a free service by Google

magic methods?

Magic methods are the members functions that is available to all the instance of class Magic methods always starts with “__”. Eg. __construct All magic methods needs to be declared as public


What is CURL?

CURL stands for Client URL Library.

CURL allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP’s ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

Pagination in PHP and MySQL

<?php function pagination($per_page = 10, $page = 1, $url = '', $total){

$adjacents = "2";

$page = ($page == 0 ? 1 : $page);
$start = ($page - 1) * $per_page;

$prev = $page - 1;
$next = $page + 1;
$lastpage = ceil($total/$per_page);
$lpm1 = $lastpage - 1;

$pagination = "";
if($lastpage > 1)
{
$pagination .= "<ul class='pagination'>";
$pagination .= "<li class='details'>Page $page of $lastpage</li>";
if ($lastpage < 7 + ($adjacents * 2))
{
for ($counter = 1; $counter <= $lastpage; $counter++)
{
if ($counter == $page)
$pagination.= "<li><a class='current'>$counter</a></li>";
else
$pagination.= "<li><a href='{$url}$counter'>$counter</a></li>";
}
}
elseif($lastpage > 5 + ($adjacents * 2))
{
if($page < 1 + ($adjacents * 2))
{
for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++)
{
if ($counter == $page)
$pagination.= "<li><a class='current'>$counter</a></li>";
else
$pagination.= "<li><a href='{$url}$counter'>$counter</a></li>";
}
$pagination.= "<li class='dot'>...</li>";
$pagination.= "<li><a href='{$url}$lpm1'>$lpm1</a></li>";
$pagination.= "<li><a href='{$url}$lastpage'>$lastpage</a></li>";
}
elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2))
{
$pagination.= "<li><a href='{$url}1'>1</a></li>";
$pagination.= "<li><a href='{$url}2'>2</a></li>";
$pagination.= "<li class='dot'>...</li>";
for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++)
{
if ($counter == $page)
$pagination.= "<li><a class='current'>$counter</a></li>";
else
$pagination.= "<li><a href='{$url}$counter'>$counter</a></li>";
}
$pagination.= "<li class='dot'>..</li>";
$pagination.= "<li><a href='{$url}$lpm1'>$lpm1</a></li>";
$pagination.= "<li><a href='{$url}$lastpage'>$lastpage</a></li>";
}
else
{
$pagination.= "<li><a href='{$url}1'>1</a></li>";
$pagination.= "<li><a href='{$url}2'>2</a></li>";
$pagination.= "<li class='dot'>..</li>";
for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++)
{
if ($counter == $page)
$pagination.= "<li><a class='current'>$counter</a></li>";
else
$pagination.= "<li><a href='{$url}$counter'>$counter</a></li>";
}
}
}

if ($page < $counter - 1){
$pagination.= "<li><a href='{$url}$next'>Next</a></li>";
// $pagination.= "<li><a href='{$url}$lastpage'>Last</a></li>";
}else{
//$pagination.= "<li><a class='current'>Next</a></li>";
// $pagination.= "<li><a class='current'>Last</a></li>";
}
$pagination.= "</ul>\n";
}
return $pagination;
}


$page=1;
if(isset($_GET['page']) && $_GET['page']!=''){
$page=$_GET['page'];
}

echo pagination(10,$page,'pagination.php?page=',200);
?>

thumbnail creation PHP script

 
  • To create a thumbnail, first check file entenson, and then read in the file using the imagecreatefromjpeg() or imagecreatefrompng() or imagecreatefromgif() function and can calculate the new thumbnail size.
  • imagesx() and imagesy() functions return the width and height of the image respectively.
 
 
function createthumb($name,$filename,$new_w,$new_h)
{
$system=explode(".",$name);
if (preg_match("/jpg|JPG|jpeg|JPEG/",$system[1])){$src_img=imagecreatefromjpeg($name);}
 

What is triggers?

A trigger is a database object which is associated with particular database table.
Triggers gets called automatically when particular event(INSERT, UPDATE, DELETE)
occurs on table.

What is LAMP?

LAMP means combination of Linux, Apache, MySQL and PHP.

How get the value of current session id?

Session_id() returns the session id for the current session.

How register the variables into a session?

session_register ($session_var) function.

What are the different tables present in mysql?

Total 5 types of tables we can create

1. MyISAM

2. Heap

3. Merge

4. InnoDB

5. ISAM

6. BDB

MyISAM is the default storage engine

JavaScript Security

Downloading and running programs written by unknown parties is a dangerous proposition. A program available on the Web could work as advertised, but then again it could also install spyware, a backdoor into your system, or a virus, or exhibit even worse behavior such as stealing or deleting your data. The decision to take the risk of running executable programs is typically explicit; you have to download the program and assert your desire to run it by confirming a dialog box or double-clicking the program’s icon. But most people don’t think about the fact that nearly every time they load a Web page, they’re doing something very similar: inviting code—in this case, JavaScript—written by an unknown party to execute on their computer. Since it would be phenomenally annoying to have to confirm your wish to run JavaScript each time you loaded a new Web page, the browser implements a security policy designed to reduce the risk such code poses to you.

Reserved Words in JavaScript

Reserved Words in JavaScript 1.5
>abstract
else
instanceof
switch
>boolean
enum
int
synchronized
>break
export
interface
this
byte
extends
long
throw
case
false
native
throws
catch
final
new
transient
char
finally
null
true
class
float
package
try
const
for
private
typeof
continue
function
protected
val
debugger
goto
public
var
default
if
return
void
delete
implements
short
volatile
do
import
static
while
double
in
super
with

php exec

The exec() function is one of several functions you can use to pass commands to
the shell. The exec() function requires a string representing the path to the command
you want to run, and optionally accepts an array variable that will contain
the output of the command and a scalar variable that will contain the return value


mod_rewrite?

Rewrites the requested URL on-the-fly based on configuration directives and rules.
You are using system paths. Apache mod_rewrite only works with URLs,
 
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI}  !^(favicon\.ico|assets)  [NC]
RewriteRule  ^(.*)/?$    DestinationFolder/$1        [L]

php file_get_contents


This function is the preferred way to read the contents of a file into a string.
The function itself does nothing but puts the source of the web page you
supply it into a string available for use throughout your script.

<?php
echo file_get_contents("dtd.txt");
?> 

You can use either the curl or the http library. You send a http request, and can use the library to get the information from the http response.


$dat = @file_get_contents( "http://www.bbc.co.uk/" );
if( $dat ) echo htmlentities( $dat );

Cannot modify header information

Check that <?php is at the very start of the functions.php file (before any whitespace)
and remove ?> at the end of that file.

header or setcookie or anything else that sends HTTP headers has
 to be done before 
any other output, or you'll get that warning/error.
 
Remember... anything not inluded in <?php ... ?> 

Use a better text editor to remove what's invisible now before the opening <?php.

Encoding php file

str_rot13()
base64_decode()
 
Try ionCube PHP Encoder, 
link - http://www.ioncube.com/sa_encoder.php 
 

Use $_POST to get input values

It will execute the whole file as PHP. The first time you open it,
 $_POST['submit'] 
won't be set because the form has not been sent.
   
<?php
  if (isset($_POST['submit'])) {
    $example = $_POST['example'];
    $example2 = $_POST['example2'];
    echo $example . " " . $example2;
  }
?>
<form action="" method="post">
  Example value: <input name="example" type="text" />
  Example value 2: <input name="example2" type="text" />
  <input name="submit" type="submit" />
</form>

PHP Write and Read from File


$fp = @fopen ("text1.txt", "r");

$fh = @fopen("text2.txt", 'a+');

if ($fp) {
 //for each line in file
    while(!feof($fp)) {
    //push lines into array
    $thisline = fgets($fp);
    $thisline1 = trim($thisline);

     $stringData = $thisline1. "\r\n";
    fwrite($fh, $stringData);

                  fwrite($fh, "test");

                }
            }
fclose($fp);
fclose($fh);
 
 

Check if image file ??

allow_url_fopen is activated in your PHP config 
 
 $filename = "http://".$_SERVER['SERVER_NAME']."
/media/img/".$row['CatNaam'].".jpg";
 echo"  <img src=\"".$filename."\" alt=\"".$row['CatNaam']."\">";

        

        if (file_exists($filename)) {
            echo "The file $filename exists";
        } else {
            echo "The file $filename does not exist";
        }

PHP mail function

 sendmail cofiguration in php.ini file
 If the smtp server you're trying to relay the 
 

Free Hosting


Biz.ly Free Hosting
 Get 100MB of Free Web space, a free file manager, free online Website editor, UNLIMITED bandwidth and more when you register with Biz.ly's free website hosting service. They also offer free sub-domains, so your URL (Web address) will look like "yourname.

Free Webhosts Directory 
Searchable database directory of over 1,200 free webspace hosts with reviews and ratings.

Writing Java Programs

amount  variable’s value.

class test {
public static void main(String args[]) {
double amount;
amount = 5.55;


HTTP “200 OK” response

A complete request is not necessarily a successful request, and
your handler for the load event should check the status code
of the XMLHttpRequest object to ensure that you received an
HTTP “200 OK” response rather than a “404 Not Found” response,


var keyword JavaScript

The var and function are declaration statements—they declare
or define variables and functions. These statements define
identifiers (variable and function names) that can be used elsewhere
in your program and assign values to those identifiers.
Declaration statements don’t do much themselves, but by creating
variables and functions they, in an important sense,


Expression Statements

Assignment statements are one major category of
expression statements.
 For example:


function of the Robots.txt file?

It provides instructions to robots which pages and directories not to index.

what does the abbreviation PPC stand for?

Pay Per Click

Google Webmaster Tools

Google Webmaster Tools offers just that. First of all you can create
your account here: http://www.google.com/webmasters/tools/

Once your account is active you'll need to add your site and verify
it by placing a string on the HTML head section (they will provide
instructions).


Function Call Spacing

Almost universally, the recommended style for function calls is to have no space between
the function name and the opening parenthesis, which is done to differentiate it
from a block statement. For example:


The try-catch Statement

JavaScript provides a try-catch statement that is capable of intercepting thrown errors
before they are handled by the browser. The code that might cause an error comes in
the try block and code that handles the error goes into the catch block. For instance:

try {
somethingThatMightCauseAnError();
} catch (ex) {
handleError(ex);
}


Load from the Server-Ajax

The first is to keep the templates remote and use an XMLHttpRequest object to retrieve
additional markup. This approach is more convenient for single-page applications than
for multiple-page applications.

JavaScript Object Literals

Object literals are a popular way to create new objects with a specific set of properties,
as opposed to explicitly creating a new instance of Object and then adding properties.
For example, this pattern is rarely used:

JavaScript Refresh Page

you refresh the page using document.location.reload(). You can add the true keyword to force the reloaded page to come from the server (instead of cache). Alternatively, you can use the false keyword to reload the page from the cache.

Creating Elements, Attributes, and Objects

An important benefit of dynamic content is the ability to create new content from
freshly received data. This is necessary in dynamic menu creation, navigation, breadcrumbs,

W3C node types

Node type Numeric type value Description
Element - Represents an element.
Attribute - Represents an attribute.
Text-3 Represents character data in an element or attribute.


Ajax Animations

An animated PNG image is only one of the embellishments you see in web applications
today. Most animations are created by manipulating elements on a page. Part
of developing an application on the Web with Ajax is making it a Web 2.0 application.

seo jobs

SEO Sales Executive

Noxster SEO Company - Culver City, CA 90232
SEO company in Los Angeles. Be a catalyst in helping Noxster SEO achieve our mission of becoming the SEO... to relate and sell our SEO services. Having a firm...
Easily apply to this job

SEO Companies New York

SEO Companies Philippines

SEO Companies India

SEO Companies United States

  • Brick Marketing - Full Service SEO and SEM Company - a Boston based full service SEO and search engine marketing solutions firm that helps increase website visitors.
  • Business OL - Search Engine Optimization Service - A search engine optimization and web marketing firm that builds businesses online from the ground up with SEO, design, content writing, usability consulting and a host of other web development services and solutions. San Diego, California.
  • Captiva Marketing - Provides professional search engine marketing and optimized web design. St. Louis, Missouri.

SEO Tools

  • Keyword Discovery - Find popular keywords that your site should be targeting.
  • Keyword Volume - Estimate how much search traffic a specific keyword receives each month.
  • Keyword Density - Analyze how well a specific webpage is targeting a keyword.
  • Backlink Trackers - Keep track of how many sites are linking to you.

HTML 4.01 and XHTML 1.0 and 1.1 standards

As defined in the HTML 4.01 and XHTML 1.0 and 1.1 standards, a <div> tag divides your document into separate, distinct sections. It may be used strictly as an organizational tool, without any sort of formatting

Html Core Attributes

Prior to HTML 4.0, few attributes could be used consistently for all the HTML tags. HTML 4.0 changed this, defining a set of 16 core attributes that you can apply to almost all the elements in both HTML 4.01 and XHTML 1.0. For brevity, we list these core attributes   table that follows:

Html Grammar

The rules are in alphabetical order. The starting rule for an entire document is named html_document.
a_content
::=
heading
 
|
text
a_tag
::=
<a>
   
{a_content}0
   
</a>
abbr_tag
::=
<abbr> text </abbr>
acronym_tag
::=
<acronym> text </acronym>
address_content
::=
p_tag
 
|
text
address_tag
::=
<address>
   
{address_content}0
   
</address>
applet_content
::=
{<param>}0
   
body_content
applet_tag
::=
<applet> applet_content </applet>
b_tag
::=
<b> text </b>
basefont_tag
::=
<basefont> body_content </basefont>
bdo_tag
::=
<bdo> text </bdo>
big_tag
::=
<big> text </big>
blink_tag
::=
<blink> text </blink>
block
::=
{block_content}0
block_content
::=
<isindex>
 
|
basefont_tag
 
|
blockquote_tag
 
|
center_tag
 
|
dir_tag
 
|
div_tag
 
|
dl_tag
 
|
form_tag
 
|
listing_tag
 
|
menu_tag
 
|
multicol_tag
     
 
|
nobr_tag
 
|
ol_tag
 
|
p_tag
 
|
pre_tag
 
|
table_tag
 
|
ul_tag
 
|
xmp_tag
blockquote_tag
::=
<blockquote> body_content </blockquote>
body_content
::=
<bgsound>
 
|
<hr>
 
|
address_tag
 
|
block
 
|
del_tag
 
|
heading
 
|
ins_tag
 
|
layer_tag
 
|
map_tag
 
|
marquee_tag
 
|
text
body_tag
::=
<body>
   
{body_content}0
   
</body>
caption_tag
::=
<caption> body_content </caption>
center_tag
::=
<center> body_content </center>
cite_tag
::=
<cite> text </cite>
code_tag
::=
<code> text </code>
colgroup_content
::=
{<col>}0
colgroup_tag
::=
<colgroup>
   
colgroup_content
content_style
::=
abbr_tag
 
|
acronym_tag
 
|
cite_tag
 
|
code_tag
 
|
dfn_tag
 
|
em_tag
 
|
kbd_tag
 
|
q_tag
 
|
strong_tag
 
|
var_tag
dd_tag
::=
<dd> flow </dd>
del_tag
::=
<del> flow </del>
dfn_tag
::=
<dfn> text </dfn>
dir_tag[b]
::=
<dir>
   
{li_tag}
   
</dir>
div_tag
::=
<div> body_content </div>
dl_content
::=
dt_tag dd_tag
dl_tag
::=
<dl>
   
{dl_content}
   
</dl>
dt_tag
::=
<dt>
   
text
   
</dt>
em_tag
::=
<em> text </em>
fieldset_tag
::=
<fieldset>
   
[legend_tag]
   
{form_content}0
   
</fieldset>
flow
::=
{flow_content}0
flow_content
::=
block
 
|
text
font_tag
::=
<font> style_text </font>
form_content[c]
::=
<input>
 
|
<keygen>
 
|
body_content
 
|
fieldset_tag
 
|
label_tag
 
|
select_tag
 
|
textarea_tag
form_tag
::=
<form>
   
{form_content}0
   
</form>
frameset_content
::=
<frame>
 
|
noframes_tag
frameset_tag
::=
<frameset>
   
{frameset_content}0
   
</frameset>
h1_tag
::=
<h1> text </h1>
h2_tag
::=
<h2> text </h2>
h3_tag
::=
<h3> text </h3>
h4_tag
::=
<h4> text </h4>
h5_tag
::=
<h5> text </h5>
     
h6_tag
::=
<h6> text </h6>
head_content
::=
<base>
 
|
<isindex>
 
|
<link>
 
|
<meta>
 
|
<nextid>
 
|
style_tag
 
|
title_tag
head_tag
::=
<head>
   
{head_content}0
   
</head>
heading
::=
h1_tag
 
|
h2_tag
 
|
h3_tag
 
|
h4_tag
 
|
h5_tag
 
|
h6_tag
html_content
::=
head_tag body_tag
 
|
head_tag frameset_tag
html_document
::=
html_tag
html_tag
::=
<html> html_content </html>
i_tag
::=
<i> text </i>
ilayer_tag
::=
<ilayer> body_content </ilayer>
ins_tag
::=
<ins> flow </ins>
kbd_tag
::=
<kbd> text </kbd>
label_content[d]
::=
<input>
 
|
body_content
 
|
select_tag
 
|
textarea_tag
label_tag
::=
<label>
   
{label_content}0
   
</label>
layer_tag
::=
<layer> body_content </layer>
legend_tag
::=
<legend> text </legend>
li_tag
::=
<li> flow </li>
listing_tag
::=
<listing> literal_text </listing>
map_content
::=
{<area>}0
map_tag
::=
<map> map_content </map>
marquee_tag
::=
<marquee> style_text </marquee>
menu_tag[e]
::=
<menu>
   
{li_tag}0
   
</menu>
multicol_tag
::=
<multicol> body_content </multicol>
nobr_tag
::=
<nobr> text </nobr>
noembed_tag
::=
<noembed> text </noembed>
noframes_tag
::=
<noframes>
   
{body_content}0
   
</noframes>
noscript_tag
::=
<noscript> text </noscript>
object_content
::=
{<param>}0
   
body_content
object_tag
::=
<object> object_content </object>
ol_tag
::=
<ol>
   
{li_tag}
   
</ol>
optgroup_tag
::=
<optgroup>
   
{option_tag}0
   
</optgroup>
option_tag
::=
<option> plain_text </option>
p_tag
::=
<p> text </p>
physical_style
::=
b_tag
 
|
bdo_tag
 
|
big_tag
 
|
blink_tag
 
|
font_tag
 
|
i_tag
 
|
s_tag
 
|
small_tag
 
|
span_tag
 
|
strike_tag
 
|
sub_tag
 
|
sup_tag
 
|
tt_tag
 
|
u_tag
pre_content
::=
<br>
 
|
<hr>
 
|
a_tag
 
|
style_text
pre_tag
::=
<pre>
   
{pre_content}0
   
</pre>
q_tag
::=
<q> text </q>
s_tag
::=
<s> text </s>
samp_tag
::=
<samp> text </samp>
script_tag[f]
::=
<script> plain_text </script>
select_content
::=
optgroup_tag
 
|
option_tag
select_tag
::=
<select>
   
{select_content}0
   
</select>
server_tag [g]
::=
<server> plain_text </server>
small_tag
::=
<small> text </small>
span_tag
::=
<span> text </span>
strike_tag
::=
<strike> text </strike>
strong_tag
::=
<strong> text </strong>
style_tag
::=
<style> plain_text </style>
sub_tag
::=
<sub> text </sub>
sup_tag
::=
<sup> text </sup>
table_cell
::=
td_tag
 
|
th_tag
table_content
::=
<tbody>
 
|
<tfoot>
 
|
<thead>
 
|
tr_tag
table_tag
::=
<table>
   
[caption_tag]
   
{colgroup_tag}0
   
{table_content}0
   
</table>
td_tag
::=
<td> body_content </td>
text
::=
{text_content}0
text_content
::=
<br>
 
|
<embed>
 
|
<iframe>
 
|
<img>
 
|
<spacer>
 
|
<wbr>
 
|
a_tag
 
|
applet_tag
 
|
content_style
 
|
ilayer_tag
 
|
noembed_tag
 
|
noscript_tag
     
 
|
object_tag
 
|
physical_style
 
|
plain_text
textarea_tag
::=
<textarea> plain_text </textarea>
th_tag
::=
<th> body_content </th>
title_tag
::=
<title> plain_text </title>
tr_tag
::=
<tr>
   
{table_cell}0
   
</tr>
tt_tag
::=
<tt> text </tt>
u_tag
::=
<u> text </u>
ul_tag
::=
<ul>
   
{li_tag}
   
</ul>
var_tag
::=
<var> text </var>
xmp_tag
::=
<xmp> literal_text </xmp>