摘要:
<?php class Paging { private $totalStrip; //总条数 private $pageStrip; //每页条数 private $totalPages; //总页数 private $url; //当前页面的url private $nowPage; //当前的 阅读全文
posted @ 2022-01-05 21:55
是梦别喊疼想赢别喊停
阅读(32)
评论(0)
推荐(0)
摘要:
<?php // 封装一个DB类.用于实现对数据库的增删改查 class Db{ // 属性私有化 private $host; // 数据库主机地址 private $port; // 数据库端口 private $dbname; // 数据库名 private $charset; // 字符集 阅读全文
posted @ 2022-01-05 21:43
是梦别喊疼想赢别喊停
阅读(45)
评论(0)
推荐(0)
摘要:
下载PHPexcel PHP生成Excel include_once "./lib/PHPExcel.php"; //实例化PHPExcel类,类似于在桌面上新建一个Excel表格 $PHPExcel = new \PHPExcel(); //获得当前活动sheet的操作对象 默认创建一个活动的窗口 阅读全文
posted @ 2022-01-05 21:40
是梦别喊疼想赢别喊停
阅读(144)
评论(0)
推荐(0)
摘要:
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f 阅读全文
posted @ 2022-01-05 21:35
是梦别喊疼想赢别喊停
阅读(47)
评论(0)
推荐(0)
摘要:
server { listen 80; #listen [::]:80 default_server ipv6only=on; server_name jiqing.dexin.com; index index.html index.htm index.php admin.php; root /ho 阅读全文
posted @ 2022-01-05 21:34
是梦别喊疼想赢别喊停
阅读(69)
评论(0)
推荐(0)
摘要:
public function login(){ $urlencode = urlencode("http://www.zhangxuhui.com/index/Index/callback"); $url = "https://graph.qq.com/oauth2.0/authorize?res 阅读全文
posted @ 2022-01-05 21:32
是梦别喊疼想赢别喊停
阅读(131)
评论(0)
推荐(0)
摘要:
function getTree($data) { $items = []; foreach ($data as $v) { $items[$v['id']] = $v; } $tree = array(); //格式化好的树 foreach ($items as $item) { if (isse 阅读全文
posted @ 2022-01-05 21:31
是梦别喊疼想赢别喊停
阅读(27)
评论(0)
推荐(0)
摘要:
开启邮件smtp服务 设置授权码 引入phpmailer类,smtp类本地下载https://github.com/PHPMailer/PHPMailer //下载PHPMailer并开启php_openssl、php_socket扩展 include_once 'PHPMailer.php'; i 阅读全文
posted @ 2022-01-05 21:29
是梦别喊疼想赢别喊停
阅读(133)
评论(0)
推荐(0)
摘要:
public function curl($url, $params = false, $ispost = 0) { $httpInfo = array(); //初始化 $ch = curl_init(); /*CURL_HTTP_VERSION_NONE (默认值,让 cURL 自己判断使用哪个 阅读全文
posted @ 2022-01-05 21:25
是梦别喊疼想赢别喊停
阅读(81)
评论(0)
推荐(0)
摘要:
1.前提条件国内短信地址:https://console.cloud.tencent.com/smsv2 已开通短信服务,具体操作请参见 国内短信快速入门。如需发送国内短信,需要先 购买国内短信套餐包。已准备依赖环境:PHP 5.6.33 及以上版本。已在访问管理控制台 >API密钥管理页面获取 S 阅读全文
posted @ 2022-01-05 21:22
是梦别喊疼想赢别喊停
阅读(301)
评论(0)
推荐(0)

浙公网安备 33010602011771号