calculate the sum of values in an array ?

array_sum method can calculate sum of values in an array

How we know browser properties?

echo $_SERVER['HTTP_USER_AGENT'];

$browser = get_browser();
foreach ($browser as $name => $value) {
echo “$name $value
\n”;
}

get_browser   returns the capabilities of the user's browser.

What is CAPTCHA?

CAPTCHA stands for Completely Automated Public Turing Test
to tell Computers and Humans  Apart.the application can be fairly
 assured that there is a human client using it.

MySQL data directory?

MySQL data directory is most important location in which all 
MySQL databases are stored. The default data directory is located in the file mysql.lf.

difference between mysql_connect and mysql_pconnect?


Mysql_connect:
 Opens a new connection to the database
  The database connection can be closed
  Opens the page every time the page is loaded.

Mysql_pconnect:
 Opens a persistent connection to the database.
The database connection can not be closed.
The page need not be opened every time the page is loaded.

php interview questions

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