- 博客(0)
- 资源 (23)
空空如也
memcache.dll(5.2/5.3/5.4/5.5)
很多个 memcache.dll 涵盖PHP 5.2 -5.5 。我找到一个能用的,现在共享给大家。
配置如下:
1、开启memcached 服务,注意路径
memcached.exe -d install(安装,cmd 需要已管理员身份运行)
memcached.exe -d start(自动启动)
2、调整 php.ini 增加如下内容
extension=php_memcache.dll
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts= 20
memcache.chunk_size = 8192
memcache.default_port = 11211
测试代码:注意端口的匹配
$memcache = new Memcache;
$memcache->connect("localhost",11211);
echo "Server's version: " . $memcache->getVersion() . "\n";
$tmp_object = new stdClass;
$tmp_object->str_attr = "test";
$tmp_object->int_attr = 123;
$memcache->set("key",$tmp_object,false,10);
echo "Store data in the cache (data will expire in 10 seconds)\n";
echo "Data from the cache:\n";
var_dump($memcache->get("key"));
2014-04-28
php_memcache 服务扩展
memcache win8 x64 php5.4.7 测试通过(开发套件 xampp 1.8.1)
配置如下:
1、开启memcached 服务,注意路径
memcached.exe -d install(安装)
memcached.exe -d start(自动启动)
2、调整 php.ini 增加如下内容
extension=php_memcache.dll
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts= 20
memcache.chunk_size = 8192
memcache.default_port = 11211
测试代码:注意端口的匹配
$memcache = new Memcache;
$memcache->connect("localhost",11211);
echo "Server's version: " . $memcache->getVersion() . "\n";
$tmp_object = new stdClass;
$tmp_object->str_attr = "test";
$tmp_object->int_attr = 123;
$memcache->set("key",$tmp_object,false,10);
echo "Store data in the cache (data will expire in 10 seconds)\n";
echo "Data from the cache:\n";
var_dump($memcache->get("key"));
2013-04-10
jquery上传图片预览插件
jquery上传图片前的预览功能,兼容 ie(6/7/8/9) 火狐...
ie9 默认不显示图像预览,内附设置说明图片,和参考文档
jquery.uploadPreview.js 插件
2011-09-14
ecshop 首页幻灯插件(js)
ecshop的首页幻灯js版 参考 www.chinahongjiu.net
使用方法
1、将文件夹下载到 data/flashdata 中
2、修改admin文件夹中的flashplay.php
大约 870行添加 case 'Myjs';注意文件夹名称要一直,否则更新不了。这样就可以到后台调用了
样式自己调整
3、更新了js ,解决的部分bug,替换即可
var mylnk="";
var mytxt="";
var mypic="";
var s1="",s2="",s3="";
function show_flash()
{
mylnk=links.split("|");
mytxt=texts.split("|");
mypic=pics.split("|");
s1="",s2="",s3="";
cpn=mylnk.length;
for(i=0;i<mylnk.length;i++)
{
s1+='<li id="Myop'+i+'" ></li>';
s2+='<li id="Myjs'+i+'" onmouseover="Myjsch(\'Myjs'+i+'\',\''+mypic[i]+'\')" onmouseout="Myjscl(\'Myjs'+i+'\')" ref="'+mypic[i]+'"><a href="'+unescape(mylnk[i])+'">'+mytxt[i]+'</a></li>';
}
document.getElementById('flash_cycle_image').innerHTML = '<div class="i_topcenter">'+"\n"+'<div class="slides" >'+"\n"+'<a href="'+mylnk[0]+'" id="slide-a"><img id="slide-pic" src="'+mypic[0]+'"/></a>'+"\n"+'<ul class="slide-li" id="op">'+"\n"+s1+"\n"+'</ul><ul class="slide-li" id="slide-txt">'+"\n"+s2+'</ul>'+"\n"+'</div>'+"\n"+' </div>';
document.getElementById("Myjs0").style.background="#ff0000";
if(document.all)document.getElementById("slide-pic").filters[0].enabled=false;
ss="";
timen=2000;
cp=0;
obj=document.getElementById("slide-pic");
cpn=document.getElementById("slide-txt").getElementsByTagName("li").length;
ss= window.setInterval(function() {
if(cp<cpn-1){cp++; } else{ cp=0 }
if(document.all){
obj.filters.blendtrans.Apply();
obj.filters[0].enabled=false;
obj.filters.blendtrans.Play();
}
obj.src=document.getElementById("Myjs"+cp).getAttribute("ref");
for(j=0;j<cpn;j++){
if(j==cp){
document.getElementById("Myjs"+j).style.background="#ff0000";
document.getElementById("slide-a").href=unescape(mylnk[j]);
}
else
{ document.getElementById("Myjs"+j).style.background="";
}
}
},timen);
//mystart();
}
LoadCSS("data/flashdata/Myjs/mycss.css");
$importjs('data/flashdata/Myjs/data.js', show_flash);
function Myjsch(sid,ref)
{ window.clearInterval(ss);
if(document.all){
obj.filters.blendtrans.Apply();
obj.filters[0].enabled=false;
obj.filters.blendtrans.Play();
}
obj.src=ref;
for(i=0;i<cpn;i++)
{
if("Myjs"+i==sid)
{
document.getElementById("Myjs"+i).style.background="#cc3333";
document.getElementById("slide-a").href=unescape(mylnk[i]);
}
else
{
document.getElementById("Myjs"+i).style.background="";
}
}
}
function Myjscl(sid)
{
cp=sid.substring(4);
ss= window.setInterval(function() {
if(cp<cpn-1){cp++; } else{ cp=0 }
if(document.all){
obj.filters.blendtrans.Apply();
obj.filters[0].enabled=false;
obj.filters.blendtrans.Play();
}
obj.src=document.getElementById("Myjs"+cp).getAttribute("ref");
for(j=0;j<cpn;j++){
if(j==cp){
document.getElementById("Myjs"+j).style.background="#ff0000";
document.getElementById("slide-a").href=unescape(mylnk[j]);
}
else
{ document.getElementById("Myjs"+j).style.background="";
}
}
},timen);
}
2011-06-03
验证码(汉字、英文、数字随机)
支持4-6个英文和数字 随机
2-4 个随机汉字
验证码由4-6个英文和数字或是2-4个汉字
http://www.etiandao.com/checkcode.php
以下是字库名称,太大请自己下载
ariblk.ttf'
ALGER.TTF
ARIALNI.ttf'
simhei.ttf'
arial.ttf
2010-08-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人