摘要:
命令demo php think hello(指令) --table 表名 代码如下 <?php declare (strict_types=1); namespace app\command; use DateTime; use think\console\Command; use think\c 阅读全文
摘要:
server { listen 80; server_name prejoin.*****.com; #监听的hostname add_header 'Access-Control-Allow-Origin' '*'; root /usr/local/nginx/html; #第一个项目的根目录 a 阅读全文
摘要:
var image = new Image() image.setAttribute('crossOrigin', 'anonymous') image.onload = function() { var canvas = document.createElement('canvas') canva 阅读全文
摘要:
show processlist; select * from information_schema.innodb_trx; SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS; 阅读全文
摘要:
<?php // + // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // + // | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved. // + // | Licensed ( 阅读全文
摘要:
setfacl -m d:o::rwx -R /usr/local/src/ 阅读全文
摘要:
$cmd = '"H:\phpstudy_pro\Extensions\php\php7.3.4nts\php.exe" I:\weman\webman\start.php I:\weman\webman\runtime\/windows\start_monitor.php I:\weman\web 阅读全文
摘要:
composer require jeroendesloovere/distance <?php namespace LonLatFilterShop; use JeroenDesloovere\Distance\Distance; use think\Exception; class LonLat 阅读全文
摘要:
event.php <?php // 事件定义文件 return [ 'bind' => [ 'UserLogin' => 'app\event\UserLogin', 'UserLogout' => 'app\event\UserLogin', ], 'listen' => [ 'AppInit' 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
摘要:
package main import ( "encoding/xml" "fmt" "log" "net/http" "time" "github.com/tiaguinho/gosoap" ) type GetIPLocationResponse struct { XMLName xml.Nam 阅读全文
摘要:
PHP Simple HTML DOM Parser download | SourceForge.net 阿里云盘 (aliyundrive.com) 阅读全文
摘要:
package main import ( "fmt" "github.com/streadway/amqp" "log" "time" ) func failOnError(err error, msg string) { if err != nil { log.Fatalf("%s: %s", 阅读全文
摘要:
package main import ( "fmt" "github.com/streadway/amqp" "log" ) func failOnError(err error, msg string) { if err != nil { log.Fatalf("%s: %s", msg, er 阅读全文
摘要:
package uiltsimport ( "bytes" "crypto/aes" "crypto/cipher" "encoding/base64" "fmt" "strconv" "strings")const ( sKey = "chexiongdisdwa11" ivParameter = 阅读全文
摘要:
var Cpt *captcha.Captcha func init() { store := cache.NewMemoryCache() Cpt = captcha.NewWithFilter("/captcha/", store) //一定要写在构造函数里面,要不然第一次打开页面有可能是X C 阅读全文
摘要:
beego.SetStaticPath("/static", "static") beego.SetStaticPath("/images", "static/img") beego.SetStaticPath("/css", "static/css") beego.SetStaticPath("/ 阅读全文
摘要:
import ( "fmt" "os" "path/filepath" "path" ) files := "E:\\data\\test.txt" paths, fileName := filepath.Split(files) fmt.Println(paths, fileName) //获取路 阅读全文
摘要:
package main import ( "fmt" "gopkg.in/ini.v1" "log" "time" ) func main() { cfg, err := ini.Load("config.ini") getErr("load config", err) // 遍历所有的secti 阅读全文
摘要:
package main import ( "bytes" "encoding/json" "errors" "fmt" "github.com/garyburd/redigo/redis" "time" ) type RedisPool struct { pool *redis.Pool } fu 阅读全文
摘要:
beego路由设置 beego存在三种方式的路由:固定路由、正则路由、自动路由。下面就详细说一下如何使用这三种路由。 基础路由 从 beego 1.2 版本开始支持了基本的 RESTful 函数式路由,应用中的大多数路由都会定义在 routers/router.go 文件中。最简单的 beego 路 阅读全文
摘要:
package main import ( "bytes" "fmt" "github.com/gocolly/colly" "io/ioutil" "log" "strconv" "strings" "sync" ) func down(i int, group *sync.WaitGroup) 阅读全文
摘要:
出处 字符 ——匹配任意字符 e.g: abc. 结果: abcd,abcx,abc9; [] ——匹配括号中任意一个字符 e.g: [abc]d 结果:ad,cd,1d; - ——[-]中表示范围 e.g: [A-Za-z0-9]; ^ ——[^]中表示除括号中的任意字符 e.g:[xy]a 结果 阅读全文
摘要:
package main import ( "fmt" "io" "os" "regexp" "strconv" "sync" "github.com/qianlnk/pgbar" ) /** * 需求: 1. 多协程下载文件 2.断点续连 **/ func main() { //获取要下载文件 D 阅读全文