会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
幽暗天琴
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
下一页
2022年10月7日
thinkphp和laravel启动时遇到错误Warning: require(/www/wwwroot/tp/public/../vendor/autoload.php): failed to open stream: No such file or directory in /www/wwwroot/tp/public/index.php on line 15
摘要: 错误展示: 解决方法: 一:没有composer的话要先去composer官网安装composer 安装完后记得切换国内下载源,不然下载很慢,切换命令composer config -g repo.packagist composer https://mirrors.aliyun.com/compo
阅读全文
posted @ 2022-10-07 14:36 幽暗天琴
阅读(3139)
评论(0)
推荐(0)
2020年2月7日
PHP自己写的分页
摘要: /** * 获奖记录 */public function history(){ $page = max(1,$_GET['page']);//当前页 if(isset($_GET['page_total']) && $page > $_GET['page_total']) $page = $_GET
阅读全文
posted @ 2020-02-07 14:05 幽暗天琴
阅读(254)
评论(0)
推荐(1)
JS返回上一个页面
摘要: window.location.href="javascript:history.go(-1)";
阅读全文
posted @ 2020-02-07 02:58 幽暗天琴
阅读(24121)
评论(0)
推荐(0)
2019年12月28日
phpcms常用标签
摘要: 全局 {$CATEGORYS[catid][catname]} 分页信息 page="$page" {$pagination} 相关产品 列表 {pc:get sql="SELECT * FROM sd_news where catid in('22','23') and disabled = 0
阅读全文
posted @ 2019-12-28 09:29 幽暗天琴
阅读(395)
评论(0)
推荐(0)
2019年12月25日
空格符
摘要: 大空格 :  相当于一个中文字符 小空格 :
阅读全文
posted @ 2019-12-25 16:47 幽暗天琴
阅读(605)
评论(0)
推荐(0)
2019年12月22日
API收藏
摘要: 1.百度图片api get 方法$word = '北海';//要搜索的词$num = 3;//要搜索的数量$url = 'https://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&is=&fp=result
阅读全文
posted @ 2019-12-22 02:04 幽暗天琴
阅读(253)
评论(0)
推荐(0)
2019年12月13日
PHP 微信公众号/小程序获取openid,用户信息
摘要: 1.获取code (获得openid的前置条件) 地址:https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=redirectUrl&response_type=code&scope=snsapi_u
阅读全文
posted @ 2019-12-13 19:04 幽暗天琴
阅读(3504)
评论(0)
推荐(0)
2019年12月12日
ThinkPHP调用其他控制器的方法,助手函数action()
摘要: 用法: $a = action('admin/user/detail',['id'=>10]);var_dump($a)表示在其他控制器调用user控制器的detail方法,传了一个参数id
阅读全文
posted @ 2019-12-12 09:41 幽暗天琴
阅读(3046)
评论(0)
推荐(0)
2019年12月5日
PHP 将内容写入word pdf 换行符不生效咋办
摘要: 答:把单引号换成双引号就能解析换行符(\n)了,
阅读全文
posted @ 2019-12-05 17:06 幽暗天琴
阅读(877)
评论(0)
推荐(0)
2019年11月27日
PHP ThinkPHP 非常好用的增删改查方法
摘要: 获取列表数据(多条) /*** 获取页面列表* @param $params //查询条件 例:['id'=>['in','1,2']] ['status'=>1]* @param array $orderby //排序 例:['id'=>'desc']* @param array $limit /
阅读全文
posted @ 2019-11-27 18:18 幽暗天琴
阅读(569)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
下一页
公告