Archive for category web development

Is adsensebot helping googlebot with indexing?

I believe that Adsensebot is helping googlebot with indexing.

After registering my domain I had submitted my site to https://www.google.com/webmasters/.
I was constantly checking if the site was indexed by google. As site was not indexed by the google I started googling for SEO realted articles. I came across several blogs and read some articles regarding adsense bot.Finally I decided to put adsense in my site. The very next day I got my homepage indexed in Google.

Google has been using a shared cache So any page crawled by any Googlebot is stored in the cache, then any other bot can first check the cache before sending out a page request So this way adsensebot may help googlebot.

1 Comment

eSense Page Implementation Problem

I had a strange error while programming which spoiled lot of my time. I was trying to fetch a content from an URL through cURL .

The content I am trying to fetch was from server Microsoft-IIS/6.0 powered by ASP.NET. The error I am getting was “eSense Page Implementation Problem Error: Disabled Cookies”. I tried different methods like file_get_contents() but still not worked.

Finally I solved the issue by setting user agent for request header. Below is my working code

$url="http://www.dfm.ae/pages/default.aspx?c=2000&q0=ajmanbank";
$ch = curl_init();
$header[]="User-Agent: Mozilla/5.0";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_USERAGENT, '');
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
echo $response = curl_exec($ch);
curl_close($ch);

Hope this may help someone else :)

,

No Comments