06 2016 档案

求相对路径的函数
摘要:2、写一个函数,算出两个文件的相对路径如 $a = ‘/a/b/c/d/e.php’; $b = ‘/a/b/12/34/c.php’; 计算出 $b 相对于 $a 的相路径。$a = ‘/a/b/c/d/e.php’;$b = ‘/a/b/12/34/c.php’; //求$b相对于$a的相对路径 阅读全文

posted @ 2016-06-30 14:39 liuwenbohhh 阅读(259) 评论(0) 推荐(0) 编辑

java json
摘要:在www.json.org上公布了很多JAVA下的json构造和解析工具,其中org.json和json-lib比较简单,两者使用上差不多但还是有些区别。下面接着介绍用org.json构造和解析Json数据的方法示例。 用json-lib构造和解析Json数据的方法详解请参见我上一篇博文:Java构 阅读全文

posted @ 2016-06-27 18:17 liuwenbohhh 阅读(130) 评论(0) 推荐(0) 编辑

一个php的爬虫,将笔趣阁的书可以都下载下来。
摘要:数据库:book 表id 数据库: `book`-- -- 表的结构 `id`-- CREATE TABLE IF NOT EXISTS `id` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(126) NOT NULL, `txt` 阅读全文

posted @ 2016-06-22 14:55 liuwenbohhh 阅读(564) 评论(0) 推荐(0) 编辑

php写插件
摘要:1、写在最前 随着互联网飞速发展,lamp架构的流行,php支持的扩展也越来越多,这样直接促进了php的发展。 但是php也有脚本语言不可避免的问题,性能比例如C等编译型语言相差甚多,所以在考虑性能问题的时候最好还是通过php扩展来解决。 那么,怎么去做一个php扩展呢。下面从一个例子开始(本文章需 阅读全文

posted @ 2016-06-15 15:28 liuwenbohhh 阅读(1961) 评论(0) 推荐(0) 编辑

php插件开发
摘要:新建config.m4 PHP_ARG_ENABLE(walu, [Whether to enable the "walu" extension], [ enable-waluEnable "walu" extension support]) if test $PHP_WALU != "no"; t 阅读全文

posted @ 2016-06-14 15:20 liuwenbohhh 阅读(350) 评论(0) 推荐(0) 编辑

遍历echsop的region表形成缓存的程序
摘要:header("Content-type: text/html; charset=utf-8"); $con = mysql_connect("localhost","root","root");if (!$con) { die('Could not connect: ' . mysql_error 阅读全文

posted @ 2016-06-09 18:59 liuwenbohhh 阅读(143) 评论(0) 推荐(0) 编辑

websocket和swoole
摘要:<head></head><body><script type="text/javascript">var sock = null;var wsuri = "ws://127.0.0.1:1234";window.onload = function() {console.log("onload"); 阅读全文

posted @ 2016-06-09 18:56 liuwenbohhh 阅读(419) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示