PHP脚本
小基炖蘑菇·
工欲善其事,必先利其器
展开
-
计算年龄年月日时分秒
function getRemainderTime($one_time, $two_time, $return_type=0, $format_array=array('岁', '个月', '天', '个小时', '分', '秒')) { if ($return_type < 0 || $return_type > 6) { return false; } if (!(is_int((int)$one_time)..原创 2022-03-17 14:29:18 · 382 阅读 · 0 评论 -
微擎远程附件七牛云上传
<?php //文件上传 服务器 从服务器转到七牛云 同时删除服务器文件$setting = $_W["setting"]["upload"]["image"];$compressed = !empty($_GPC["compressed"]) ? $_GPC["compressed"] : 0;$ext = '';switch ($_FILES["file"]["type"]) { case "application/x-jpg": case "image/jpeg":.原创 2022-02-18 15:54:45 · 527 阅读 · 0 评论 -
Windows 定时任务
<?php$dbhost = '127.0.0.1'; // mysql服务器主机地址$dbuser = '***'; // mysql用户名$dbpass = '***'; // mysql用户名密码$conn = mysqli_connect($dbhost, $dbuser, $dbpass);if(! $conn ){ ...原创 2019-01-18 16:34:41 · 227 阅读 · 0 评论