随笔分类 -  PHP

摘要:$.ajaxSetup({ xhrFields:{ withCredentials:true, } }); header("Access-Control-Allow-Origin:http://localhost:9999");//使用cookie时此处不可用通配符 header("A... 阅读全文

posted @ 2019-03-26 18:00 darkness_1 阅读(112) 评论(0) 推荐(0)

摘要:mysql innodb引擎模式的表在服务重启后自动字段值重置为最大自增字段值的问题 阅读全文

posted @ 2017-05-12 19:23 darkness_1 阅读(316) 评论(0) 推荐(0)

摘要:1.复杂密码检查 2. php正则匹配中文(不止中文) 阅读全文

posted @ 2016-06-20 16:05 darkness_1 阅读(158) 评论(0) 推荐(0)

摘要:self refers to the same class whose method the new operation takes place in.static in PHP 5.3's late static bindings refers to whatever class in the h... 阅读全文

posted @ 2015-12-04 16:45 darkness_1 阅读(153) 评论(0) 推荐(0)

摘要:open("gifresizer.zip")===TRUE){ //zip file name print_r($z); for($i=0;$inumFiles;$i++){ $entry_info = $z->statIndex($i); prin... 阅读全文

posted @ 2015-09-17 18:11 darkness_1 阅读(446) 评论(0) 推荐(0)

摘要:1.首先扩展Zend\Captcha\Image,重写一下图片生成过程:img = imagecreatetruecolor($this->width, $this->height); $color = imagecolorallocate($this->img, mt_ran... 阅读全文

posted @ 2015-08-05 18:21 darkness_1 阅读(235) 评论(0) 推荐(0)

摘要:1 echo $a = 2|4|8,PHP_EOL;2 echo $a&8,PHP_EOL;//83 echo $a&4,PHP_EOL;//44 echo $a&2,PHP_EOL;//25 echo $a&16,PHP_EOL;//06 echo $a&32;//0由结果看参与按位或运算的数(2... 阅读全文

posted @ 2015-05-20 00:20 darkness_1 阅读(428) 评论(0) 推荐(0)

摘要:1. 新建模块Test,新建IndexController,使用zf工具或者手动创建目录结构和文件完成即可2. 添加模块到项目模块列表--config/application.config.php文件中的modules键值对(zf创建模块时会自动完成这一步)3. 修改模块配置文件(本例中文件位置为:... 阅读全文

posted @ 2015-03-27 12:25 darkness_1 阅读(377) 评论(0) 推荐(0)

导航