首页 > ecshop > ecshop把搜索页面url的乱码修改为正常链接

ecshop把搜索页面url的乱码修改为正常链接

2011年6月20日 果果 发表评论 阅读评论

由于要在Google Analytics里面跟踪用户搜索,但ecshop的搜索url都是转义过的一些乱码,修改search.php使用原本的搜索链接
有兴趣能力的朋友还可以直接做成伪静态,参考文章
http://www.phpsir.com/tag/ecshop-search-%E6%90%9C%E7%B4%A2

我这里不做伪静态,只需要修改search.php即可
注释掉search.php行18-行66
然后加入

1
2
3
$string["keywords"]=addslashes($_GET["keywords"]);
$string["page"]=addslashes($_GET["page"]);
$string["search_encode_time"] = $_SERVER["REQUEST_TIME"];

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 54 bytes) in /home/glyle/public_html/wp-settings.php on line 288