- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 window10下安装redis并部署成服务
1.下载 下载链接:https://github.com/microsoftarchive/redis/releases/tag/win-3.2.100 2.安装 2.1解压安装 把Redis-x64-3.2.100.zip解压到你想要放置的位置 2.2启动服务 使用cmd进入到redis的目录 使用:redis-server.exe 启动服务 出现上面的情况就表明启动成功了 打开新的cmd,同样进入到redis目录 使用:redis-cli.exe 启动客户端连接服务器 出现上面情况说明启动客
2020-11-18 18:00:28
426
原创 PHP 处理富文本编辑器中的图片
$line=htmlspecialchars_decode(I("post.line")); $line2=str_replace('<img src="/Public/upload/','<img src="'.C("UPLOAD").'/Public/upload/',$line);
2019-03-23 15:05:38
2488
原创 PHP 页面跳转
header('content-type:text/html;charset=utf-8;'); $url='/Index/contactus'; echo "<script language='javascript'>alert('留言成功,会尽快联系您的');window.location.href='$url';</script>"; exit(); ...
2019-03-23 15:03:11
787
原创 jsonp 跨域接收值接不到的解决方法
(1) 传递参数的时候需要加?jsoncallback=? var url="<?php echo C('url_zhiku')?>"; $.ajax({ type : "get", //jquey是不支持post方式跨域的从 async:false, url : url+"/Index/getcookies?jsoncallback=?", //跨域请求的URL dat...
2019-03-23 15:01:05
1269
原创 nginx去掉url中的index.php
使用情境:我想输入www.abc.com/a/1后,实际上是跳转到www.abc.com/index.php/a/1 配置Nginx.conf在你的虚拟主机下添加: location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php/$1 last; } } 如果你的项目入口文件在一...
2019-03-23 10:41:06
558
原创 nginx 重写去掉index.php
location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1; } } ...
2019-03-23 10:29:48
834
转载 PHP5.6版本安装redis扩展
https://blog.youkuaiyun.com/qq_37655695/article/details/79026236
2019-03-23 09:41:32
999
原创 用js控制图片的等比例缩放
// 初次加载页面 setTimeout(function(){ $(".img-responsive").each(function(){ var rw=$(this).get(0).offsetWidth; var rh=rw*(463/640);
2016-10-12 11:50:47
245
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅