摘要:
源代码 /** * 下载远程图片保存到本地 * @access public * @return array * @params string $url 远程图片地址 * @params string $save_dir 需要保存的地址 * @params string $filename 保存文件 阅读全文
posted @ 2020-07-18 17:04
办公魔盒
阅读(226)
评论(0)
推荐(0)
摘要:
源代码 function downVideo($url,$filePath) { //初始化 $curl = curl_init(); //设置抓取的url curl_setopt($curl, CURLOPT_URL, $url); //打开文件描述符 $fp = fopen ($filePath 阅读全文
posted @ 2020-07-18 17:03
办公魔盒
阅读(693)
评论(0)
推荐(0)
摘要:
源代码 //get请求获取body体 function curl_get_with_body($url, $range) { $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_RETUR 阅读全文
posted @ 2020-07-18 17:02
办公魔盒
阅读(687)
评论(0)
推荐(0)
摘要:
源代码 $fileName = ROOT_PATH.'/public/export/d58c42391a0cc5419a34c2a5eca19409abc904af954e0327561cbd1cee18ee20.html'; //得到文件名 header( "Content-Disposition 阅读全文
posted @ 2020-07-18 17:01
办公魔盒
阅读(125)
评论(0)
推荐(0)
摘要:
源代码 public function upload3() { $pid = $_SESSION['cmpid']; $allow_type = array('jpg', 'jpeg', 'gif', 'png'); //定义允许上传的类型 $file = $this->loadModel('bus 阅读全文
posted @ 2020-07-18 17:00
办公魔盒
阅读(124)
评论(0)
推荐(0)
摘要:
源代码 去除Bom头 /** * 去掉UTF-8 Bom头。 * Remove UTF-8 Bom. * * @param string $string * @access public * @return string */ public static function removeUTF8Bom 阅读全文
posted @ 2020-07-18 16:59
办公魔盒
阅读(193)
评论(0)
推荐(0)
摘要:
源代码 Dim clb As BClipboard,dystr As String ''必须先检测has否则程序崩溃 If clb.HasText Then dystr = clb.getText End If 阅读全文
posted @ 2020-07-18 16:58
办公魔盒
阅读(504)
评论(0)
推荐(0)
摘要:
源代码 public function upload2(){ $pid = $_SESSION['cmpid']; $model='communication'; $categpry='img'; if (preg_match('/^(data:\s*image\/(\w+);base64,)/', 阅读全文
posted @ 2020-07-18 16:57
办公魔盒
阅读(567)
评论(0)
推荐(0)
摘要:
方法 获取wifi网络列表: netsh.exe wlan show profile 获取指定wifi名的信息包括密码: netsh.exe wlan show profile wifi名称 key=clear 阅读全文
posted @ 2020-07-18 16:56
办公魔盒
阅读(288)
评论(0)
推荐(0)
摘要:
源代码 Sub DisableStrictMode '关闭严格模式 Dim jo As JavaObject jo.InitializeStatic("android.os.Build.VERSION") If jo.GetField("SDK_INT") > 9 Then Dim policy A 阅读全文
posted @ 2020-07-18 16:52
办公魔盒
阅读(378)
评论(0)
推荐(0)

浙公网安备 33010602011771号