摘要: 1 require'./sphinxapi.php'; 2 $sphi = new \SphinxClient(); 3 $sphi->SetServer('localhost',9312); 4 //只取没被修改的商品,被修改的sphinx索引中先不取 5 $sphi->setFilter('is_update',array(0)); 6 7 $data = $sphi->qu... 阅读全文
posted @ 2017-10-31 16:36 人在征途1 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #goods源定义 source goods { type = mysql sql_host = localhost sql_user = root sql_pass = root sql_db ... 阅读全文
posted @ 2017-10-30 21:50 人在征途1 阅读(222) 评论(0) 推荐(0) 编辑
摘要: D:\myWork\menchuangWork\coreseek-3.2.14-win32\bin/indexer.exe -c D:\myWork\menchuangWork\coreseek-3.2.14-win32/sphinx.conf goods_new (创建goods_new索引) D:\myWork\menchuangWork\coreseek-3.2.14-win32\bin/... 阅读全文
posted @ 2017-10-30 21:46 人在征途1 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 如果报错linux下用: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ inde 阅读全文
posted @ 2017-10-23 18:06 人在征途1 阅读(721) 评论(0) 推荐(0) 编辑
摘要: https://www.bt.cn/bbs/forum.php?mod=viewthread&tid=6109&extra= 阅读全文
posted @ 2017-10-17 18:23 人在征途1 阅读(171) 评论(0) 推荐(0) 编辑
摘要: body{ display:flex; display:-webkit-flex;display:-webkit-box; -webkit-box-orient:vertical; -webkit-flex-flow:column; flex-flow:column; } section{ -webkit-box-flex:1; ... 阅读全文
posted @ 2017-10-08 18:26 人在征途1 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: 父元素加入: display:flex; display:-webkit-flex; align-items:center;justify-content:center; 阅读全文
posted @ 2017-10-06 22:14 人在征途1 阅读(297) 评论(0) 推荐(0) 编辑
摘要: document.addEventListener('plusready',function(){ var webview = plus.webview.currentWebview(); plus.key.addEventListener('backbutton', function() { webview.canBack(function(e) { if (e.canBack... 阅读全文
posted @ 2017-09-29 11:31 人在征途1 阅读(7299) 评论(0) 推荐(0) 编辑
摘要: 近期开发PHP程序,又一次出现了曾经的add、save无法正常工作问题,而且在调试模式下一切正常,关闭调试模式又不能用。由于已经不止一次出现,我便详实地查阅相关资料,力求找到错误原因。 功夫不负有心人,许久后否定了自己的代码错误可能,清空了除Runtime/Data/_fields/的所有缓存文件, 阅读全文
posted @ 2017-09-21 11:04 人在征途1 阅读(192) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=11, user-scala 阅读全文
posted @ 2017-08-31 15:05 人在征途1 阅读(2895) 评论(0) 推荐(0) 编辑