文件上传函数
namespace vendor; class upload_file{ static function images($inputName, $targetDir, $maxSize = 5000000) { if (!isset($_FILES[$inputName]) || $_FILE…
2024-10-11 · 7 阅读分享经验、记录生活和整理知识。
namespace vendor; class upload_file{ static function images($inputName, $targetDir, $maxSize = 5000000) { if (!isset($_FILES[$inputName]) || $_FILE…
2024-10-11 · 7 阅读新建表结构(一般都会知道要恢复的表的结构,所以直接创建已知的表结构即可) 切记,我红色标识的地方一定要加上,不然后面导入数据的时候会报错。 3.恢复表数据需要将.ibd文件和.frm文件解除绑定,执行如下语句 alter table 表名 discard tablespace; 4.停掉数据…
2021-04-10 · 4 阅读//读取xlsx文件并以第一排为上标显示 function read_xlsx($file_name) { vendor("PHPExcel.PHPExcel"); vendor("PHPExcel.PHPExcel.Writer.IWriter"); vendor("PHPExcel.P…
2020-03-30 · 3 阅读//两张图片合并 //$path_1图一路径,$path_2图2路径,$save_path生成后图片路径 //最终生成以正方形为目地 function yi_images_merge($path_1,$path_2,$save_path) { //创建图片对象 …
2020-03-17 · 3 阅读<?php $file="images"; function list_file($date){ //1、首先先读取文件夹 $temp=scandir($date); //遍历文件夹 $re=array(); foreach($temp a…
2019-11-20 · 0 阅读UPDATE wp_posts SET post_content = replace( post_content, '老域名','新域名') ;
2019-05-23 · 0 阅读location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { …
2019-04-25 · 0 阅读