<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
晚上特意花了个时间,自己动手试了下。
在项目中一直碰到Cookie跨域访问及SessionId跨域传递问题
范例:
index.php
a.php
b.php
设置C:/WINDOWS/system32/drivers/etc/hosts
引用
127.0.0.1 ipggg.com
127.0.0.1 www.ipggg.com
127.0.0.1 www.ipggg.com
测试方法:
直接打开http://ipggg.com/程序存放目录/index.php
PS:
1、使用火狐搭配firebug进行调试;
2、官方建议使用strip_tags输出HTML,防范XSS