好好爱自己!

上一页 1 ··· 162 163 164 165 166 167 168 169 170 ··· 179 下一页
摘要: https://www.toptal.com/php/10-most-common-mistakes-php-programmers-make PHP makes it relatively easy to build a web-based system, which is much of the 阅读全文
posted @ 2016-07-28 11:20 立志做一个好的程序员 阅读(716) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/11787176/manage-url-routes-in-own-php-framework This is how i implemented loader.php Now in my index file I haven't 阅读全文
posted @ 2016-07-26 09:57 立志做一个好的程序员 阅读(262) 评论(0) 推荐(0)
摘要: http://programmers.stackexchange.com/questions/122190/with-php-frameworks-why-is-the-route-concept-used With PHP frameworks, why is the “route” concep 阅读全文
posted @ 2016-07-26 09:48 立志做一个好的程序员 阅读(240) 评论(0) 推荐(0)
摘要: windows: 关闭进程的方法 taskkill /F /pid 620 IP地址的记法: IP地址由四个字节构成,为了方便阅读和书写,每个字节用0-255的数字表示,字节之间用’.'分割,如: 10.10.152.235 有时候我们会看到这样的IP: 10.10.152.235/24, 后面的/ 阅读全文
posted @ 2016-07-14 17:04 立志做一个好的程序员 阅读(268) 评论(0) 推荐(0)
摘要: 结果如下: 说明 print_r()其实做了转换, 将数组的true转换成了 1 打出来。。而var_dump()保持原来的数据类型(bool)类型不变。 阅读全文
posted @ 2016-06-30 13:38 立志做一个好的程序员 阅读(2423) 评论(0) 推荐(0)
摘要: $GLOBALS 是php中的一个全局变量的数组。 $GLOBALS['var1'] 代表的是 外部的全局变量 $var1 本身。global $var是外部$var的同名引用或者指针 例1: 结果是: 说明变量 $var1 已经删除了。 例2: 例3: 上面的例子说明了 函数里面通过 global 阅读全文
posted @ 2016-06-29 15:09 立志做一个好的程序员 阅读(265) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/8311320/how-to-change-the-session-timeout-in-php 阅读全文
posted @ 2016-06-23 17:40 立志做一个好的程序员 阅读(288) 评论(0) 推荐(0)
摘要: 原文:http://www.oicto.com/nginx_fastcgi_php_file_get_contents/ 参考:http://os.51cto.com/art/201408/449205.htm 这两天一直在搞windows下nginx+fastcgi的file_get_conten 阅读全文
posted @ 2016-06-22 14:51 立志做一个好的程序员 阅读(1088) 评论(0) 推荐(0)
摘要: pg_dump 用来备份数据库; pg_restore 用来恢复数据库; 备份出来的文件可以用 XZ (linux 自带的压缩工具压缩)。 XZ压缩最新压缩率之王 xz这个压缩可能很多都很陌生,不过您可知道xz是绝大数linux默认就带的一个压缩工具。 之前xz使用一直很少,所以几乎没有什么提起。 阅读全文
posted @ 2016-06-17 16:28 立志做一个好的程序员 阅读(3134) 评论(0) 推荐(0)
摘要: 这篇文章下面写了一个 将 数组转化成对象的方法, 这个数组的键为数字(即数组为索引数组), 访问对象的时候, $obj->1 显然错位,那到底该怎么样访问对象的数字属性呢? $obj->{1} ; 表示的是访问对象 $obj 的属性的键为 1 对应的属性值! 阅读全文
posted @ 2016-06-16 09:40 立志做一个好的程序员 阅读(7740) 评论(0) 推荐(0)
上一页 1 ··· 162 163 164 165 166 167 168 169 170 ··· 179 下一页

不断学习创作,与自己快乐相处