php获取字符串里面的图片,xpath方式

1-31 1,956 views

代码 <?php $html = <<<str <html> <head> <title>123</title> </head> <body> <img src=&quo...
阅读全文 0

Thinkphp5 in查询结果按照in里面的顺序排

1-09 3,392 views

或许有人会注意过,但我以前真不知道 SQL: select * from table where id IN (3,6,9,1,2,5,8,7); 这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序...
阅读全文 0

一款好用的sitemap 生成类库 samdark/sitemap

1-07 1,909 views

github地址 安装 composer require samdark/sitemap 使用 use samdark\sitemap\Sitemap; use samdark\sitemap\Index; // create sitemap $sitemap = new Sit...
阅读全文 0

Mysql事务的四种隔离级别(转)

1-02 1,884 views

转载地址(click me) 数据库事务的隔离级别有4种,由低到高分别为Read uncommitted 、Read committed 、Repeatable read 、Serializable 。而且,在事务的并...
阅读全文 0

一个好用的 php websocket 类库 ratchet

12-25 3,253 views

github 官网 安装 //安装 composer require cboden/ratchet 创建自己的websocket类库 <?php namespace MyApp; use Ratchet\MessageComponentInterface; us...
阅读全文 0

一个好用的图片裁剪,水印类 intervention/image,支持gd库和image和imagick

12-04 2,188 views

安装 composer require intervention/image 使用文档:http://image.intervention.io/getting_started/introduction 类库 <?php /* * 图片处理 */ name...
阅读全文 0

php正则获取字符串中的图像src地址

11-11 2,498 views

<?php $str = <<<str <img src="1.jpg"/> <p>123123</p> <span>3322</span> <img ...
阅读全文 0

centos7 yum 安装最新版nodejs

9-05 5,958 views

首先去这个网站看下版本 https://github.com/nodesource/distributions/tree/master/rpm 然后在终端执行(安装nodejs12) $ curl --silent --location https:/...
阅读全文 0

php predis 操作类库扩展

9-03 2,542 views

需先安装php predis 类库 详细predis 命令参考 :http://www.koukousky.com/back/1644.html <?php /** * Predis缓存驱动 * 要求安装phpredis扩展:https...
阅读全文 0

php imagick 水印、缩略图 图像处理类

9-03 1,946 views

使用前需安装 ImageMagick 客户端和 php Imagick 扩展类库 可解决上传图片在ios 下翻转的问题。 使用方法 $imagick = new \lib_image_imagick(); $width = 2...
阅读全文 0