摘要: javascript实现:top.location.href 顶级窗口的地址this.location.href 当前窗口的地址PHP实现#测试网址: http://localhost/blog/testurl.php?id=5//获取域名或主机地址 echo $_SERVER['HTTP_HOST']."<br>"; #localhost//获取网页地址 echo $_SERVER['PHP_SELF']."<br>"; #/blog/testurl.php//获取网址参数 echo $_SERV 阅读全文
posted @ 2011-12-14 23:48 Bloguy 阅读(458851) 评论(4) 推荐(11) 编辑
摘要: 习惯了用edit plus进行php编程,所以有时会出现一些不为人知的错误,很麻烦;近日,在开发项目时,某些页面总是出现以下问题:Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at E:\web\Apache2\htdocs\index.php:1) in E:\web\Apache2\htdocs\functions\sessions.php on line 67Warning: session_st 阅读全文
posted @ 2011-12-14 05:24 Bloguy 阅读(1991) 评论(0) 推荐(0) 编辑