摘要: <?php //mysql 字段验证 require 'connect.php'; $username = $_POST['username']; $password = $_POST['password']; //检查用户是否存在 $row = $mysql->query("select * fr 阅读全文
posted @ 2020-07-22 10:34 za_szybko 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: dim score score = 72 if score>=90 then msgbox("优秀") elseif score>=80 and score<90 then msgbox("良好") elseif score>=70 and score<80 then msgbox("一般") el 阅读全文
posted @ 2020-07-15 15:38 za_szybko 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 类下载地址 https://github.com/PHPOffice/PHPExcel require_once './Classes/PHPExcel.php'; $obj = new PHPExcel(); $objSheet = $obj->getActiveSheet(); //获取shee 阅读全文
posted @ 2020-07-15 11:40 za_szybko 阅读(485) 评论(0) 推荐(0) 编辑
摘要: <?php define("HOST",'localhost'); define("USERNAME",'root'); define("PASSWORD",'root'); define("DBNAME",'dianying'); //单例模式连接数据库 使用mysqli class lianji 阅读全文
posted @ 2020-07-14 18:33 za_szybko 阅读(288) 评论(0) 推荐(0) 编辑
摘要: <?php const APPID = ''; const MCHID = ''; const KEY = ''; const JS_API_CALL_URL = ''; $openid = ''; $ip = get_client_ip(); $data['openid'] = $openid; 阅读全文
posted @ 2020-07-08 11:24 za_szybko 阅读(166) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML5新增表单 阅读全文
posted @ 2020-06-24 10:32 za_szybko 阅读(197) 评论(0) 推荐(0) 编辑
摘要: <?php session_start(); $APPID = ''; $APPSECRET = ''; if (empty($_SESSION['access_token'])) { $info = json_decode(file_get_contents("https://api.weixin 阅读全文
posted @ 2020-06-05 17:22 za_szybko 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 插件安装remote development套件 下载git git 安装完后, bash 、 ssh 、 ssh-keygen 等一些常用的 linux 命令工具都已经安装到 C:\Program Files\Git\usr\bin 下,我们需要把这个目录添加到 windows 的系统环境变量中 阅读全文
posted @ 2020-05-27 11:40 za_szybko 阅读(413) 评论(0) 推荐(0) 编辑
摘要: php.ini [XDebug] zend_extension = php_xdebug-2.9.4-7.1-vc14-nts.dll xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_handler = "dbgp 阅读全文
posted @ 2020-04-19 11:04 za_szybko 阅读(1687) 评论(0) 推荐(0) 编辑
摘要: $file_name='abc.jpg'; function get_ext1($file_name){ return strchr($file_name,'.'); } function get_ext2($file_name){ return substr($file_name,strpos($ 阅读全文
posted @ 2020-03-10 18:43 za_szybko 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 类内 类外 常量 self::DB_HOST Student::DB_HOST 静态属性 self::attr Student::attr; 静态方法 $this -> method() self::method() Student::method() $obj -> method() 成员属性 $ 阅读全文
posted @ 2020-03-04 11:18 za_szybko 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 'imagecreatefromjpeg', 'png' => 'imagecreatefrompng ', 'gif' => 'imagecreatefromgif' ); $image = $array[$ext]($filename); //$image = imagecreatefromjpeg($filename); $font = 5; $array = array... 阅读全文
posted @ 2019-12-18 15:50 za_szybko 阅读(177) 评论(0) 推荐(0) 编辑
摘要: <?php //字符串翻转 function myrev($str) { $arr = explode(' ', $str); $num = count($arr); for ($i = 0; $i < $num / 2; ++$i) { $temp = $arr[$i]; $arr[$i] = $arr[$num - $i - 1]; $arr[$num - $i - 1] = $temp; } 阅读全文
posted @ 2019-11-07 15:59 za_szybko 阅读(119) 评论(0) 推荐(0) 编辑
摘要: $money = 10; // 红包大小 $num = 10; // 红包个数 $min = 0.01; // 单个红包最低金额 $ret = lottery($money, $num, $min); if (! is_array($ret)) { exit($ret.PHP_EOL); } echo '手气最佳:'.max($ret).PHP_EOL; echo '手气最差:'.min($ret 阅读全文
posted @ 2019-09-18 09:57 za_szybko 阅读(331) 评论(0) 推荐(0) 编辑
摘要: function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split("&"); for(var i = 0; i < strs 阅读全文
posted @ 2019-09-05 10:20 za_szybko 阅读(10826) 评论(0) 推荐(1) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2019-08-29 15:40 za_szybko 阅读(175) 评论(0) 推荐(0) 编辑
摘要: SQL:(Structrued Query Language):结构化查询语言. SQL核心功能DDL 数据定义语言: create alter dropDML 数据操作语言 insert , update, deleteDQL数据查询语言 selectDCL 数据控制语言: grant,revok 阅读全文
posted @ 2019-08-21 11:34 za_szybko 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 另外一种方法: 生成url 带入多个参数: 原文链接 https://blog.csdn.net/haoaiqian/article/details/62881647 js 地址栏传参要使用 encodeURIComponent() 或 encodeURI()编码 阅读全文
posted @ 2019-08-13 15:08 za_szybko 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 打开网站“http://tmtheme-editor.herokuapp.com/#!/editor/theme/Monokai”制作自己喜欢的主题,然后下载到themes文件夹下。 参考 https://www.cnblogs.com/garvenc/p/vscode_customize_colo 阅读全文
posted @ 2019-06-26 17:01 za_szybko 阅读(2828) 评论(0) 推荐(1) 编辑
摘要: "php.validate.executablePath": "E:/_work/PhpStudy20180211/phpstudy/PHPTutorial/php/php-7.0.12-nts/php.exe", "editor.fontSize": 15 "php.validate.execut 阅读全文
posted @ 2019-06-26 17:00 za_szybko 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: <?php $url = 'http://www.test.com/images/test.jpg'; if( @fopen( $url, 'r' ) ) { echo 'File Exits'; } else { echo 'File Do Not Exits'; } 阅读全文
posted @ 2019-06-13 15:44 za_szybko 阅读(637) 评论(0) 推荐(0) 编辑
摘要: index.php write.php ajaxPush.php 阅读全文
posted @ 2019-06-13 14:43 za_szybko 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Memcached 是国外 社区 网站 LiveJournal 的开发团队开发的 高性能的分布式内存缓存服务器。一般的使用目的是,通过缓存数据库查询结果,减少数据库访问次数,以提高动态 Web 应用的速度、提高可扩展性。把经常使用到数据,放到内存缓存里。 缓存穿透,就是缓存设置,没有实际使用到。 缓 阅读全文
posted @ 2019-03-11 20:46 za_szybko 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 技术 linux https://www.linuxidc.com/ web技术分享 https://www.helloweba.net/ 廖雪峰 https://www.liaoxuefeng.com/ thinkphp http://www.thinkphp.cn/ 码云 https://git 阅读全文
posted @ 2019-03-05 21:24 za_szybko 阅读(407) 评论(0) 推荐(0) 编辑
摘要: //追加的元素用 此方法可用 阅读全文
posted @ 2018-08-23 12:21 za_szybko 阅读(507) 评论(0) 推荐(0) 编辑