摘要: //查看类型SHOW VARIABLES WHERE Variable_name LIKE 'character_set_%' OR Variable_name LIKE 'collation%'; //修改库类型ALTER DATABASE 库名 CHARACTER SET utf8mb4 COL 阅读全文
posted @ 2020-11-20 15:38 祈愿仙帝 阅读(549) 评论(0) 推荐(0) 编辑
摘要: //关闭防火墙 systemctl stop firewalld.service 阅读全文
posted @ 2020-11-08 11:36 祈愿仙帝 阅读(2893) 评论(0) 推荐(0) 编辑
摘要: //链接地址 $url = ""; //初始化 $curl = curl_init(); //设置抓取的url curl_setopt($curl, CURLOPT_URL, $url); //设置获取的信息以文件流的形式返回,而不是直接输出。 curl_setopt($curl, CURLOPT_ 阅读全文
posted @ 2020-11-02 12:02 祈愿仙帝 阅读(304) 评论(0) 推荐(0) 编辑
摘要: //示例 $start=($page-1)*$pagesize;//偏移量,当前页-1乘以每页显示条数 $article = array_slice($article,$start,$pagesize); //函数 array_slice(array,start,length,preserve); 阅读全文
posted @ 2020-10-28 17:43 祈愿仙帝 阅读(276) 评论(0) 推荐(0) 编辑
摘要: //二维数组 <?php $data = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve', 'las 阅读全文
posted @ 2020-10-23 14:12 祈愿仙帝 阅读(178) 评论(0) 推荐(0) 编辑
摘要: //保留两位小数 sprintf("%.2f",$number); 阅读全文
posted @ 2020-10-23 09:12 祈愿仙帝 阅读(65) 评论(0) 推荐(0) 编辑
摘要: //a标签自动点击 $(".pays")[0].click(); //浏览器窗口打开新页面 window.open ('a.html', '', 'height=650, width=550, top=200, left=600, toolbar=yes, menubar=yes, scrollba 阅读全文
posted @ 2020-09-28 21:44 祈愿仙帝 阅读(132) 评论(0) 推荐(0) 编辑
摘要: //获取购物车内的商品 $data['cartDate'] = $this->cart->getProducts();//PayPal Express Checkou 按钮支付(可以把这个放在你要放的地方即可,后台要有此功能插件) <div class="pull-right"><a href="{ 阅读全文
posted @ 2020-09-28 11:01 祈愿仙帝 阅读(204) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Ensures optimal rendering on mobile devices. --> <met 阅读全文
posted @ 2020-09-23 09:05 祈愿仙帝 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 找到TP5框架上传文件命名方法,/thinkphp/library/think/File.php文件,buildSaveName方法(第394行); // $savename = date('Ymd') . DS . md5(microtime(true)); 改为: $savename = dat 阅读全文
posted @ 2020-09-09 19:57 祈愿仙帝 阅读(956) 评论(0) 推荐(0) 编辑