![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
灰色的乌鸦
懒的写
展开
-
PHPExcel读取excel中图片并保存为文件
public function import_excel(){ $file = request()->file('file'); $info = $file->validate(['ext'=>'xlsx,xls'])->move('file','impexc'); $filePath='file/'.$info->getSaveName(); if($info){ $PHPExcel=n.原创 2020-10-26 11:45:20 · 1043 阅读 · 0 评论 -
IIS8.5+ThinkPHP5.1(PHP7.0)连接SQL_SERVER2008R2
首先下载两个驱动文件:1.Microsoft Drivers for PHP for SQL Server 下载地址:https://docs.microsoft.com/zh-cn/sql/connect/php/release-notes-php-sql-driver?view=sql-server-ver15 (注意5.6的不支持PHP7.0)下载好后,选择一个文件,程序会解压dll文件然后选择对应PHP版本的dll驱动,移动到如图:2.Microsoft ODBC Driver原创 2020-10-22 13:28:05 · 293 阅读 · 0 评论 -
PHP ETH私链交易操作
关于PHP 操作eth钱包私链的工具类少之又少,这是本人利用EthCommon.class这个个工具类 写的eth钱包私链操作方法<?phprequire("EthCommon.class.php");//token合约地址$tbos_ctadr='0xe5fc11fae0a453b56f708288acc46320e12cc0b7';$candy_ctadr="0x45555629AAbfEA138EAd1C1E5f2AC3Cce2aDd830";//CANDY$usdt_ctadr原创 2020-10-22 13:18:15 · 1051 阅读 · 1 评论 -
PHP Imagick GIF图片叠加其他格式图片
$img_gif="kbug.gif";$filename="lx.ico";$cpath="k.gif";$im = new \Imagick($img_gif);//背景图$poster = new \Imagick($filename);//前景图foreach ($im as $frame) { $im->compositeImage($poster, \imagick::COMPOSITE_OVER, 0, 0);}$im->writeImages($cpath.原创 2020-10-22 13:09:53 · 267 阅读 · 0 评论