![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
PP江
php技术交流
展开
-
php生成小程序码,并在小程序端接收参数
后台代码:php实现功能1.从后台获取小程序码2.微信扫码进入小程序并获取对应参数对应代码1.从后台获取小程序码//获取小程序码 public function get_share_code(){ $img=$user=$goods=array();$res=''; $user=db('user')->where('id',input('uid'))->find(); $goods=db('goods')->where('id',input('gid原创 2021-04-29 18:12:11 · 545 阅读 · 0 评论 -
tp5关于Linux单个表单上传多个文件出错问题
修复Request->file()判断临时文件不严谨导致多文件上传失败的情况html文件<form action="a.php" method="post" enctype="multipart/form-data"> <input type="text" name="val" value="val"><br /> <inpu...转载 2019-03-26 11:15:31 · 1072 阅读 · 2 评论 -
php写菱形
/** * [lingxing 菱形] * @param integer $num [总行数(菱形大小)] * @return [type] [description] */ function lingxing($num=1){ //菱形行数必须为奇数 if ($num%2==0) { $num++; } if ($...原创 2019-03-26 14:57:44 · 1472 阅读 · 0 评论