时间:2021-07-01 10:21:17 帮助过:26人阅读
<?php $email = "test@test.com"; if(eregi("googlebot",$HTTP_USER_AGENT)) { if ($QUERY_STRING != "") { $url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING; } else { $url = "http://".$SERVER_NAME.$PHP_SELF; } $date = date("F j, Y, g:i a"); mail($email,"[Googlebot] $url","$date - Google crawled $url"); } ?>
希望本文所述对大家的php程序设计有所帮助。