摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content="buexplain"> <m 阅读全文
posted @ 2016-03-10 10:19 扬空 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1、检查端口是否被监听,没有的话请启动mysql。 netstat -atnp | grep 3306 2、检查用户是否具备远程连接,即host字段值不是 % mysql -uroot -p你的密码 use mysql; select host,user from user; 3、没有的话改一个 u 阅读全文
posted @ 2016-03-05 19:39 扬空 阅读(340) 评论(0) 推荐(0) 编辑
摘要: -> use mysql; //选择数据库 -> select host,user,password from user; //查询已有用户 -> insert into user (host,user,password) values('localhost','kiscms',password(' 阅读全文
posted @ 2016-02-28 17:38 扬空 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 如果 xxx 匹配ooo 并且如果 xxx2 匹配ooo 并且那么 xxx3的访问 应该变为 xxx4举个例子:RewriteCond %{REQUEST_URI} ^.*$RewriteCond %{REQUEST_URI} ^/(?!pic).*$RewriteRule ^(.*)$ /fron... 阅读全文
posted @ 2015-12-01 21:55 扬空 阅读(689) 评论(0) 推荐(0) 编辑
摘要: 抛出问题:web浏览器如何与服务保持通信?方法一:Ajax轮询方法二:EventSource轮询方法三:websocket保持长连接下面的解决方案是,Ajax轮询与EventSource轮询的合体。客户端代码: Server Data: open ... 阅读全文
posted @ 2015-11-28 18:12 扬空 阅读(1802) 评论(0) 推荐(0) 编辑
摘要: 原作地址:JavaScriptMd5修改备用:JavaScriptMd5.rar 阅读全文
posted @ 2015-11-28 13:28 扬空 阅读(222) 评论(0) 推荐(0) 编辑
摘要: /** * 加法 */function add($int_num) { $int_num = decbin($int_num); //取得整数的二进制 $new_int_num = ''; //新字符 $i = strlen($int_num) - 1; //从字符串末尾开始... 阅读全文
posted @ 2015-11-22 01:19 扬空 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 判断数组中是否存在某个元素。一、最通用的做法是,遍历整个数组,挨个元素进行比较。function search_1($v,$array) { foreach ($array as $key => $value) { if($v == $value) return $key; ... 阅读全文
posted @ 2015-11-21 20:03 扬空 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 @ECHO off REM 不显示后续命令行及当前命令行 2 3 TITLE Shutdown countdown REM 设置脚本标题 4 5 COLOR 0A REM 设置脚本 背景色为黑色 前景色为淡绿色 6 7 :start REM 标签引导 开始 8 9 CLS REM ... 阅读全文
posted @ 2015-11-14 00:22 扬空 阅读(3299) 评论(0) 推荐(0) 编辑
摘要: 如图所示,我在 /root/phpcode/ 下面有两个php文件。a.php 与 b.php,我用 a.php 去 require b.php ,然后 b.php 输出 1。现在我在 /root/phpcode/ 里面执行 a.php结果如下:很明显这是正常输出了。现在我在 /root/下面执行 ... 阅读全文
posted @ 2015-11-08 22:48 扬空 阅读(1205) 评论(0) 推荐(0) 编辑