摘要:$.ajaxSetup({ xhrFields:{ withCredentials:true, } }); header("Access-Control-Allow-Origin:http://localhost:9999");//使用cookie时此处不可用通配符 header("A...
阅读全文
摘要:mysql innodb引擎模式的表在服务重启后自动字段值重置为最大自增字段值的问题
阅读全文
摘要:1.复杂密码检查 2. php正则匹配中文(不止中文)
阅读全文
摘要: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...
阅读全文
摘要:open("gifresizer.zip")===TRUE){ //zip file name print_r($z); for($i=0;$inumFiles;$i++){ $entry_info = $z->statIndex($i); prin...
阅读全文
摘要:1.首先扩展Zend\Captcha\Image,重写一下图片生成过程:img = imagecreatetruecolor($this->width, $this->height); $color = imagecolorallocate($this->img, mt_ran...
阅读全文
摘要: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...
阅读全文
摘要:1. 新建模块Test,新建IndexController,使用zf工具或者手动创建目录结构和文件完成即可2. 添加模块到项目模块列表--config/application.config.php文件中的modules键值对(zf创建模块时会自动完成这一步)3. 修改模块配置文件(本例中文件位置为:...
阅读全文