会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
宋先生
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2022年7月27日
根据附件或者图片链接上传到服务器并返回链接到粘贴板
摘要: <tr> <td width='16%' height=25 bgcolor='ffffff'>上传附件</td> <td bgcolor='ffffff'><script type="text/javascript" src="/ziyuan/js/clipboard.min.js"></scri
阅读全文
posted @ 2022-07-27 10:57 宋先生日记
阅读(104)
评论(0)
推荐(0)
2022年7月22日
php怎么把数字转为汉字
摘要: /** * 把数字1-1亿换成汉字表述,如:123->一百二十三 * @param [num] $num [数字] * @return [string] [string] */ function numToWord($num) { $chiNum = array('零', '一', '二', '三'
阅读全文
posted @ 2022-07-22 10:27 宋先生日记
阅读(213)
评论(0)
推荐(0)
2022年2月9日
接口常用code码
摘要: // Informational 1xx 100 => 'Continue', 101 => 'Switching Protocols', // Success 2xx 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Aut
阅读全文
posted @ 2022-02-09 09:24 宋先生日记
阅读(666)
评论(0)
推荐(0)
2022年1月24日
php7 mongo 操作类
摘要: <?php /** * 这是关于mongo数据操作的类 * song * 2022.01.20 */ declare(strict_types=1); class MongoDb{ public static $_instance = null; public $conf = null; publi
阅读全文
posted @ 2022-01-24 16:11 宋先生日记
阅读(140)
评论(0)
推荐(0)
2021年11月30日
多图片上传(可判断是否重复上传图片)
摘要: function uploadFile($fileName) { global $empire, $dbtbpre; if($fileName){ if ($_FILES['upfile']['name'][0] == "") { exit("请上传文件!"); }//判断第一个文件名是否为空 $d
阅读全文
posted @ 2021-11-30 10:06 宋先生日记
阅读(405)
评论(0)
推荐(0)
2021年6月11日
替换内容里面的图片
摘要: function doreplace($str){ global $api,$empire,$class_r,$dbtbpre,$public_r; $text=Repurl($str); $exp1="[--copyurl--]"; $exp2="[/--copyurl--]"; $rr=expl
阅读全文
posted @ 2021-06-11 14:38 宋先生日记
阅读(108)
评论(0)
推荐(0)
2021年5月26日
php 实现断点续传(下载文件)
摘要: <?php /** php下载类,支持断点续传 * download: 下载文件 * setSpeed: 设置下载速度 * getRange: 获取header中Range */ class FileDownload{ /** 下载 * @param String $file 要下载的文件路径 *
阅读全文
posted @ 2021-05-26 15:07 宋先生日记
阅读(348)
评论(0)
推荐(0)
2021年5月14日
mysql字符串拼接
摘要: 1.CONCAT()2.CONCAT_WS()3.GROUP_CONCAT()为了方便下面举例,这里放个student表供下面使用 s_id s_name s_sex 01 张三 男 02 李四 男 03 王五 男 04 赵六 null 一、CONCAT() :最常用的字符串拼接方法,但遇到拼接中的
阅读全文
posted @ 2021-05-14 18:11 宋先生日记
阅读(804)
评论(0)
推荐(0)
2021年5月13日
判断字符串中中是否有手机号
摘要: //查找手机号或者电话号码function findThePhoneNumbers($oldStr = ""){ // 检测字符串是否为空 $oldStr=trim($oldStr); $numbers = array(); if(empty($oldStr)){ return $numbers;
阅读全文
posted @ 2021-05-13 14:53 宋先生日记
阅读(1621)
评论(0)
推荐(0)
2021年4月25日
验证身份证号码的真伪
摘要: private function isCreditNo($vStr){ $vCity = array( '11','12','13','14','15','21','22', '23','31','32','33','34','35','36', '37','41','42','43','44'
阅读全文
posted @ 2021-04-25 16:26 宋先生日记
阅读(213)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告