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