Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > PHP / MySQL Assistance

PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-14-2009, 02:27 PM
PacTaMaHa PacTaMaHa is offline
Junior Member
 
Join Date: Jun 2009
Posts: 3
Default emailing when site into hosting is indexed by Google

I need to know when the sites from my hosting are indexed by Google? Sure I can check it manually from the cPanel, but I would like to use a script that sends to me an e-mail when the site is indexed.
Reply With Quote
  #2  
Old 10-14-2009, 03:50 PM
hood's Avatar
hood hood is offline
Member
 
Join Date: Jan 2009
Posts: 99
Default Re: emailing when site into hosting is indexed by Google

Add the following PHP script to your page:
PHP Code:
<?php
if(eregi("googlebot",$HTTP_USER_AGENT))
{
mail("you@youremail.com""Google has crawled your domain");
}
?>
You need to replace "you@youremail.com" with your email address.
Reply With Quote
Reply

Tags
emailing, google, hosting, indexed, site

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.