摘要: php5 non-thread-safe和thread-safe这两个版本的区别 从PHP5.2.10版本开始(现在有PHP5.2.10和5.3两个版本),有None-Thread Safe与Thread Safe两种版本的可供选择,这两种版本有何不同,作为使用者来说又应该如何选择呢?下面聚友将为您 阅读全文
posted @ 2016-02-15 15:40 timily 阅读(960) 评论(0) 推荐(0) 编辑
摘要: 基于同源策略安全性跨域会有阻止。服务端指定返回header("Access-Control-Allow-Origin: 只能指定具体域名不能*"); header("Access-Control-Allow-Credentials: true");跨域设置cookie开启P3Pheader('... 阅读全文
posted @ 2014-12-28 21:44 timily 阅读(1950) 评论(0) 推荐(0) 编辑
摘要: 变量命名规则:1.变量名区分大小写(case-sensitive) 。2.必须字母或下划线开头。变量名可由 字母、数字、下划线组成。看到这里可能,很多人纳闷了~。那为啥$我是变量这样的中文也能做变量名呢? 在PHP里,中文的确是可以做变量名的(能用是能用但千万别项目上用....) 。 因为这里的字母... 阅读全文
posted @ 2014-09-28 15:31 timily 阅读(2380) 评论(0) 推荐(0) 编辑
摘要: ** For the full copyright and license information, please view the LICENSE* file that was distributed with this source code.*/namespace Symfony\Compon... 阅读全文
posted @ 2014-09-03 12:28 timily 阅读(152) 评论(0) 推荐(0) 编辑
摘要: php下載文件是通常使用readfile函數讀取文件進行下載,在遇到大文件下載的時候,往往不太適用,效率不怎麼樣。使用x-sendfile模塊則可以繞過php讀取文件的方式了,直接設置頭部信息就可以,利用服務器將文件發送到客戶端進行下載x-sendfile模塊apache服務器的配置設置xsendf... 阅读全文
posted @ 2014-08-22 16:39 timily 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 模擬了一下session跨域原理在本機上面做了以下測試http://localhost/test/test.php 在這個頁面裡面設置了session,通過另外一個域名來訪問這個session值,內容如下: 阅读全文
posted @ 2014-08-22 16:10 timily 阅读(246) 评论(0) 推荐(1) 编辑
摘要: 1.MySQL基础操作 一:MySQL基础操作 1:MySQL表复制 复制表结构 + 复制表数据 create table t3 like t1; --创建一个和t1一样的表,用like(表结构也一样) inse... 阅读全文
posted @ 2014-08-14 15:18 timily 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Permission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to de... 阅读全文
posted @ 2014-08-08 15:25 timily 阅读(156) 评论(0) 推荐(0) 编辑
摘要: $value) { $obj[$key] = get_object_vars_deep($value); } } return $obj;}/*斐膘砉涴欴腔脤戙: "IN('a','b')";* * @param mix $item_... 阅读全文
posted @ 2014-08-08 15:23 timily 阅读(167) 评论(0) 推荐(0) 编辑
摘要: * Victor Stanciu (until v.1.0) * @license http://www.opensource.org/licenses/mit-license.php MIT License * @link Official p... 阅读全文
posted @ 2014-08-08 15:12 timily 阅读(253) 评论(0) 推荐(0) 编辑