首页 > 语言 > 关键词  > php教程最新资讯  > 正文

PHP:404错误陷阱并email给管理员的程序

2008-09-05 11:37 · 稿源:互联网

《PHP:404错误陷阱并email给管理员的程序》文章已经归档,站长之家不再展示相关内容,下文是站长之家的自动化写作机器人,通过算法提取的文章重点内容。这只AI还很年轻,欢迎联系我们帮它成长:

404NotFound";echo"";echo"404NotFound";echo"";echo"We'resorry.Thepageyourequested,$docroot$REQUEST_URI,doesn'texist";echo"onthisserver.";#Ifanemailreportisbeinggenerated,letthevisitorknow:if($reportlevel!=0){echo"";echo"Thedetailsofthiserrorhaveautomaticallybeenmailedtothewebmaster.";}#CloseuptheHTMLtags#echo"";return;}#Thesend_emailfunctionsendsthedetailsofthe404errortothe#webmaster.functionsend_email(){#Requestaccesstotheglobalvariablesweneedglobal$REQUEST_URI,$HTTP_REFERER,$emailaddress,$REMOTE_ADDR,$docroot;#Buildthe$errortimevariabletocontainthedate/timeoftheerror.#Usingdate()likelywouldhavebeenbetter,butIalreadyhadthiscode#elsewhere,andI'mlazy.$today=getdate();$month=$today[mon];$mday=$...

......

本文由站长之家用户“互联网”投稿,本平台仅提供信息索引服务。由于内容发布时间超过平台更新维护时间,为了保证文章信息的及时性,内容观点的准确性,平台将不提供完整的内容展现,本页面内容仅为平台搜索索引使用。需阅读完整内容的用户,请联系作者获取原文。

举报

  • 相关推荐
  • 大家在看

今日大家都在搜的词: