博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页

2016年11月7日

摘要: /** * 模拟post进行url请求 * @param string $url * @param array $post */ function request_post($url, $post = array()) { if (empty($url) || empty($post)) { return false; } $post_data = http_build_... 阅读全文

posted @ 2016-11-07 09:24 PHP-张工 阅读(459) 评论(0) 推荐(0) 编辑

摘要: 'password']; $user = $_SERVER['PHP_AUTH_USER']; $pass = $_SERVER['PHP_AUTH_PW']; if ((@$user_list[$user] ?: '') !== $pass) { header('WWW-Authenticate: Basic realm="用户登录"'); header('HTTP/1.... 阅读全文

posted @ 2016-11-07 09:23 PHP-张工 阅读(459) 评论(0) 推荐(0) 编辑

2016年4月27日

摘要: 效果如下: 基本功能 网址访问统计,使用的HTML5本地存储。 单页面,很实用。 代码如下: 阅读全文

posted @ 2016-04-27 13:53 PHP-张工 阅读(2003) 评论(2) 推荐(2) 编辑

2016年4月11日

摘要: 效果如下: 代码下载:http://files.cnblogs.com/files/zjfree/yun_loading.rar 阅读全文

posted @ 2016-04-11 17:52 PHP-张工 阅读(647) 评论(0) 推荐(0) 编辑

摘要: 参考:https://github.com/cyclegtx/wave_background 做的水波背景,以后可能会用到哈! 效果如下: 代码如下: 阅读全文

posted @ 2016-04-11 17:39 PHP-张工 阅读(4803) 评论(0) 推荐(0) 编辑

2016年3月28日

摘要: 现在HTML5已经很强大了,如何让网页看起来像本地应用呢?仅chrome浏览器就可以实现。(但当然只能使用HTML的功能,不能操作本地系统) 以百度为例: 快捷方式的内容如下所示: "C:\Program Files (x86)\Google\Chrome\Application\chrome.ex 阅读全文

posted @ 2016-03-28 11:41 PHP-张工 阅读(795) 评论(0) 推荐(0) 编辑

2016年2月3日

摘要: 项目上有个需求,需要从外网服务器的MYSQL同步到本地服务器上。 思路如下: 1 在外网MYSQL中创建表 table_change_log ,记录表中数据的更改记录。 DROP TABLE IF EXISTS `table_change_log`; CREATE TABLE `table_chan 阅读全文

posted @ 2016-02-03 18:07 PHP-张工 阅读(978) 评论(0) 推荐(0) 编辑

摘要: PHP 获取指定目录下所有文件(包含子目录) //glob — 寻找与模式匹配的文件路径 $filter_dir = array('CVS', 'templates_c', 'log', 'img', 'config', 'css', 'js'); function get_file_list($d 阅读全文

posted @ 2016-02-03 17:45 PHP-张工 阅读(2299) 评论(0) 推荐(0) 编辑

2016年1月14日

摘要: JS 深度拷贝 Object Arrayfunction cloneObj(o){ var isArray = o instanceof Array; var isObject = o instanceof Object; if (!isObject) return o; var n = (isA... 阅读全文

posted @ 2016-01-14 09:03 PHP-张工 阅读(436) 评论(0) 推荐(0) 编辑

2015年10月23日

摘要: 推荐码:8DIER4我有一个阿里云9折推荐码:8DIER4,分享给你,第一次购买云服务器或云数据库可享受原价9折优惠,还可多人使用,拿走不谢。阿里云地址:http://www.aliyun.com/ 阅读全文

posted @ 2015-10-23 18:03 PHP-张工 阅读(214) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 32 下一页