Concatation of simpleXML attributes.

// $simpleXML is simpleXML object
// it does not work
$simpleXML->attributes()->A .= ‘,’ . $simpleXML->attributes()->B;
// it works
$simpleXML->attributes()->A = $simpleXML->attributes()->A  .  ’,’  . $simpleXML->attributes()->B;

Sitemap Checker

We have finally completed our first small SEO service – Sitemap checker. It can do but one useful thing: it monitors every hour sitemap statuses from Google Webmaster Tools and sends an e-mail alert when Google seems to no longer like your sitemaps.

Sitemap checker will be useful to owners of sites with automatic generation of sitemaps, in other words, to almost every site owner.

It’s FREE and extremely easy to use:

step 1.Sign in with a Google account. Sitemap Ckecker is using OpenID protocol for authentication. It means that you do not need to register and create a login/password to use the service. This service does not have access to you private data.
step 2. Select when to check sitemaps. It has two types of reports: hourly check for errors and warnings and weekly/daily report with full sitemaps data.
step 3. Select which sitemaps to check. Sitemap Ckecker uses Google Webmaster API to get full sitemaps data. But you can specify which sitemaps you want service to check. All new sitemaps are added to the report automatically.
step 4. Receive reports to email. Gmail mailbox is used by default for receiving reports. You can change your email address on your Settings page.

The process is still on the testing stage. I’ll much appreciate if you can spare me 2 minutes of your valuable time and have your sitemaps monitored. Please report all bugs (sorry, unexpected features) to pavel.malto@gmail.com, together with your ideas and proposals. I’ll gladly talk to you by Skype: pavel.malto on all topics related to SEO.

Link to the service: Sitemap checker.

Google Webmaster Tools API. Access an individual Sitemap does not work: Invalid request URI.

There is example from Google Webmaster Tools API documentaion:

https://www.google.com/webmasters/tools/feeds/http%3A%2F%2Fwww%2Eexample%2Ecom%2F/
sitemaps/http%3A%2F%2Fwww%2Eexample%2Ecom%2Fsitemap%2Exml/

It returns error ‘Invalid request URI’. It’s not corrent because of /(slash) at the end. It should be like this:

https://www.google.com/webmasters/tools/feeds/http%3A%2F%2Fwww%2Eexample%2Ecom%2F/
sitemaps/http%3A%2F%2Fwww%2Eexample%2Ecom%2Fsitemap%2Exml

Asynchronous background execution with popen() does not work (PHP).

Such code works on windows server asynchronously, but on linux server the php script still waits for result from runMe.php
$handle = popen(“runMe.php”, “r”);

‘&’ at the end of the command is needed to make it work asynchronously on linux:
$handle = popen(“runMe.php &“, “r”);

Google Images Search Seo Trick.

There are several steps the user should do to open your site using Google images search:
1. When the user requests Google for something, he gets a list of images (thumbnails generated by Google server).
2. On mouse over an image the user may see additional details (site link, image size, title).
3. On click users may see your site as background, with the image in the center of the screen and Google bar on the right.
4. The user should click again to go to your site.

But it is possible to make Google skip step 3, that is, to send the user directly to your site after he/she clicks on an image from the list. You should just add this javascript code to your page that contains the image:

<script type=”text/javascript”> if (window!= window.top) top.location.href = location.href; </script>

Example – just click to any image.
We are not sure, however, that Google will like such a solution. But we well check it soon.
Stay tuned.

CakePHP has the problem with named parameters.

CakePHP does not work correct with mod_rewrite named parameter if it contains slash  ’/’. If you have something like this in you .htaccess file:
RewriteRule ^/([-A-Za-z0-9/\._]+)$ /controller/action/someName:$1/[L,NC,NE,QSA]
read more »